Coder Social home page Coder Social logo

Comments (6)

germangar avatar germangar commented on June 4, 2024 2

@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.

carlosmiei avatar carlosmiei commented on June 4, 2024

Hello @germangar,
The requests seems well-formed, we will take a look.

from ccxt.

carlosmiei avatar carlosmiei commented on June 4, 2024

@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.

carlosmiei avatar carlosmiei commented on June 4, 2024

@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.

iZnogoude avatar iZnogoude commented on June 4, 2024

@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 avatar germangar commented on June 4, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.