Messages
{
"op": "subscribe",
"rid": "s1",
"subscriptions": [
{
"channel": "price.polymarket",
"filter": {
"asset_id": "21742633143463906290569050155826241533067272736897614950488156847949938836455"
}
},
{
"channel": "price.crypto",
"filter": {
"symbol": "btcusd"
}
}
]
}{
"op": "unsubscribe",
"channel": "price.crypto",
"filter": {
"symbol": "btcusd"
}
}{
"op": "auth",
"rid": "a1",
"auth": {
"apiKey": "00000000-0000-4000-8000-000000000000",
"secret": "<api secret>",
"passphrase": "<api passphrase>"
}
}{
"op": "ping",
"rid": "p1"
}{
"op": "challenge",
"rid": "c1"
}{
"op": "challenge",
"nonce": "3f2b6c1e-9a4d-4c2b-8e1f-0a1b2c3d4e5f",
"rid": "c1"
}{
"op": "subscribed",
"channel": "price.crypto",
"rid": "s1"
}{
"op": "unsubscribed",
"channel": "price.crypto"
}{
"op": "authed",
"rid": "a1"
}{
"op": "pong",
"rid": "p1"
}{
"op": "error",
"code": "auth_required",
"channel": "price.crypto",
"rid": "s1"
}{
"v": 1,
"channel": "price.polymarket",
"seq": 1,
"ts": 1788973000123,
"snapshot": true,
"payload": {
"market": "0x9deb0baac40648821f96f01339229a422e2f5c877de55dc4dbf981f95a1e709c",
"asset_id": "21742633143463906290569050155826241533067272736897614950488156847949938836455",
"best_bid": "0.51",
"best_ask": "0.53",
"hash": "3f9c1e7a",
"timestamp": 1788972999871
}
}{
"v": 1,
"channel": "price.crypto",
"seq": 1,
"ts": 1788973000000,
"snapshot": true,
"payload": {
"symbol": "btcusd",
"source": "pyth",
"data": [
{
"timestamp": 1788972880000,
"value": 64123.5,
"full_accuracy_value": "64123.50000000"
},
{
"timestamp": 1788972881000,
"value": 64125.1,
"full_accuracy_value": "64125.10000000"
}
]
}
}{
"v": 1,
"channel": "price.equity",
"seq": 5,
"ts": 1788973001200,
"payload": {
"symbol": "aapl",
"value": 189.42,
"full_accuracy_value": "189.4217",
"timestamp": 1788973001200,
"received_at": 1788973001207,
"is_carried_forward": false,
"source": "pyth"
}
}{
"v": 1,
"channel": "price.crypto.twap",
"seq": 3,
"ts": 1788973002000,
"payload": {
"symbol": "btcusd",
"value": 64120.7,
"full_accuracy_value": "64120.70000000",
"timestamp": 1788973002000,
"window_seconds": 60,
"source": "chainlink"
}
}{
"v": 1,
"channel": "price.equity.twap",
"seq": 3,
"ts": 1788973002000,
"payload": {
"symbol": "eurusd",
"value": 1.0842,
"full_accuracy_value": "1.08420000",
"timestamp": 1788973002000,
"window_seconds": 60,
"source": "chainlink"
}
}{
"v": 1,
"channel": "esports.series",
"seq": 2,
"ts": 1790000000000,
"payload": {
"event_id": "184213",
"title": "lol",
"source": "grid",
"provider_series_id": "2843071",
"schema_version": 1,
"binding_revision": 3,
"revision": 42,
"source_updated_at_ms": 1789999998000,
"observed_at_ms": 1790000000000,
"published_at_ms": 1790000000005,
"phase": "live",
"valid": true,
"invalidation_reason": "",
"feed_status": "live",
"capabilities": [
"series",
"plays"
],
"format": "best-of-3",
"best_of": 3,
"current_game": 1,
"legacy_score": "0-0,missing,missing|0-0|Bo3",
"period": "1/3",
"teams": [
{
"id": "47",
"name": "T1",
"polymarket_side": "home",
"games_won": 0
},
{
"id": "48",
"name": "G2",
"polymarket_side": "away",
"games_won": 0
}
],
"games": [
{
"number": 1,
"map": "",
"started": true,
"finished": false,
"paused": false,
"winner_team_id": "",
"clock": {
"seconds": 754,
"ticking": true,
"counts_down": false
},
"teams": [
{
"team_id": "47",
"side": "blue",
"kills": 0,
"objectives": [],
"players": [],
"drakes": [
"infernal"
],
"first_kill": false
},
{
"team_id": "48",
"side": "red",
"kills": 0,
"objectives": [],
"players": [],
"drakes": [],
"first_kill": false
}
],
"draft": [],
"structures": [],
"timers": [],
"rounds": []
}
],
"recent_plays": [
{
"id": "e1",
"game": 1,
"type": "player-completed-slayDragon",
"kind": "dragon",
"variant": "infernal",
"team_id": "47",
"player_name": "",
"target": "",
"occurred_at_ms": 1789999999000
}
]
}
}实时数据频道
PolyBolt WebSocket 消息参考,涵盖加密货币、股票类资产和 TWAP 参考价格。
WSS
/
ws
Messages
{
"op": "subscribe",
"rid": "s1",
"subscriptions": [
{
"channel": "price.polymarket",
"filter": {
"asset_id": "21742633143463906290569050155826241533067272736897614950488156847949938836455"
}
},
{
"channel": "price.crypto",
"filter": {
"symbol": "btcusd"
}
}
]
}{
"op": "unsubscribe",
"channel": "price.crypto",
"filter": {
"symbol": "btcusd"
}
}{
"op": "auth",
"rid": "a1",
"auth": {
"apiKey": "00000000-0000-4000-8000-000000000000",
"secret": "<api secret>",
"passphrase": "<api passphrase>"
}
}{
"op": "ping",
"rid": "p1"
}{
"op": "challenge",
"rid": "c1"
}{
"op": "challenge",
"nonce": "3f2b6c1e-9a4d-4c2b-8e1f-0a1b2c3d4e5f",
"rid": "c1"
}{
"op": "subscribed",
"channel": "price.crypto",
"rid": "s1"
}{
"op": "unsubscribed",
"channel": "price.crypto"
}{
"op": "authed",
"rid": "a1"
}{
"op": "pong",
"rid": "p1"
}{
"op": "error",
"code": "auth_required",
"channel": "price.crypto",
"rid": "s1"
}{
"v": 1,
"channel": "price.polymarket",
"seq": 1,
"ts": 1788973000123,
"snapshot": true,
"payload": {
"market": "0x9deb0baac40648821f96f01339229a422e2f5c877de55dc4dbf981f95a1e709c",
"asset_id": "21742633143463906290569050155826241533067272736897614950488156847949938836455",
"best_bid": "0.51",
"best_ask": "0.53",
"hash": "3f9c1e7a",
"timestamp": 1788972999871
}
}{
"v": 1,
"channel": "price.crypto",
"seq": 1,
"ts": 1788973000000,
"snapshot": true,
"payload": {
"symbol": "btcusd",
"source": "pyth",
"data": [
{
"timestamp": 1788972880000,
"value": 64123.5,
"full_accuracy_value": "64123.50000000"
},
{
"timestamp": 1788972881000,
"value": 64125.1,
"full_accuracy_value": "64125.10000000"
}
]
}
}{
"v": 1,
"channel": "price.equity",
"seq": 5,
"ts": 1788973001200,
"payload": {
"symbol": "aapl",
"value": 189.42,
"full_accuracy_value": "189.4217",
"timestamp": 1788973001200,
"received_at": 1788973001207,
"is_carried_forward": false,
"source": "pyth"
}
}{
"v": 1,
"channel": "price.crypto.twap",
"seq": 3,
"ts": 1788973002000,
"payload": {
"symbol": "btcusd",
"value": 64120.7,
"full_accuracy_value": "64120.70000000",
"timestamp": 1788973002000,
"window_seconds": 60,
"source": "chainlink"
}
}{
"v": 1,
"channel": "price.equity.twap",
"seq": 3,
"ts": 1788973002000,
"payload": {
"symbol": "eurusd",
"value": 1.0842,
"full_accuracy_value": "1.08420000",
"timestamp": 1788973002000,
"window_seconds": 60,
"source": "chainlink"
}
}{
"v": 1,
"channel": "esports.series",
"seq": 2,
"ts": 1790000000000,
"payload": {
"event_id": "184213",
"title": "lol",
"source": "grid",
"provider_series_id": "2843071",
"schema_version": 1,
"binding_revision": 3,
"revision": 42,
"source_updated_at_ms": 1789999998000,
"observed_at_ms": 1790000000000,
"published_at_ms": 1790000000005,
"phase": "live",
"valid": true,
"invalidation_reason": "",
"feed_status": "live",
"capabilities": [
"series",
"plays"
],
"format": "best-of-3",
"best_of": 3,
"current_game": 1,
"legacy_score": "0-0,missing,missing|0-0|Bo3",
"period": "1/3",
"teams": [
{
"id": "47",
"name": "T1",
"polymarket_side": "home",
"games_won": 0
},
{
"id": "48",
"name": "G2",
"polymarket_side": "away",
"games_won": 0
}
],
"games": [
{
"number": 1,
"map": "",
"started": true,
"finished": false,
"paused": false,
"winner_team_id": "",
"clock": {
"seconds": 754,
"ticking": true,
"counts_down": false
},
"teams": [
{
"team_id": "47",
"side": "blue",
"kills": 0,
"objectives": [],
"players": [],
"drakes": [
"infernal"
],
"first_kill": false
},
{
"team_id": "48",
"side": "red",
"kills": 0,
"objectives": [],
"players": [],
"drakes": [],
"first_kill": false
}
],
"draft": [],
"structures": [],
"timers": [],
"rounds": []
}
],
"recent_plays": [
{
"id": "e1",
"game": 1,
"type": "player-completed-slayDragon",
"kind": "dragon",
"variant": "infernal",
"team_id": "47",
"player_name": "",
"target": "",
"occurred_at_ms": 1789999999000
}
]
}
}subscribe
unsubscribe
auth
type:object
ping
type:object
challenge (request)
type:object
Ask for this connection's challenge nonce
challenge
type:object
This connection's challenge nonce, the answer to a challenge request; never pushed unasked
subscribed
type:object
unsubscribed
type:object
authed
type:object
pong
type:object
error
type:object
price.polymarket envelope
type:object
price.crypto envelope
type:object
price.equity envelope
type:object
price.crypto.twap envelope
type:object
price.equity.twap envelope
type:object
esports.series envelope
type:object
此页面对您有帮助吗?