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

how can i close futures order

Open leimin78 opened this issue 4 years ago • 3 comments

hi i'm new here , when i using below api can create open long and open short console.info( await binance.futuresBuy( 'TRXUSDT', 100, 0.0870 ) ); console.info( await binance.futuresSell( 'TRXUSDT', 100, 0.0880 ) );

how can i close the order by limit ?

leimin78 avatar Apr 01 '21 05:04 leimin78

let r1 = await binance.futuresOrder( 'BUY', 'TRXUSDT', 100, false, { type: 'TAKE_PROFIT', stopPrice: 0.08845, symbol: 'TRXUSDT', closePosition: true } );

when i try with this get error response as below: { code: -1128, msg: 'Combination of optional parameters invalid.' }

leimin78 avatar Apr 01 '21 08:04 leimin78

+1

FireFoxII avatar Jul 09 '21 13:07 FireFoxII

+1

matheuscabralsz avatar Jul 17 '21 02:07 matheuscabralsz