kucoin-python-sdk icon indicating copy to clipboard operation
kucoin-python-sdk copied to clipboard

Unkown error for create_market_order

Open Ariosi opened this issue 4 years ago • 1 comments

this issue occurs for any size:

Code > order_id = client.create_market_order('BTC-USDT', 'buy' , size = '1') Response > 200-{"code":"300000","msg":"Order price invalid."}

I test it with the sandbox key. no problem with create_limit_order has been seen.

Ariosi avatar Feb 10 '21 15:02 Ariosi

When you create a market order, you should add a parameter "type='market'" to place the order.

1bazinga25 avatar Feb 18 '21 01:02 1bazinga25

Since this issue has had no updates for a long time, we will now close it. Please try updating to the latest version of the SDK and modify your code to try again. If you encounter any issues, feel free to provide feedback.

ISAAC-XXYYZZ avatar Jul 29 '24 09:07 ISAAC-XXYYZZ