node-binance-api icon indicating copy to clipboard operation
node-binance-api copied to clipboard

Invalid order type

Open anaamnizami opened this issue 6 years ago • 0 comments

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$

anaamnizami avatar Jul 17 '20 23:07 anaamnizami