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

{"code":"100001","msg":"The quantity parameter cannot be empty."}

Open hesamz3090 opened this issue 1 year ago • 1 comments

Hello this is my code I have balance and set size in def but market open didn't open and get me this error this is my code :

api_key = '###' api_secret= '###' api_passphrase= '###'

client = Trade(key=api_key, secret=api_secret, passphrase=api_passphrase, is_sandbox=False, url='') order_id = client.create_market_order('ETHUSDTM', 'buy', '0.01')

hesamz3090 avatar Mar 01 '23 13:03 hesamz3090

I found if I downloaded the repo, then added a size parameter, I was able to make orders just fine.

params = { 'symbol': symbol, 'side': side, 'leverage': lever, 'type': 'market', 'size': 1}

`

enigmatized avatar May 27 '23 18:05 enigmatized

Since this issue has already been addressed and there have been no updates for a long time, we will now close it. If you need any further assistance, feel free to ask!

ISAAC-XXYYZZ avatar Aug 09 '24 08:08 ISAAC-XXYYZZ