Comments (6)
@germangar Also your last log seems to be from a successful response:
ResponseBody: {"code":0,"msg":"","data":{"leverage":2,"symbol":"AGIX-USDT","availableLongVol":"0","availableShortVol":"0","availableLongVal":"0.0000","availableShortVal":"0.0000","maxPositionLongVal":"0.0000","maxPositionShortVal":"0.0000"}}
You're right. It turns out my error had moved from the setLeverage call to the order call but they looked almost the same and I didn't notice I had made progress ^_^'. Adding positionSide:BOTH to the order fixed it. Thanks
from ccxt.
Hello @germangar,
The requests seems well-formed, we will take a look.
from ccxt.
@germangar Can you show us how you're carrling setLeverage
? I just tested and seems to be working properly
p bingx setLeverage 6 "LTC/USDT:USDT" '{"side":"BOTH"}'
Python v3.11.7
CCXT v4.3.5
bingx.setLeverage(6,LTC/USDT:USDT,{'side': 'BOTH'})
{'code': '0',
'data': {'availableLongVal': '0.00',
'availableLongVol': '0.0',
'availableShortVal': '0.00',
'availableShortVol': '0.0',
'leverage': '6',
'maxPositionLongVal': '0.00',
'maxPositionShortVal': '0.00',
'symbol': 'LTC-USDT'},
'msg': ''}
from ccxt.
@germangar Also your last log seems to be from a successful response:
ResponseBody: {"code":0,"msg":"","data":{"leverage":2,"symbol":"AGIX-USDT","availableLongVol":"0","availableShortVol":"0","availableLongVal":"0.0000","availableShortVal":"0.0000","maxPositionLongVal":"0.0000","maxPositionShortVal":"0.0000"}}
from ccxt.
@germangar
Hello, I really like your projet, and it's working very fine. I'm using a tradding bot with tradingview and I use BingX as broker.
I din't know were to post my question, but it's related to the leverage limit :
I have this message in my log :
* WARNING: Leverage out of bounds. Readjusting to 5x
Is this limit is coming from the broker or it's relatedd to the whook script?
Thanks a lot !
from ccxt.
@germangar Hello, I really like your projet, and it's working very fine. I'm using a tradding bot with tradingview and I use BingX as broker. I din't know were to post my question, but it's related to the leverage limit : I have this message in my log :
* WARNING: Leverage out of bounds. Readjusting to 5x
Is this limit is coming from the broker or it's relatedd to the whook script?
Thanks a lot !
Hello,
The leverage limits are provided by the exchange but 5x doesn't look like a correct limit if you are in isolated mode. They are usually 20x or more.
But this is not the right place to discuss it. We're generating notifications for carlosmiei which aren't related to ccxt.
Could you please open a new issue here ?
Add in the description what coin you were trading and the margin mode and leverage you were using too, so I can try to reproduce it.
(If you don't know how to open an issue just reply to one of the open issues in there)
Thanks.
from ccxt.
Related Issues (20)
- Biance watch_ticker response value is None HOT 11
- Binance Portfolio Margin `timeInForce` option `PO` results in no TIF parameter in new order (UM) request HOT 7
- Bitget order subscription duplication. C# HOT 6
- Subscription does not receive any result. C# HOT 4
- Move event handler map from exchange.handle_message to an exchange instance variable HOT 3
- python ccxt fetch_ohlcv on kraken doesnt honor since parameter HOT 9
- Bitget error OHLCV for delivery futures HOT 5
- Coinbase trades pagination cursor HOT 9
- MEXC InvalidNonce HOT 1
- Bitget - increase speed limit on createOrder HOT 1
- add safetrade exchange
- New Exchange Request: BTCC
- CCXT.Pro watchOrders sending incorrect order events
- Bitmart error fetching tickers HOT 2
- Revert exchange name "Coinbase Advanced" back to "Coinbase" for backward compatibility... HOT 4
- kraken fetch_ohlcv since parameter broken HOT 3
- request poloniex private api show 400 Bad Request HOT 4
- Coinbase: Implementing fetch_trading_fees? HOT 5
- ccxt pro bingX watchTrades in swap market return empty list in python HOT 3
- Binance watch_order_book silently hangs indefinitely HOT 1
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.