Sub Account Interface (Broker)

Get Broker Info

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

https://bitgetlimited.github.io/apidoc/en/broker/#get-broker-info

Function name:

getBrokerInfo()

Usage:

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

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

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

const result = await getBrokerInfo(myBitgetAccount);

Create Sub Account

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

https://bitgetlimited.github.io/apidoc/en/broker/#create-sub-account

Function name:

Usage:

Get Sub List

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

https://bitgetlimited.github.io/apidoc/en/broker/#get-sub-list

Function name:

Usage:

Modify Sub Account

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

https://bitgetlimited.github.io/apidoc/en/broker/#modify-sub-account

Function name:

Usage:

Modify Sub Email

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

https://bitgetlimited.github.io/apidoc/en/broker/#modify-sub-email

Function name:

Usage:

Get Sub Email

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

https://bitgetlimited.github.io/apidoc/en/broker/#get-sub-email

Function name:

Usage:

Get Sub Spot Assets

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

https://bitgetlimited.github.io/apidoc/en/broker/#get-sub-spot-assets

Function name:

Usage:

Get Sub Future Assets

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

https://bitgetlimited.github.io/apidoc/en/broker/#get-sub-future-assets

Function name:

Usage:

Get Sub Deposit Address

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

https://bitgetlimited.github.io/apidoc/en/broker/#get-sub-deposit-address-only-broker

Function name:

Usage:

Sub Withdrawal

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

https://bitgetlimited.github.io/apidoc/en/broker/#sub-withdrawal-only-broker

Function name:

Usage:

Sub Deposit Auto Transfer

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

https://bitgetlimited.github.io/apidoc/en/broker/#sub-deposit-auto-transfer-only-broker

Function name:

Usage:

Last updated