New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BingX | edit_order, i need help #22284
Comments
Hello @xerno0om, we will take a look and let you know shortly. |
@xerno0om I found indeed some issues with tp/sl orders on spot markets, they will be fixed and released in a few hours. Nonetheless, you're using the wrong syntax to place independent tp/sl orders, it should be something like this: spot_tp_order = await bingx.create_order('LTC/USDT', 'market', 'sell', 0.1, None, {'takeProfitPrice': 150})
spot_limit_sl_order = await bingx.create_order('LTC/USDT', 'limit', 'sell', 0.1, 30, {'stopLossPrice': 35}) After the release the syntax above ⬆️ should work for placing spot tp/sl orders. |
@carlosmiei no, that's not exactly my problem, is that: I have already opened my position with my take profit, but my problem is that I want to move my take profit from this position a little higher, that's what I can't do it, what should I use? edit_order ? |
@xerno0om Oh ok the symbol confused me because Well, in that case I'm not sure if it is possible to edit the sl/tp of a currently opened position (I'm not finding an API endpoint for that). |
We will ask bingx about it |
@xerno0om Bingx just confirmed that at the moment you can't edit it, you have to close + open a new position. |
Operating System
Windows 11
Programming Languages
Python
CCXT Version
Last
Description
I try to do edit_order to edit, change my Take Profit, but when I run the script it tells me that :
Code
The text was updated successfully, but these errors were encountered: