ViewBlock / binance-api-node

:chart: A complete and heavily tested wrapper with typings for the Binance API.
654 stars 495 forks source link

How to create and close Future order #542

Open ns-dev-code opened 2 years ago

ns-dev-code commented 2 years ago

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

hirenreshamwala commented 2 years ago

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',
  })
)
river7816 commented 7 months ago

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)