Prerequisite
Database TablesStrategy Order Server is a windows service.
Prerequisites
Database tables
Strategy order server uses the following Database Tables and sql create scripts can be found below.
Code Block |
---|
[STRATEGY_ORDERS] [STRATEGY_ORDER_LEGS] |
...
View file | ||
---|---|---|
|
Access Rules
An access rule needs to be inserted for the relevant groups which will use the service.
Code Block | ||
---|---|---|
| ||
insert into ACCESSRULES (OPERATION_NAME, PERMISSION, ACCESSLIST_ID) values ('StrategyOrderEntryService', 1, 1) |
Deployment
0: Make sure the prerequisites have been fullfilled.
1: Copy files to server
The files should be installed here: C:\KodiakStrategyServer\
2: Windows Service install
The windows service is installed with the followind command line script.
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe" "C:\KodiakStrategyServer\Kodi.Kodiak.Strategies.StrategyServer.exe"
3: Configure Task Scheduler task
A task scheduler task should be created to run the attached script file once a day.
Restart Strategy windows service batch script.
View file | ||
---|---|---|
|
Configuration
There is only one configuration file which needs to be set.
...
Code Block |
---|
<appSettings> <add key="ConnectionString" value="Server=xxxx;Initial Catalog=KODIAK;User Id=Kodiak;Password=xxxx;" /> <add key="ActiveMQPath" value="tcp://localhost:61616" /> <add key="ConnectionTypeActiveMQClientId" value="oracleStrategyServer" /> <!-- PROD environment --> <add key="ActiveMQPathApiUrl" value="tcphttps://localhost:61616api.livemarketdata.com" /> <add key="ActiveMQClientIdAuthUrl" value="StrategyServerhttps://users.livemarketdata.com/v2/token" /> <!-- Test Environment <add key="ApiUrl" value="https://api-staging.livemarketdata.com" /> <add key="AuthUrl" value="https://users-staging.livemarketdata.com/v2/token" /> --> <add key="AuthUsername" value="oms_server@kodiusername@kodi.is" /> <add key="AuthPassword" value="kodiak12xxxxxxx" /> <add key="log4net.Internal.Debug" value="false" /> </appSettings> |
...
C:\KODIAK_LOGS\StrategyServer
StrategyServer.log
StrategyServer.Requests.log
StrategyServer.Publisher.log
Wcf
Code Block |
---|
<service name="Kodi.Kodiak.Strategies.StrategyOrderEntryService" behaviorConfiguration="ServiceBehavior"> <host> <baseAddresses> <add baseAddress="https://kodiak-server.kodi.internal:8080/StrategyOrderEntryService.svc" /> </baseAddresses> </host> |
Setup
Overview - What does this service do
How do you set this up?
Do you need to create a user/user group/trader/external user?
Where are the executables?
Where is the jenkins build?
Deployment
Where are the configs saved after deployment
What steps should be followed after deployment?
Check logs?
Check endpoints?
Start KODIAK Oms Client?
Windows Service install
...
Logging
Logs are located in the following folder
C:\KODIAK_LOGS\StrategyServer
StrategyServer.log
StrategyServer.Requests.log
StrategyServer.Publisher.log