Giter VIP home page Giter VIP logo

Comments (1)

tony-ho avatar tony-ho commented on September 24, 2024

@happmaoo Thanks for your question.

binance-oco won't be able to set a target sell order at 19500 when the price reaches 20000 as:

  • doesn't support separate trigger and limit prices for target sell orders, and
  • Binance won't allow you to place a STOP-LIMIT sell order at a higher price than the current price; it will return an "Order would trigger immediately" error.

It does support separate stop and limit prices for the stop loss using the -l option. See https://github.com/tony-ho/binance-oco#stop-limit-and-limit-sell-orders for further details.

To have it monitor with a target limit sell at 20000 and a stop limit sell down to 14000 if the price reaches 14500, use:

binance-oco -p BTCUSDT -a 1 -s 14500 -l 14000 -t 20000

Note that the stop order is always placed first to protect your position. It is only cancelled, and the target order set, once the target price has been reached.

from binance-oco.

Related Issues (17)

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.