Skip to content

Commit

Permalink
Added instant_and_market_orders mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidmar committed Sep 8, 2023
1 parent 937607e commit c901516
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ public static InstrumentMetaData adaptCurrencyPairInfo(BitstampPairInfo pairInfo
.counterMinimumAmount(minOrder)
.priceScale(pairInfo.getCounterDecimals())
.volumeScale(pairInfo.getBaseDecimals())
.marketOrderEnabled(pairInfo.isMarketOrdersEnabled())
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit c901516

Please sign in to comment.