Skip to content

Commit f9a2a4a

Browse files
author
gazbert
committed
#169 - Patched broken Kraken unit test
* Test needs updating to mock the actual network call in loadPairPrecisionConfig().
1 parent 3ea6d0b commit f9a2a4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bxbot-exchanges/src/test/java/com/gazbert/bxbot/exchanges/TestKrakenExchangeAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ public void testGettingMinOrderVolumeIfAvailable() throws Exception {
11081108
exchangeAdapter.init(exchangeConfig);
11091109

11101110
final BigDecimal minimumOrderVolume = exchangeAdapter.getMinimumOrderVolume("XBTUSD");
1111-
assertEquals(0, minimumOrderVolume.compareTo(new BigDecimal("0.0001")));
1111+
assertEquals(0, minimumOrderVolume.compareTo(new BigDecimal("0.00005")));
11121112

11131113
PowerMock.verifyAll();
11141114
}

config/samples/kraken/engine.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ engine:
1919

2020
# This must be set to prevent catastrophic loss on the exchange.
2121
# This is normally the currency you intend to hold a long position in. It should be set to the currency short code for the
22-
# wallet, e.g. XXBT, LTC, USD. This value can be case sensitive for some exchanges - check the Exchange Adapter documentation.
22+
# wallet, e.g. XXBT, LTC, USD. This value can be case-sensitive for some exchanges - check the Exchange Adapter documentation.
2323
#
2424
# Markets assets (currencies) can be referenced using their ISO4217-A3 names in the case of ISO registered names,
2525
# their 3 letter commonly used names in the case of unregistered names,
@@ -35,7 +35,7 @@ engine:
3535
# Manual intervention is then required to restart the bot. You can set this value to 0 to override this check.
3636
emergencyStopBalance: 1.0
3737

38-
# The is the interval in seconds that the Trading Engine will wait/sleep before executing
38+
# This is the interval in seconds that the Trading Engine will wait/sleep before executing
3939
# the next trade cycle. The minimum value is 1 second. Some exchanges allow you to hit them harder than others. However,
4040
# while their API documentation might say one thing, the reality is you might get socket timeouts and 5XX responses if you
4141
# hit it too hard - you cannot perform ultra low latency trading over the public internet ;-)

0 commit comments

Comments
 (0)