Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upbit's market order does not work #4964

Open
tkddlf4209 opened this issue Nov 16, 2024 · 1 comment
Open

Upbit's market order does not work #4964

tkddlf4209 opened this issue Nov 16, 2024 · 1 comment

Comments

@tkddlf4209
Copy link

tkddlf4209 commented Nov 16, 2024

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"
@rizer1980
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants