Skip to content

Commit

Permalink
#169 - Patched broken Kraken unit test
Browse files Browse the repository at this point in the history
* Test needs updating to mock the actual network call in loadPairPrecisionConfig().
  • Loading branch information
gazbert committed Nov 8, 2024
1 parent 3ea6d0b commit f9a2a4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ public void testGettingMinOrderVolumeIfAvailable() throws Exception {
exchangeAdapter.init(exchangeConfig);

final BigDecimal minimumOrderVolume = exchangeAdapter.getMinimumOrderVolume("XBTUSD");
assertEquals(0, minimumOrderVolume.compareTo(new BigDecimal("0.0001")));
assertEquals(0, minimumOrderVolume.compareTo(new BigDecimal("0.00005")));

PowerMock.verifyAll();
}
Expand Down
4 changes: 2 additions & 2 deletions config/samples/kraken/engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ engine:

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

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

0 comments on commit f9a2a4a

Please sign in to comment.