Coder Social home page Coder Social logo

BingX | edit_order, i need help about ccxt HOT 6 CLOSED

xerno0om avatar xerno0om commented on September 22, 2024
BingX | edit_order, i need help

from ccxt.

Comments (6)

carlosmiei avatar carlosmiei commented on September 22, 2024 1

Hello @xerno0om, we will take a look and let you know shortly.

from ccxt.

carlosmiei avatar carlosmiei commented on September 22, 2024

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

xerno0om avatar xerno0om commented on September 22, 2024

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

carlosmiei avatar carlosmiei commented on September 22, 2024

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

carlosmiei avatar carlosmiei commented on September 22, 2024

We will ask bingx about it

from ccxt.

carlosmiei avatar carlosmiei commented on September 22, 2024

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

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.