binance-exchange/node-binance-api

STOP_LOSS and STOP_LOSS_LIMIT

cecilymiller opened this issue · 0 comments

AFAIK, STOP_LOSS is out and cannot be used for BTC/USDT (correct me if I'm wrong. I get this error: {"code":-1013,"msg":"Stop loss orders are not supported for this symbol."})

So I was wondering, the example from the docs:

// When the stop is reached, a stop order becomes a market order
// Note: You must also pass one of these type parameters:
// STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT
let type = "STOP_LOSS";
let quantity = 1;
let price = 0.069;
let stopPrice = 0.068;
binance.sell("ETHBTC", quantity, price, {stopPrice: stopPrice, type: type});

That's all good and everything but STOP_LOSS_LIMIT orders has the possibility that the order is not triggered if the price moves too fast, so I was thinking:

Can we set the stopPrice at $9000 (assuming the market price is 10k) and price at something ridiculously low like $100 to make it sure that it will get triggered if the price moves super fast?