get extended 24‑hr ticker

API details

This API returns extended 24‑hour market ticker data, including open, close, high, low, amount, and volume, along with additional details such as the trading pair symbol and its current USD price. It accepts optional parameters for market ID, chain IDs, and chain asset types; if omitted, ticker data for all markets is returned.

Get extended 24hr market tickers

get
Query parameters
MarketIdstringOptional
ChainIdsstring[]Optional
ChainAssetTypesstring[]Optional
Responses
200
OK
get
GET /v1/markets/ticker/extended HTTP/1.1
Host: testnetopenapi.hibit.app
Accept: */*
{
  "code": 1,
  "message": "text",
  "data": {
    "items": [
      {
        "id": "text",
        "o": "text",
        "h": "text",
        "l": "text",
        "c": "text",
        "v": "text",
        "a": "text",
        "t": null,
        "lpusd": "text",
        "ausd": "text",
        "bas": "text",
        "qas": "text"
      }
    ]
  }
}

Code example

import { hibitClient } from '@delandlabs/hibit-sdk';

const options = {
  network: HibitNetwork.Testnet
};
hibitClient.setOptions(options);

const req = { marketId:10017n };
const extended24HrTicker = await hibitClient.getMarkets24HrTickerExtended(req);

SDK

Source code https://github.com/Deland-Labs/hibit-sdk

Last updated