Libannhoo_md_sdk  1.6.1
for index, tick(entrust and trade), and snapshot with solar flare
 All Classes Namespaces Files Functions Variables Pages
Configure
market:
- sh
- sz
sh:
quotes_server:
- master
- slave
master:
host: 232.4.102.96
timeout: 99999
try_count: 99999
imr_interface: 192.168.9.202
slave:
host: 232.4.102.96
timeout: 99999
try_count: 99999
imr_interface: 192.168.9.202
server:
url: http://192.168.1.205:8080/sdk/login
ip: 192.168.1.201
mac: b4:2e:99:8f:7d:50
name: yyds
pwd: anhoo
sz:
quotes_server:
- master
- slave
master:
host: 232.4.102.95
timeout: 99999
try_count: 99999
imr_interface: 192.168.9.202
slave:
host: 232.4.102.95
timeout: 99999
try_count: 99999
imr_interface: 192.168.9.202
server:
url: http://192.168.1.205:8080/sdk/login
ip: 192.168.1.201
mac: b4:2e:99:8f:7d:50
name: yyds
pwd: anhoo
# quotes lists
quotes_type:
- index
- snapshot
- tick
index:
port: [22345, 12345]
recv_np: [1, 2] # recv udp thread np
dispatch_np: 10 # attach cpu index
snapshot:
port: [22346, 12346]
recv_np: [3, 4] # recv udp thread np
dispatch_np: 11 # attach cpu index
tick:
port: [22347, 12347]
recv_np: [5, 6] # recv udp thread np
dispatch_np: 12 # attach cpu index
logger:
name: annhoo_md_sdk.log
# 0: trace
# 1: debug
# 2: info
# 3: warn
# 4: error
# 5: fatal
# 6: off
level: 1
rotate_size: 1000 # M
rotate_total: 5
stdout: false
system:
nice: -20
queue_size: 60000
recv_mem_size: 1234567
  1. server : 基金用户, 此项不启用(但不要删除)
  2. port : 端口号不能够重复, 每种市场的每种行情的端口唯一 (如果全部开启, 是6个不同的端口)
  3. xxx_np : 含义为 CPU 的索引(从零开启)
  4. nice : 需要 sudo 权限
  5. tick: tick数据含委托和成交数据