XChange
XChange copied to clipboard
Upbit's market order does not work
String symbol = "BTC"; String market ="KRW";
Instrument pair = new CurrencyPair(symbol, market);
MarketOrder marketOrder = new MarketOrder.Builder(Order.OrderType.BID, pair) .originalAmount(new BigDecimal("0.00007")) // Bithumb Success , Upbit Fail .build(); trade_id = tradeService.placeMarketOrder(marketOrder);
If I place an order for KRW Bitcoin in Upbit or Bithumb, an error will occur in the market price order in Upbit. Bithumb works well Even if you enter a value of 10,000 won, the order will not proceed.
- library version def xchange_version = "5.1.0" implementation "org.knowm.xchange:xchange-core:$xchange_version" implementation "org.knowm.xchange:xchange-upbit:$xchange_version" implementation "org.knowm.xchange:xchange-bithumb:$xchange_version"