Type/to search

market center client

Template
Created: 2020-01-19 23:29:25
Last modified: 6 years ago
17
Follow
35
Followers

行情中心客户端

客户端配合行情中心使用

为什么有行情中心

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

传统方式

行情中心

行情中心部署

  1. 源码编译部署
  2. 二进制部署
  3. 需要帮助请联系wx:btstarinfo, Q:6510575

请注意

  • 行情中心只提供行情数据接口,不提供下单接口
  • 行情中心只能运行在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
Strategy parameters
行情中心路径
Comment
All comments (6)

    怎么用啊

    4 years ago

    这个怎么用啊

    4 years ago

    延时呢?

    6 years ago

    client到center的延迟基本可以忽略。要数据我可以给你测一组

    6 years ago
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)