Configure Cyan Spring ATS


Configuration For Server

Configuration For Back Testing

Configuration For Interactive Broker Connection

Server configuration

This section provides information of how to configure upstream connection, downstream connection and market data connection for your environment. You may take a look at conf/server_sim.xml and conf/server_ib.xml as examples

Upstream connection

The block of codes below shows an upstream FIX connection configuration

	<bean id="upStreamManager" class="com.cyanspring.server.upstream.UpStreamManager">
	    <constructor-arg>
	        <list>
			<ref bean="fixUpStreamAdaptor"/>
	        </list>
	    </constructor-arg>
	</bean>
 			
	<bean id="fixUpStreamAdaptor" class="com.cyanspring.server.upstream.fix.FixUpStreamAdaptor">
       	<constructor-arg type="String"><value><![CDATA[
[DEFAULT]
PersistMessages=N
FileLogPath=target/test/log/upstream
FileStorePath=target/test/store
ConnectionType=acceptor
StartTime=00:00:00
EndTime=23:00:00
HeartBtInt=30
SenderCompID=ACCEPTOR1
SocketAcceptPort=13678
UseDataDictionary=N
ValidateUserDefinedFields=N

[SESSION]
BeginString=FIX.4.2
TargetCompID=INITIATOR1
		]]></value></constructor-arg>
	    <constructor-arg>
	    	<ref bean="fixParentOrderConverter"/>
	    </constructor-arg>
	</bean>
	
Downstream connection

The block of codes below shows a downstream FIX connection configuration

	<bean id="downStreamManager" class="com.cyanspring.common.downstream.DownStreamManager">
	    <constructor-arg>
	        <list>
		    	<ref bean="fixDownStreamAdaptor"/>
	        </list>
	    </constructor-arg>
	    <constructor-arg>
	        <list>
	        </list>
	    </constructor-arg>
	</bean>

	<bean id="fixDownStreamAdaptor" class="com.cyanspring.server.downstream.fix.FixDownStreamAdaptor">
       	<constructor-arg type="String"><value><![CDATA[
[default]
PersistMessages=N
FileLogPath=target/test/log/downstream
ConnectionType=initiator
SenderCompID=Algo
TargetCompID=SIMULATOR
SocketConnectHost=localhost
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=300
ReconnectInterval=5
ResetOnLogon=Y
UseDataDictionary=N

[session]
BeginString=FIX.4.2
SocketConnectPort=13679
		]]></value></constructor-arg>
	</bean>
	
Market data connection

The block of codes below shows a market data connection configuration

	<bean id="mdManager" class="com.cyanspring.server.marketdata.MarketDataManager">
		<constructor-arg>
			<ref bean="simMarketDataAdaptor"/>
		</constructor-arg>
	</bean>