-
Notifications
You must be signed in to change notification settings - Fork 1
/
channels.js
23 lines (21 loc) · 1.51 KB
/
channels.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
* liuzy <[email protected]>
* MIT Licensed
*/
const stringify = function (json) {
return JSON.stringify(json)
}
export const channels = {
// ltc
'ok_sub_spotcny_ltc_ticker': stringify({ 'event': 'addChannel', 'channel': 'ok_sub_spotcny_ltc_ticker' }), //订阅行情数据
'ok_sub_spot_ltc_depth': stringify({ 'event': 'addChannel', 'channel': 'ok_sub_spot_ltc_depth' }), //订阅现货市场深度(200增量数据返回)
'ok_sub_spotcny_ltc_depth_20': stringify({ 'event': 'addChannel', 'channel': 'ok_sub_spotcny_ltc_depth_20' }), //订阅市场深度
'ok_sub_spotcny_ltc_trades': stringify({ 'event': 'addChannel', 'channel': 'ok_sub_spotcny_ltc_trades' }), //订阅成交记录
'ok_sub_spotcny_ltc_kline_1min': stringify({ 'event': 'addChannel', 'channel': 'ok_sub_spotcny_ltc_kline_1min' }), //订阅K线数据(1min)
// btc
'ok_sub_spotcny_btc_ticker': stringify({ 'event': 'addChannel', 'channel': 'ok_sub_spotcny_btc_ticker' }), //订阅行情数据
'ok_sub_spot_btc_depth': stringify({ 'event': 'addChannel', 'channel': 'ok_sub_spot_btc_depth' }), //订阅现货市场深度(200增量数据返回)
'ok_sub_spotcny_btc_depth_20': stringify({ 'event': 'addChannel', 'channel': 'ok_sub_spotcny_btc_depth_20' }), //订阅市场深度
'ok_sub_spotcny_btc_trades': stringify({ 'event': 'addChannel', 'channel': 'ok_sub_spotcny_btc_trades' }), //订阅成交记录
'ok_sub_spotcny_btc_kline_1min': stringify({ 'event': 'addChannel', 'channel': 'ok_sub_spotcny_btc_kline_1min' }), //订阅K线数据(1min)
}