knowm / XChange

XChange is a Java library providing a streamlined API for interacting with 60+ Bitcoin and Altcoin exchanges providing a consistent interface for trading and accessing market data.
http://knowm.org/open-source/xchange/
MIT License
3.89k stars 1.94k forks source link

Upbit's market order does not work #4964

Open tkddlf4209 opened 2 weeks ago

tkddlf4209 commented 2 weeks ago

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.

rizer1980 commented 1 week ago

hi @tkddlf4209 I don't have accounts in Upbit or Bithumb, so I can't check placeMarketOrder.

But maybe it's worth taking a fresh XChange snapshot and trying with it?

And it would be good to provide a full stack trace of the error, maybe it will immediately understand what the matter is.