Market (Spot)

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

Get Single Ticker

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

https://bitgetlimited.github.io/apidoc/en/spot/#get-single-ticker

Function name:

getSingleTicker()

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

const result = await getSingleTicker(myBitgetAccount, 
    {
        symbol: "BTCUSDT_SPBL"
    })

Get All Tickers

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

https://bitgetlimited.github.io/apidoc/en/spot/#get-all-tickers

Function name:

Usage:

Get Market Trades

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

https://bitgetlimited.github.io/apidoc/en/spot/#get-market-trades

Function name:

Usage:

Get Candle Data

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

https://bitgetlimited.github.io/apidoc/en/spot/#get-candle-data

Function name:

Usage:

Get Depth

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

https://bitgetlimited.github.io/apidoc/en/spot/#get-depth

Function name:

Usage:

Last updated