Market/Candlestick data push
Real-time Ticke
Subscribe
Request
{"method":"subscribe","params":["market@{contractAddress}"]}
Unsubscribe
Request
{"method":"unsubscribe","params":["market@{contractAddress}"]}
Response
example:
{
"topic": "market",
"event": "market@9JGruoBhfkfD6NpPTS8UY7ePzXfN3yxugBYxNG1k5P4p",
"data": {
"s": "9JGruoBhfkfD6NpPTS8UY7ePzXfN3yxugBYxNG1k5P4p", // 交易对地址
"t": 1754031801619, // 周期 interval
"lpiu": "0.00307314", // 最新价格(latestPriceInUsd)
"pc": "371.786868", // 涨跌幅(priceChange)
"noh": "1.30K", // 持仓地址(numberOfHolder)
"ffmc": "3.07M", // 流通市值(USD)(formattedFullyMarketCap)
"ftv": "40.92M", // 24h交易额(USD)(formattedTradingVolume)
"fpc": "231.64K", // 流动性(USD)(formattedPoolCap)
"ftq": "0.00", //
"lpiuF": 0.0030731467553911738,
"ftvF": 40928447.017287105,
"op": "0.00065138"
}
}
Real-time Trading Pair Feed Subscription
Subscribe
Request
{"method":"subscribe","params":["ticker@{contractAddress}"]} //订阅行情数据
Unsubscribe
Request
{"method":"unsubscribe","params":["ticker@{contractAddress}"]} //取消订阅行情数据
Response
example:
{
"topic": "ticker",
"event": "ticker@2NeTAsFDLdQvozAqeYWr3G3zbK56s3Lx2hTuZfZnesFf",
"data": {
"s": "2NeTAsFDLdQvozAqeYWr3G3zbK56s3Lx2hTuZfZnesFf", // Trading Pair Address
"t": 1754031916810, // latest time间(time),ms
"lpiu": "0.00112811", //latestPriceInUsd
"pc": "5.000906", // priceChange
"ffmc": "1.12M", // formattedFullyMarketCap
"ftv": "94.20M", // formattedTradingVolume
"fpc": "245.72K",// formattedPoolCap
"noh": 1315, // numberOfHolder
"tp": "11.80", // top10Positions
"nf": 1, // notFreeze, 1 -> true, 0 -> false
"nm": 1, // notMint, 1 -> true, 0 -> false
"ll": 0, // liquidityLocked, 1 -> true, 0 -> false
"op": "0.00106576" //
}
}
Subscribe Kline
Subscribe
Request
{"method":"subscribe","params":["kline@{contractAddress},{interval}"]}
Unsubscribe
Request
{"method":"unsubscribe","params":["kline@{contractAddress},{interval}"]}
Response
example:
{
"topic": "<string>", // theme,default:"kline"
"event": "<string>", // event. "kline@{contract Addr},{interval},{timeZone}
"data": {
"s": "<string>", // Contract Address
"i": "<string>", // Interval,如 "1m"(1 minute)、"1h"(1 hour)
"t": "<int64>", // Open Time ,ms
"o": "<string>", // Open Price,
"c": "<string>", // Close price
"h": "<string>", // Highest Price
"l": "<string>", // Lowest Price
"q": "<string>", // Quantity amount
"v": "<string>" // Volume amount
}
}