forked from KxSystems/kdb-taq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtickNotes.q
31 lines (25 loc) · 802 Bytes
/
tickNotes.q
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
// ** tickNotes **
/
globals used
.u.w - dictionary of tables->(handle;syms)
.u.i - msg count in log file
.u.j - total msg count (log file plus those held in buffer)
.u.t - table names
.u.L - tp log filename, e.g. `:./sym2008.09.11
.u.l - handle to tp log file
.u.d - date
\
////////////////////////// INSTRUCTIONS TO RUN //////////////////////////
// TICKERPLANT
q tick.q sym logFiles/ -p 5000
// FEEDHANDLER
q tick/fh.q sym 5010
// RDB1 - subscribing for quote and trade and publishing aggTrade Table
export AGGRDB="TRUE"
q tick/r.q localhost:5000 localhost:5002 -p 5005
// RDB2 - subscribing for aggTrade Table Only
export SUBTABS="aggTrade"
q tick/r.q localhost:5000 localhost:5002 -p 5006
// HDB
q sym -p 5012
/////////////////////////////////////////////////////////////////////////