Market Price API

Signal Channel#

Real-time push of on-chain trading signals from Smart Money / KOL / Whale wallets. Subscribe after login; data is pushed whenever a new signal is triggered.
URL Path
wss://wsdex.okx.com/ws/v6/dex

Request Parameters#

ParameterTypeRequiredDescription
opStringYesOperation: subscribe unsubscribe
argsArrayYesList of channels to subscribe
channelStringYesChannel name
chainIndexStringYesUnique identifier for the chain. Pass the chain ID (e.g., 1 for Ethereum). Single-chain only.

Response Parameters#

ParameterTypeDescription
eventStringEvent type: subscribe unsubscribe error
argObjectSubscribed channel
channelStringChannel name
signalObjectSignal list
> timestampStringTimestamp when the signal was triggered
> chainIndexStringUnique identifier for the chain
> tokenObjectToken information
>> tokenAddressStringToken contract address
>> symbolStringToken symbol
>> nameStringToken name
>> logoStringToken logo URL
>> marketCapUsdStringMarket cap (USD)
>> holdersStringNumber of holder addresses
>> top10HolderPercentStringTop 10 holder percentage
> priceStringToken price (USD) at signal trigger time
> walletTypeStringWallet type code. Enum: 1 = Smart Money, 2 = KOL / Influencer, 3 = Whales. Multiple values separated by commas
> triggerWalletCountStringNumber of wallet addresses that triggered the signal
> triggerWalletAddressStringList of wallet addresses, comma-separated
> amountUsdStringTrade amount (USD)
> soldRatioPercentStringSell-off ratio percentage
codeStringError code (only returned when event=error)
msgStringError message (only returned when event=error)

Push Data Parameters#

ParameterTypeDescription
argObjectSuccessfully subscribed channel info
> channelStringChannel name
> timestampStringTimestamp when the signal was triggered
> chainIndexStringUnique identifier for the chain
> tokenObjectToken information
>> tokenAddressStringToken contract address
>> symbolStringToken symbol
>> nameStringToken name
>> logoStringToken logo URL
>> marketCapUsdStringMarket cap (USD)
>> holdersStringNumber of holder addresses
>> top10HolderPercentageStringTop 10 holder percentage
> priceStringToken price (USD) at signal trigger time
> walletTypeStringWallet type code. Enum: 1 = Smart Money, 2 = KOL / Influencer, 3 = Whales. Multiple values separated by commas
> triggerWalletCountStringNumber of wallet addresses that triggered the signal
> triggerWalletAddressStringList of wallet addresses, comma-separated
> amountUsdStringTrade amount (USD)
> soldRatioPercentageStringSell-off ratio percentage

Request Example#

Json
{
  "op": "subscribe",
  "args": [
    {
      "channel": "signal",
      "chainIndex": "1"
    }
  ]
}

Response Example#

Successful response example

Json
{
  "event": "subscribe",
  "arg": {
    "channel": "signal",
    "chainIndex": "1"
  },
  "connId": "a4d3ae55"
}

Failure response example

Json
{
  "event": "error",
  "code": "60012",
  "msg": "Invalid request: {\"op\": \"subscribe\", \"argss\":[{ \"channel\" , \"chainIndex\" : \"1\", \"tokenContractAddress\" : \"0x382bb369d343125bfb2117af9c149795c6c65c50\"}]}",
  "connId": "a4d3ae55"
}

Push data example

Json
{
  "arg": {
    "channel": "signal",
    "chainIndex": "1",
    "timestamp": "1739439633000",
    "token": {
      "tokenAddress": "0x382bb369d343125bfb2117af9c149795c6c65c50",
      "symbol": "ORBS",
      "name": "Orbs",
      "logo": "https://static.okx.com/cdn/wallet/logo/ORBS.png",
      "marketCapUsd": "89234567.12",
      "holders": "23456",
      "top10HolderPercentage": "35.6"
    },
    "price": "0.0421",
    "walletType": "1,2",
    "triggerWalletCount": "5",
    "triggerWalletAddress": "0xabc...111,0xdef...222",
    "amountUsd": "128000.00",
    "soldRatioPercentage": "0"
  }
}