sbv2-solana/directory/jobs/exchanges/okex.jsonc

41 lines
1021 B
Plaintext

{
"name": "Okex BTC/USD",
"tasks": [
{
"websocketTask": {
"url": "wss://ws.okex.com:8443/ws/v5/public",
"subscription": "{\"op\":\"subscribe\",\"args\":[{\"channel\":\"tickers\",\"instId\":\"BTC-USDT\"}]}",
"maxDataAgeSeconds": 15,
"filter": "$[?(@.event != 'subscribe' && @.arg.channel == 'tickers' && @.arg.instId == 'BTC-USDT' && @.data[0].instType == 'SPOT' && @.data[0].instId == 'BTC-USDT')]"
}
},
{
"medianTask": {
"tasks": [
{
"jsonParseTask": {
"path": "$.data[0].bidPx"
}
},
{
"jsonParseTask": {
"path": "$.data[0].askPx"
}
},
{
"jsonParseTask": {
"path": "$.data[0].last"
}
}
]
}
},
{
"multiplyTask": {
/* Mainnet USDT/USD Feed */
"aggregatorPubkey": "ETAaeeuQBwsh9mC2gCov9WdhJENZuffRMXY2HgjCcSL9"
}
}
]
}