Open hesamz3090 opened 1 year ago
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= '###'
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')
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')
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}
`
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')