node-binance-api
node-binance-api copied to clipboard
Invalid order type
I am getting invalid order type error { code: -1116, msg: 'Invalid orderType.' }
this is my code.
binance.futuresSell( 'BTCUSDT', amount, entry ).then((result)=>{
console.log(result)
console.log(sl)
binance.futuresBuy('BTCUSDT', amount, exit).then((result)=>{
console.log(result)
binance.futuresMarketBuy( 'BTCUSDT', amount, {reduceOnly: true} ).then((result)=>{
console.log(result)
})
})
})
And these are my entries
ENTRY: $9154
TARGET $8800
STOP LOSS: 9625$