0

How can I create a crypto currency order using ccxt library for Bingx exchange?

symbol= 'BTC/USDT' amount= 100 #USDT leverage= 10 long_tp_price= 65000 exchange.create_market_buy_order( symbol=symbol, amount=amount, price=None, params={ 'leverage': leverage, 'tpPrice': long_tp_price, }) >>>Error

2nd Apr 2024, 7:22 PM
Erfan Bazri
Erfan Bazri - avatar
3 ответов
+ 2
Have you read the documentation? https://docs.ccxt.com/#/ The private API is mostly used for trading and for accessing account-specific private data, therefore it requires authentication. You have to get the private API keys from the exchanges. It often means registering with an exchange website and creating the API keys for your account. Most exchanges require personal information or identification. Some exchanges will only allow trading after completing the KYC verification. Private APIs allow the following: manage personal account info query account balances trade by making market and limit orders create deposit addresses and fund accounts request withdrawal of fiat and crypto funds query personal open / closed orders query positions in margin/leverage trading get ledger history transfer funds between accounts use merchant services
3rd Apr 2024, 3:43 AM
Tibor Santa
Tibor Santa - avatar
+ 1
What does the error say?
3rd Apr 2024, 10:34 AM
Tibor Santa
Tibor Santa - avatar
0
The only problem of my code is this part and I tried too many ways to open an order. I read the documentations but still it does not work!
3rd Apr 2024, 8:57 AM
Erfan Bazri
Erfan Bazri - avatar