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

How to create and close Future order

Open ns-dev-code opened this issue 3 years ago • 2 comments

How to create and close Future order @luzianscherrer, @balthazar , @dave-fl

ns-dev-code avatar Feb 19 '22 03:02 ns-dev-code

You can create futures order using following method. You can check the binance documentation for the fields.

console.log(
  await client.futuresOrder({
    symbol: 'XLMUSDT,
    side: 'BUY',
    type: 'MARKET',
    quantity: '10',
  })
)

hirenreshamwala avatar Feb 21 '22 18:02 hirenreshamwala

You can create futures order using following method. You can check the binance documentation for the fields.

console.log(
  await client.futuresOrder({
    symbol: 'XLMUSDT,
    side: 'BUY',
    type: 'MARKET',
    quantity: '10',
  })
)

Can we use the client.futuresOrderTest() like the spots, becasue I see the there is test order in [https://binance-docs.github.io/apidocs/futures/en/#test-order-trade](binance futures test order document)

river7816 avatar Nov 09 '23 07:11 river7816