diff --git a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampAdapters.java b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampAdapters.java index 059aed4afa3..f67c133de9e 100644 --- a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampAdapters.java +++ b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampAdapters.java @@ -425,6 +425,7 @@ public static InstrumentMetaData adaptCurrencyPairInfo(BitstampPairInfo pairInfo .counterMinimumAmount(minOrder) .priceScale(pairInfo.getCounterDecimals()) .volumeScale(pairInfo.getBaseDecimals()) + .marketOrderEnabled(pairInfo.isMarketOrdersEnabled()) .build(); } diff --git a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/dto/marketdata/BitstampPairInfo.java b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/dto/marketdata/BitstampPairInfo.java index 63550380393..f5a1a0d9fc1 100644 --- a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/dto/marketdata/BitstampPairInfo.java +++ b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/dto/marketdata/BitstampPairInfo.java @@ -31,4 +31,10 @@ public class BitstampPairInfo { @JsonProperty("description") String description; + @JsonProperty("instant_and_market_orders") + String instantAndMarketOrders; + + public boolean isMarketOrdersEnabled(){ + return "Enabled".equals(instantAndMarketOrders); + } }