Account (Futures)

Documentation on interacting with Bitget's Futures Market Account API functions through the PENDAX Javascript SDK.

Get Single Account

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-single-accountarrow-up-right

Function name:

getSingleAccountFutures(options)

Usage:

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

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt",
      testnet: "false"
});

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

const result = await getSingleAccountFutures(myBitgetAccount, 
    {
        symbol: "BTCUSDT_UMCBL",
        marginCoin: "USDT"
    });

Get Account List

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-account-listarrow-up-right

Function name:

Usage:

Get Sub-Account Contract Assets

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-sub-account-contract-assetsarrow-up-right

Function name:

Usage:

Get Open Count

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-open-countarrow-up-right

Function name:

Usage:

Change Leverage

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#change-leveragearrow-up-right

Function name:

Usage:

Change Margin

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#change-marginarrow-up-right

Function name:

Usage:

Change Margin Mode

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#change-margin-modearrow-up-right

Function name:

Usage:

Change Hold Mode

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#change-hold-modearrow-up-right

Function name:

Usage:

Get Symbol Position

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-symbol-positionarrow-up-right

Function name:

Usage:

Get All Position

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-all-positionarrow-up-right

Function name:

Usage:

Get Account Bill

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-account-billarrow-up-right

Function name:

Usage:

Get Business Account Bill

circle-info

Please refer to the official Bitget API Docs for the required parameters.

https://bitgetlimited.github.io/apidoc/en/mix/#get-business-account-billarrow-up-right

Function name:

Usage:

Last updated