Market Price API

Token Update Channel#

Real-time push of incremental market metric updates for Meme tokens. Data is pushed whenever metrics change.
URL Path
wss://wsdex.okx.com/ws/v6/dex

Request Parameters#

ParameterTypeRequiredDescription
opStringYesOperation: subscribe unsubscribe
argsArrayYesList of channels to subscribe
channelStringYesChannel name: dex-market-memepump-update-metrics-openapi
chainIndexStringYesUnique identifier for the chain. Pass the chain ID (e.g., 501 for Solana). Single-chain only.

Response Parameters#

ParameterTypeDescription
eventStringEvent type: subscribe unsubscribe error
argObjectSubscribed channel
channelStringChannel name
codeStringError code (only returned when event=error)
msgStringError message (only returned when event=error)
connIdStringWebSocket connection ID

Push Data Parameters#

ParameterTypeDescription
argObjectSuccessfully subscribed channel info
> channelStringChannel name
> chainIndexStringUnique identifier for the chain
dataArrayBatched real-time token metric updates (each batch contains multiple token objects)
> chainIndexStringChain ID (e.g., 501=Solana)
> protocolIdStringProtocol source ID (e.g., 1=PUMP_FUN)
> quoteTokenAddressStringQuote token contract address
> tokenContractAddressStringToken contract address
> symbolStringToken symbol
> nameStringToken name
> logoUrlStringToken logo URL
> createdTimestampStringToken creation time (Unix timestamp in milliseconds)
> marketObjectMarket data (incremental update)
>> marketCapUsdStringMarket cap (USD)
>> volumeUsd1hString1-hour trading volume (USD)
>> txCount1hString1-hour total transaction count
>> buyTxCount1hString1-hour buy transaction count
>> sellTxCount1hString1-hour sell transaction count
> bondingPercentStringBonding curve progress (%)
> mayhemModeTimeRemainingStringRemaining time for Pump.fun Mayhem Mode; empty if token is not in this mode
> tagsObjectTag / audit data
>> top10HoldingsPercentStringTop 10 holders percentage (%)
>> devHoldingsPercentStringDev holdings percentage (%)
>> insidersPercentStringInsiders percentage (%)
>> bundlersPercentStringBundlers percentage (%)
>> snipersPercentStringSnipers percentage (%)
>> freshWalletsPercentStringFresh wallets percentage (%)
>> suspectedPhishingWalletPercentStringSuspected phishing wallet percentage (%)
>> totalHoldersStringTotal number of token holder addresses
> socialObjectSocial media information
>> xStringX (Twitter) link
>> telegramStringTelegram link
>> websiteStringWebsite link
>> dexScreenerPaidBooleanDEX Screener paid
>> communityTakeoverBooleanCommunity takeover (CTO)
>> liveOnPumpFunBooleanLive on Pump.fun
> bagsFeeClaimedBooleanWhether bags fee has been claimed

Request Example#

Json
{
  "op": "subscribe",
  "args": [
    {
      "channel": "dex-market-memepump-update-metrics-openapi",
      "chainIndex": "501"
    }
  ]
}

Response Example#

Successful response example

Json
{
  "event": "subscribe",
  "arg": {
    "channel": "dex-market-memepump-update-metrics-openapi",
    "chainIndex": "501"
  },
  "connId": "a4d3ae55"
}

Failure response example

Json
{
  "event": "error",
  "code": "60012",
  "msg": "Invalid request: {\"op\": \"subscribe\", \"argss\":[{ \"channel\": \"dex-market-memepump-update-metrics-openapi\", \"chainIndex\": \"501\"}]}",
  "connId": "a4d3ae55"
}

Push data example

Json
{
  "arg": {
    "channel": "dex-market-memepump-update-metrics-openapi",
    "chainIndex": "501"
  },
  "data": [
    [
      {
        "bagsFeeClaimed": false,
        "bondingPercent": "0.02",
        "chainIndex": "501",
        "createdTimestamp": "1773129702000",
        "creatorAddress": "5DZ1ghesLRDzioYoDoyFejgxRwFBxgs9P85kv6d8Zd7X",
        "logoUrl": "https://static.coinall.ltd/cdn/web3/currency/token/default-logo/token_custom_logo_default_P/type=default_350_0",
        "market": {
          "buyTxCount1h": "1",
          "marketCapUsd": "2457.472431547000000000",
          "sellTxCount1h": "0",
          "txCount1h": "1",
          "volumeUsd1h": "4.011085498679725011505911"
        },
        "name": "$PRISM",
        "protocolId": "136137",
        "quoteTokenAddress": "So11111111111111111111111111111111111111112",
        "social": {
          "communityTakeover": false,
          "dexScreenerPaid": false,
          "liveOnPumpFun": false
        },
        "symbol": "PSM",
        "tags": {
          "bundlersPercent": "0",
          "devHoldingsPercent": "0.0458",
          "freshWalletsPercent": "0",
          "insidersPercent": "0",
          "snipersPercent": "0.0458",
          "suspectedPhishingWalletPercent": "0",
          "top10HoldingsPercent": "0.16320",
          "totalHolders": "1"
        },
        "tokenAddress": "SXEdooR2e1RHpYdarMqFPrkhTBARn6NhT88nXjVrD2X"
      }
    ]
  ]
}