Chủ đề
Market API

Token Trading Information#

Return token trading information including price, volume, trading info, supply, holders, liquidity etc at specific timestamp, support max 100 multiple tokens query.

Request URL#

POST https://web3.okx.com/api/v5/dex/market/price-info

Request Parameters#

ParameterTypeRequiredDescription
chainIndexStringYesUnique identifier for the chain.
e.g., 1: Ethereum.
See more here.
tokenContractAddressStringYesToken contract address (e.g., 0x382bb369d343125bfb2117af9c149795c6c65c50)

Response Parameters#

ParameterTypeDescription
chainIndexStringUnique identifier of the chain.
e.g., 1: Ethereum.
See more here
tokenContractAddressStringToken contract address (e.g. 0x382bb369d343125bfb2117af9c149795c6c65c50)
timeStringPrice timestamp, using Unix Millisecond timestamp format
priceStringLatest token price
marketCapStringToken market cap
priceChange5MStringPrice changes within 5 minutes, in percentage increase or decrease
priceChange1HStringPrice changes within one hour, expressed as a percentage increase or decrease
priceChange4HStringPrice changes within 4 hours, expressed as a percentage increase or decrease
priceChange24HStringPrice changes within 24 hours, expressed as a percentage increase or decrease
volume5MStringTrading volume within 5 minutes
volume1HStringTrading volume within 1 hour
volume4HStringTrading volume within 4 hours
volume24HStringTrading volume within 24 hours
txs5MStringToken transactions within 5 minutes
txs1HStringToken transactions within 1 hour
txs4HStringToken transactions within 4 hours
txs24HStringNumber of token transactions within 24 hours
maxPriceStringToken 24h highest price
tradeNumString24H token trading quantity
minPriceStringToken 24h lowest price
circSupplyStringToken circulation supply
liquidityStringLiquidity in the token pool
holdersStringNumber of token holding addresses

Request Example#

shell
curl --location --request POST 'https://web3.okx.com/api/v5/dex/market/price-info' \
--header 'Content-Type: application/json' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z' \
--data-raw '[
     {
    "chainIndex": "501",
    "tokenContractAddress": "5mbK36SZ7J19An8jFochhQS4of8g6BwUjbeCSxBSoWdp"
},
{

     "chainIndex": "501",
    "tokenContractAddress": "eL5fUxj2J4CiQsmW85k5FG9DvuQjjUoBHoQBi2Kpump"
    
}
]'

Response Example#

200
{
    "code": "0",
    "data": [
        {
            "chainIndex": "501",
            "circSupply": "555761678.7348550000",
            "holders": "46998",
            "liquidity": "2909733.283759244562509712218832656",
            "marketCap": "12252728.212049527112081409",
            "maxPrice": "0.023000175796511334",
            "minPrice": "0.021290716539724027",
            "price": "0.022046730965585534",
            "priceChange1H": "-1.24",
            "priceChange24H": "-1.8",
            "priceChange4H": "-2.64",
            "priceChange5M": "0.22",
            "time": "1756816961600",
            "tokenContractAddress": "5mbK36SZ7J19An8jFochhQS4of8g6BwUjbeCSxBSoWdp",
            "tradeNum": "9577269.994247",
            "txs1H": "27664",
            "txs24H": "127879",
            "txs4H": "108489",
            "txs5M": "2265",
            "volume1H": "7376.6139697593500223",
            "volume24H": "213047.96235814982022456",
            "volume4H": "33943.03136454470008366",
            "volume5M": "544.69701090069000181"
        },
        {
            "chainIndex": "501",
            "circSupply": "999973538.9201610000",
            "holders": "37302",
            "liquidity": "2946946.965800864848335614721052390",
            "marketCap": "25792746.281014184438384254",
            "maxPrice": "0.026539875867707924",
            "minPrice": "0.02427728431412691",
            "price": "0.025793428802993062",
            "priceChange1H": "-1.13",
            "priceChange24H": "3.4",
            "priceChange4H": "-2.07",
            "priceChange5M": "0.52",
            "time": "1756816961600",
            "tokenContractAddress": "eL5fUxj2J4CiQsmW85k5FG9DvuQjjUoBHoQBi2Kpump",
            "tradeNum": "10046562.105494",
            "txs1H": "166",
            "txs24H": "2888",
            "txs4H": "322",
            "txs5M": "29",
            "volume1H": "10343.0564689259900202",
            "volume24H": "253496.67765782958052983",
            "volume4H": "21530.5160926891601342",
            "volume5M": "3278.85450250897"
        }
    ],
    "msg": ""
}