Comments (6)
Hello @xerno0om, we will take a look and let you know shortly.
from ccxt.
@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.
from ccxt.
@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 ?
from ccxt.
@xerno0om Oh ok the symbol confused me because BTC/USDT
represents a spot market.
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).
from ccxt.
We will ask bingx about it
from ccxt.
@xerno0om Bingx just confirmed that at the moment you can't edit it, you have to close + open a new position.
from ccxt.
Related Issues (20)
- Add Upbit private websocket connection HOT 7
- Coinbase fetch_accounts_v3 limit of 100 breaks deposit() HOT 2
- New exchange: Hashkey
- New Exchange: Backpack
- New Exchange: Robinhood
- The order amount must exceed 0.1 USDT while making a trade of 3 USDT HOT 16
- HTX: authentication error in C# HOT 4
- Binance successfully authenticates with the first request, then authentication error comes with the second request HOT 6
- Bitget WatchOrders for Margin does not work HOT 8
- Bitget Cancel order does not work for Margin orders. HOT 3
- ccxtpro watch_orders missing filled orders HOT 14
- Bybit fetch_trades ignores "since" parameter HOT 2
- C# Bitfinex2: System.InvalidCastException : Unable to cast object of type 'System.Collections.Generic.List`1[System.Object]' to type 'System.Collections.Generic.Dictionary`2[System.String,System.Object]' HOT 16
- RequestTimeout: kucoin GET https://api.kucoin.com/api/v3/currencies request timed out (30000 ms) HOT 3
- C# Bitfinex2 CreateOrder -> parseOrder returns empty Order object HOT 3
- i'm try to do a code, it use ccxt to create a bot trading in ftx, but it occur (Exception has occurred: AttributeError module 'ccxt' has no attribute 'ftx'. AttributeError: module 'ccxt' has no attribute 'ftx'). What shuold i do? . My code:exchange = ccxt.ftx({ "apiKey": secret.PUBLIC_KEY, "secret": secret.SECRET_KEY }) HOT 1
- error in ccxt HOT 1
- error when import talib HOT 1
- C# Bitstamp CreateOrder Content-Type header is not accepted + wrong nonce generation HOT 4
- Bitget order subscription duplication. C# HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccxt.