Trading

GET Futures Account Balance

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

https://docs.blofin.com/index.html#get-futures-account-balance

Function Name:

getFuturesAccountBalance()

Usage:

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

   let myBlofinExchange  = createExchange({
      exchange: "blofin",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "blofin"
  });

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

let result = await getFuturesAccountBalance(myBlofinExchange, 
});

GET Positions

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

https://docs.blofin.com/index.html#get-positions

Function Name:

Usage:

GET Margin Mode

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

https://docs.blofin.com/index.html#get-margin-mode

Function Name:

Usage:

GET Multiple Leverage

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

https://docs.blofin.com/index.html#get-multiple-leverage

Function Name:

Usage:

Set Leverage

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

https://docs.blofin.com/index.html#set-leverage

Function Name:

Usage:

Place Order

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

https://docs.blofin.com/index.html#place-order

Function Name:

Usage:

Place Multiple Orders

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

https://docs.blofin.com/index.html#place-multiple-orders

Function Name:

Usage:

Place TPSL Order

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

https://docs.blofin.com/index.html#place-tpsl-order

Function Name:

Usage:

Cancel Order

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

https://docs.blofin.com/index.html#cancel-order

Function Name:

Usage:

Cancel Multiple Orders

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

https://docs.blofin.com/index.html#cancel-multiple-orders

Function Name:

Usage:

Cancel TPSL Order

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

https://docs.blofin.com/index.html#cancel-tpsl-order

Function Name:

Usage:

GET Active Orders

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

https://docs.blofin.com/index.html#get-active-orders

Function Name:

Usage:

GET Active TPSL Orders

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

https://docs.blofin.com/index.html#get-active-tpsl-orders

Function Name:

Usage:

Close Positions

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

https://docs.blofin.com/index.html#close-positions

Function Name:

Usage:

GET TPSL Order History

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

https://docs.blofin.com/index.html#get-tpsl-order-history

Function Name:

Usage:

GET Trade History

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

https://docs.blofin.com/index.html#get-trade-history

Function Name:

Usage:

Last updated