Public (Spot)

Documentation on interacting with Bitget's Spot Market Public Data API functions through the PENDAX Javascript SDK.

Get Server Time

circle-info

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

https://bitgetlimited.github.io/apidoc/en/spot/#get-server-timearrow-up-right

Function name:

getServerTime()

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 getServerTime(exchange) {
    try {
        let result = await exchange.getServerTime();
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

const result = await getServerTime(myBitgetAccount)

Get Coin List

circle-info

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

https://bitgetlimited.github.io/apidoc/en/spot/#get-coin-listarrow-up-right

Function name:

Usage:

Get Symbols

circle-info

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

https://bitgetlimited.github.io/apidoc/en/spot/#get-symbolsarrow-up-right

Function name:

Usage:

Get Single Symbol

circle-info

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

https://bitgetlimited.github.io/apidoc/en/spot/#get-single-symbolarrow-up-right

Function name:

Usage:

Last updated