Market (Spot)

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

Get Single Ticker

circle-info

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

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

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

circle-info

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

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

Function name:

Usage:

Get Market Trades

circle-info

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

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

Function name:

Usage:

Get Candle Data

circle-info

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

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

Function name:

Usage:

Get Depth

circle-info

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

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

Function name:

Usage:

Last updated