Trades (Spot)

Place order

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Place+order

Function Name:

placeOrderSpot()

Usage:

import { createExchange } from "./exchanges/exchange.js";

   let myBingxExchange  = createExchange({
      exchange: "bingx",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "bingx"
  });

async function placeOrderSpot(exchange, options) {
    try {
        let result = await exchange.placeOrderSpot(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

let result = await placeOrderSpot(myBingxExchange, {
	symbol: "<string>",
	side: "<string>",
	type: "<string>"
});

Place multiple orders

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Place+multiple+orders

Function Name:

Usage:

Cancel Order

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Cancel+Order

Function Name:

Usage:

Cancel multiple orders

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Cancel+multiple+orders

Function Name:

Usage:

Cancel all Open Orders on a Symbol

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Cancel+all+Open+Orders+on+a+Symbol

Function Name:

Usage:

Cancel an Existing Order and Send a New Orde

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Cancel+an+Existing+Order+and+Send+a+New+Orde

Function Name:

Usage:

Query Order details

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query+Order+details

Function Name:

Usage:

Current Open Orders

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Current+Open+Orders

Function Name:

Usage:

Query Order history

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query+Order+history

Function Name:

Usage:

Query transaction details

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query+transaction+details

Function Name:

Usage:

Query Trading Commission Rate

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query+Trading+Commission+Rate

Function Name:

Usage:

Cancel All After

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Cancel+All+After

Function Name:

Usage:

Last updated