Trades (USDT-M)

Test Order

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

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

Function Name:

testOrderUM()

Usage:

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

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

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

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

Place order

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

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

Function Name:

Usage:

Place order in demo trading

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Place+order+in+demo+trading

Function Name:

Usage:

Place multiple orders

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

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

Function Name:

Usage:

Close All Positions

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Close+All+Positions

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/swapV2/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/swapV2/trade-api.html#Cancel+multiple+orders

Function Name:

Usage:

Cancel All Open Orders

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Cancel+All+Open+Orders

Function Name:

Usage:

Current All Open Orders

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

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

Function Name:

Usage:

Query pending order status

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query+pending+order+status

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/swapV2/trade-api.html#Query+Order+details

Function Name:

Usage:

Query Margin Type

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query+Margin+Type

Function Name:

Usage:

Change Margin Type

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Change+Margin+Type

Function Name:

Usage:

Query Leverage

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query+Leverage

Function Name:

Usage:

Set Leverage

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Set+Leverage

Function Name:

Usage:

Users Force Orders

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#User's+Force+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/swapV2/trade-api.html#Query+Order+history

Function Name:

Usage:

Modify Isolated Position Margin

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Modify+Isolated+Position+Margin

Function Name:

Usage:

Query historical transaction orders

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query+historical+transaction+orders

Function Name:

Usage:

Set Position Mode

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Set+Position+Mode

Function Name:

Usage:

Query position mode

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query+position+mode

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/swapV2/trade-api.html#Cancel+an+Existing+Order+and+Send+a+New+Orde

Function Name:

Usage:

Cancel orders in batches and place orders in batches

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/swapV2/trade-api.html#Cancel+All+After

Function Name:

Usage:

Close position by position ID

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Close+position+by+position+ID

Function Name:

Usage:

All Orders

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#All+Orders

Function Name:

Usage:

Position and Maintenance Margin Ratio

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Position+and+Maintenance+Margin+Ratio

Function Name:

Usage:

Query historical transaction details

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

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

Function Name:

Usage:

Query Position History

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

https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query+Position+History

Function Name:

Usage:

Last updated