Kucoin / kucoin-python-sdk

MIT License
46 stars 16 forks source link

client.create_market_order do nothin on sandbox #33

Closed acairon closed 2 months ago

acairon commented 2 years ago

im trying to

client = Trade(key=api_key, secret=api_secret, passphrase=api_passphrase, is_sandbox=True)

print(client.create_market_order('BTC-USDT', 'buy', funds='100'))

and creates an order id , but then in the control panel of kucoin sandbox it dident buy btc

codewc commented 2 years ago

im trying to

client = Trade(key=api_key, secret=api_secret, passphrase=api_passphrase, is_sandbox=True)

print(client.create_market_order('BTC-USDT', 'buy', funds='100'))

and creates an order id , but then in the control panel of kucoin sandbox it dident buy btc

print(client.create_market_order('KCS-USDT', 'buy', funds='100')) use KCS-USDT trading pair

alsache commented 2 years ago

Thanks. I had the same issue and this fixed it. But why is this, why can I only trade kcs-usdt?

codewc commented 2 years ago

Thanks. I had the same issue and this fixed it. But why is this, why can I only trade kcs-usdt?

Because the sandbox environment is simulated, only the KCS-USDT trading pair is currently simulated

ISAAC-XXYYZZ commented 2 months ago

Due to many changes in the SDK, please refer to our latest documentation. https://www.kucoin.com/docs/beginners/introduction 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.