Account (Futures)

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

Get Single Account

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

https://bitgetlimited.github.io/apidoc/en/mix/#get-single-account

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

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

https://bitgetlimited.github.io/apidoc/en/mix/#get-account-list

Function name:

Usage:

Get Sub-Account Contract Assets

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

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

Function name:

Usage:

Get Open Count

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

https://bitgetlimited.github.io/apidoc/en/mix/#get-open-count

Function name:

Usage:

Change Leverage

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

https://bitgetlimited.github.io/apidoc/en/mix/#change-leverage

Function name:

Usage:

Change Margin

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

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

Function name:

Usage:

Change Margin Mode

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

https://bitgetlimited.github.io/apidoc/en/mix/#change-margin-mode

Function name:

Usage:

Change Hold Mode

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

https://bitgetlimited.github.io/apidoc/en/mix/#change-hold-mode

Function name:

Usage:

Get Symbol Position

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

https://bitgetlimited.github.io/apidoc/en/mix/#get-symbol-position

Function name:

Usage:

Get All Position

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

https://bitgetlimited.github.io/apidoc/en/mix/#get-all-position

Function name:

Usage:

Get Account Bill

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

https://bitgetlimited.github.io/apidoc/en/mix/#get-account-bill

Function name:

Usage:

Get Business Account Bill

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

https://bitgetlimited.github.io/apidoc/en/mix/#get-business-account-bill

Function name:

Usage:

Last updated