-
Notifications
You must be signed in to change notification settings - Fork 0
/
Documentation.txt
66 lines (49 loc) · 2.09 KB
/
Documentation.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Pre-requisites
Visual Studio 2015
Sql Server 2012 R2 Express Edition
Step 1:
Copy the ZmqHubResource folder in the c:\s2trading folder. This folder contains all the common files required for builing the application.
Step 2:
restore the dbbackup on the sqlserver 2012 r2.
we need to restore the three databases kept in the folder c:\s2trading\zmqhubresource\dbbackup
LPINTRADAY.bak
LPRELIABLEMAP.bak
THOM.bak
Step 3:
Create a odbc data source
DSN Name = db2
Server = (serverName)
Specify Sql Server Authentication LoginId & Password
Database = LPINTRADAY
Step 4:
FeedHandler (Server Side Code)
------------------------------
Open the FeedHandler in Visual Studio 2015
Then Change the compilation option to release and cpu mode to x64.
In the code we need to change the server connection details as provided above for odbc connection.
SqlServerClient.cpp line no 79.
DSN=db2;DATABASE=LPINTRADAY;UID=sa;PWD=sa123;
change the username and password provided for the connection.
Rebuild the whole solution.
For running the exe we need to do the below steps
First we need to run the Logger with the below command
Logger.exe logger.config
Second we need to run the publisher which will fetch the details from the db and publish it using zmq.
Step 5:
OrderManagementV2 (Server Side Code)
------------------------------------
Add Reference for AsyncIO.dll, NetMQ.dll & QuickFix.dll
C:\s2trading\zmqhubresource\packages\AsyncIO.0.1.20.0\lib\net40\AsyncIO.dll
C:\s2trading\zmqhubresource\packages\NetMQ.3.3.3.4\lib\net40\NetMQ.dll
C:\s2trading\zmqhubresource\packages\QuickFix.dll
Rebuild the solution
And run the program
Step 6:
ScannerWindowApplication (Client Side Code)
-------------------------------------------
Add Reference for AsyncIO.dll, NetMQ.dll & QuickFix.dll
C:\s2trading\zmqhubresource\packages\AsyncIO.0.1.20.0\lib\net40\AsyncIO.dll
C:\s2trading\zmqhubresource\packages\NetMQ.3.3.3.4\lib\net40\NetMQ.dll
This program we can run on the client side to display the feeds on scanner.
Route the orders to OrderManagementV2.
Fetch the orders from the db and display on the OrderBlotter.