Hibit: Omni-chain DEX with CEX-level performance
  • Overview
    • Why Hibit DEX
    • Hibit L1 Features
  • Core mechanisms
    • ๐Ÿ“œHybrid Consensus Protocol
    • ๐Ÿ”AI-Driven Tokenization & Intelligent Interactions
    • โ›ฝOmni-Chain Compatibility
    • ๐Ÿง AI-Powered Liquidity & Order Matching Engine
    • ๐ŸงฉScalable & Sustainable Cross-Chain Solutions
    • ๐Ÿ’ปDevelopment Achievements
    • ๐Ÿ’ Transparency & Open Infrastructure
  • AI-Driven Future and Ecosystem
    • ๐Ÿ“Trading Hub
    • ๐ŸถMeme Economy
    • ๐Ÿ’ธAI-Integrated Wallet
    • ๐Ÿ’ฑPayment System
    • ๐ŸŒฒInfrastructure and Ecosystem
  • Get started
    • ๐Ÿ”‘Login
    • ๐Ÿ’ตDeposit
    • ๐Ÿ“ŠTrade
    • ๐Ÿ’ฐFee Structure
    • โ›ฒWithdrawal
    • ๐Ÿš€Token Listing
      • ๐ŸŒŸBasic mode
      • ๐ŸŽ“Pro mode
    • ๐Ÿ’ณManage Liquidity
    • ๐Ÿ’ธLiquidity Provider
    • โ“Q & A
      • Why Swap Orders Get Cancelled?
  • Developers
    • API
      • Basic
        • get timestamp
        • get chains
        • get assets
        • get asset
      • Market
        • get markets
        • get market
        • get 24hr ticker
        • get extended 24โ€‘hr ticker
        • get kline
        • get swap info
        • get depth
        • get trade history
      • Order
        • get orders
        • get order
        • get trades of order
        • submit spot order
        • cancel spot order
      • Wallet
        • get nonce
        • get balances
      • Broker
        • Get payment address
        • Quote
        • Swap
        • Get agent order
    • Dev SDK
    • Getting Your Proxy Key
  • Risk Management
  • Rewards Program
  • Roadmap
  • Glossary
Powered by GitBook
On this page
  1. Developers
  2. API
  3. Market

get markets

PreviousMarketNextget market

Last updated 23 days ago

API details

This API returns a paginated list of markets, supporting filters for chains, chain asset types, base asset ID, and quote asset ID.

Code example

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

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

const markets = await hibitClient.getMarkets({
  limit: 10,
  offset: 0
});

SDK

Source code

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

get the market list

get
Query parameters
ChainIdsstring[]Optional

chain ids to filter the markets list.

ChainAssetTypesstring[]Optional

chain asset types to filter the markets list.

BaseAssetIdstringOptional

The base asset id. This is an optional field that specifies the base asset for which the market list is requested.

QuoteAssetIdstringOptional

The quote asset id. This is an optional field that specifies the quote asset for which the market list is requested.

Limitinteger ยท int32Optional

maximum number of items to return. maximum value is 500.

Offsetinteger ยท int32Optional

number of items to skip before starting to collect the result set.

OrderBystringOptional

the sorting parameters for the list.

see https://learn.microsoft.com/en-us/azure/search/search-query-odata-orderby#examples for the format of the OrderBy string.

supported sorting parameters are: "MarketId".

default sorting is by " MarketId desc".

Responses
200
OK
400
Bad Request
401
Unauthorized
403
Forbidden
404
Not Found
500
Internal Server Error
501
Not Implemented
get
GET /v1/markets HTTP/1.1
Host: testnetopenapi.hibit.app
Accept: */*
{
  "code": 1,
  "message": "text",
  "data": {
    "items": [
      {
        "marketId": "text",
        "marketSymbol": "text",
        "baseAssetId": "text",
        "quoteAssetId": "text",
        "depthLevels": [
          1
        ]
      }
    ],
    "totalCount": 1
  }
}
  • API details
  • GETget the market list
  • Code example
  • SDK