if i place an order, via api, a buy order and sell order, order gets executed twice.
this is the code i used , i use node and use this module node-binance-api, to place orders, from this code this should occur only once but it gets executed twice and drain my assets.
binance.marketBuy(“DOGEUSDT”, (10.5 / pta).toFixed(1) , (error, response) => {
console.info(“Market Buy response”, response);
// Now you can limit sell with a stop loss, etc.
});
binance.marketSell(“DOGEBUSD”, (10.5 / pta).toFixed(1) , (error, response) => {
console.info(“Market Buy response”, response);
// Now you can limit sell with a stop loss, etc.
});
i even tried again, still gets executed twice.