Skip to content

Commit

Permalink
Merge pull request #4768 from mvidmar/develop
Browse files Browse the repository at this point in the history
Added Bitstamp instant_and_market_orders mapping
  • Loading branch information
timmolter authored Dec 1, 2023
2 parents 01f9aa8 + c901516 commit 0bbfc34
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 0bbfc34

Please sign in to comment.