Account (Spot)
Documentation on interacting with Bitget's Spot Market Account Data API functions through the PENDAX Javascript SDK.
All Spot Market Account & Account Data API endpoints require authentication. Please create Bitget API keys to interact with these functions successfully.
Get ApiKey Info
Please refer to the official Bitget API Docs for the required parameters.
https://bitgetlimited.github.io/apidoc/en/spot/#get-apikey-info
Function name:
getApiKeyInfo()
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 getApiKeyInfo(exchange) {
try {
let result = await exchange.getApiKeyInfo();
console.log(result);
} catch (error) {
console.log(error.message);
}
}
const result = await getApiKeyInfo(myBitgetAccount)
Get Account Assets
Please refer to the official Bitget API Docs for the required parameters.
https://bitgetlimited.github.io/apidoc/en/spot/#get-account-asset
Function name:
getAccountAssets()
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 getAccountAssets(exchange) {
try {
let result = await exchange.getAccountAssets();
console.log(result);
} catch (error) {
console.log(error.message);
}
}
const result = await getAccountAssets(myBitgetAccount)
Get sub Account Spot Assets
Please refer to the official Bitget API Docs for the required parameters.
https://bitgetlimited.github.io/apidoc/en/spot/#get-sub-account-spot-assets
Function name:
getSubaccountSpotAssets()
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 getSubaccountSpotAssets(exchange) {
try {
let result = await exchange.getSubaccountSpotAssets();
console.log(result);
} catch (error) {
console.log(error.message);
}
}
const result = await getSubaccountSpotAssets(myBitgetAccount)
Get Bills
Please refer to the official Bitget API Docs for the required parameters.
Function name:
getBills()
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 getBills(exchange) {
try {
let result = await exchange.getBills();
console.log(result);
} catch (error) {
console.log(error.message);
}
}
const result = await getBills(myBitgetAccount)
Get Transfer List
Please refer to the official Bitget API Docs for the required parameters.
https://bitgetlimited.github.io/apidoc/en/spot/#get-transfer-list
Function name:
getTransferList()
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 getTransferList(exchange) {
try {
let result = await exchange.getTransferList();
console.log(result);
} catch (error) {
console.log(error.message);
}
}
const result = await getTransferList(myBitgetAccount)
Last updated