market center client
17
Follow
35
Followers
行情中心客户端
为什么有行情中心
对于行情的访问有REST与Websocket,而Websocket由于种种不可抗拒的因素,导致其连接被强行断开,这时策略需做好种种容错机制。REST往往还是最稳的方式。
当你有多个策略在相同平台上跑时,如OKEx,而这多策略又在同一台服务器上,对于REST API的访问是有频率限制的(详情请参考个平台API文档), 限制的方式有多种,如IP限制,账号限制,或两者组合等。
使用行情中心可降低REST请求频率


行情中心部署
请注意
- 行情中心只提供行情数据接口,不提供下单接口
- 行情中心只能运行在Linux, Unix上
API
- GetSupportList
- SubscribeSpotTicker
- SubscribeSpotDepth
SubscribeSpotTrade- GetSpotTicker
- GetSpotDepth
GetSpotTrade- SubscribeFutureTicker
- SubscribeFutureDepth
SubscribeFutureTrade- GetFutureTicker
- GetFutureDepth
GetFutureTrade
Source
JavaScript
// a client for market center, https://github.com/goex-top/market_center
// api list
// * GetSupportList
// * SubscribeSpotTicker
// * SubscribeSpotDepth
// * ~~SubscribeSpotTrade~~
// * GetSpotTicker
// * GetSpotDepth
// * ~~GetSpotTrade~~
// * SubscribeFutureTicker
// * SubscribeFutureDepth
// * ~~SubscribeFutureTrade~~Strategy parameters
Related strategies
Comment
All comments (6)
- 1
