###########################################
######### Network configurations  #########
###########################################

# Count of recovery site. Used to achieve high availablity at the expense of a little performance of order notification.
# 0 for no recovery, 1 for recovery always use primary site, 2 for recovery use primary and secondary sites
RecoverySiteCount=0

# IP address of primary trading server
TradingServerIP=127.0.0.1

# TCP port of primary trading server, other ports will be delivered after logged in
TradingServerPort=51000

# IP address of secondary trading server. 
# Valid only when RecoverySiteCount equals to 2.
TradingServerIP2=127.0.0.2

# TCP port of secondary trading server, other ports will be delivered after logged in. 
# Valid only when RecoverySiteCount equals to 2.
TradingServerPort2=51000

###########################################
######### Trading configurations  #########
###########################################

# Choose trading protocol, optional values are TCP, UDP, XTCP
TradingProtocol=UDP

# Affinity CPU ID for thread to receive order/trade notifications, -1 indicate no need to set CPU affinity
TCPTradingCPUID=-1

# Affinity CPU ID for thread to send XTCP trading, -1 indicate no need to set CPU affinity
XTCPTradingCPUID=-1

# Timeout of select() when receiving order/trade notifications, in millisec. -1 indicates running without select()
TradingServerTimeout=-1

# Work mode for recalculation of margin and position profit. Valid when using ydExtendedApi.
#     auto(default): subscribe market data and automatically recalculate in proper time.
#     subscribeOnly: subscribe market data and recalcMarginAndPositionProfit should be called explicitly
#     off: never do recalculation
RecalcMode=auto

# Gap between recalculations, in milliseconds. Valid when RecalcMode is set to auto.
# It will be adjusted to 1000 if less than 1000
RecalcMarginPositionProfitGap=1000

# Delay of recalculation after market data arrives to avoid collision with input order, in milliseconds.
# Valid when RecalcMode is set to auto. Should be between 0 and 100.
RecalcFreeGap=100

# Affinity CPU ID for timer thread used to refresh capital, -1 indicate no need to set CPU affinity
TimerCPUID=-1

###########################################
####### MarketData configurations  ########
###########################################

# Whether need to connect to TCP market data server
ConnectTCPMarketData=no

# Timeout of select() when receiving TCP market data, in millisec. -1 indicates running without select()
TCPMarketDataTimeout=10

# Affinity CPU ID for thread to receive TCP market data, -1 indicate no need to set CPU affinity
TCPMarketDataCPUID=-1

# Whether need to receive UDP multicast market data
ReceiveUDPMarketData=no

###########################################
######### Other configurations  ###########
###########################################

AppID=yd_dev_1.0
AuthCode=ecbf8f06469eba63956b79705d95a603

