Skip to content

Commit 9323cbd

Browse files
committed
Update torq to add backtest mode
1 parent 5704930 commit 9323cbd

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

torq.q

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ stdoptionusage:@[value;`stdoptionusage;"Standard options:
5959
[-localtime]:\t\t\tuse local time instead of GMT
6060
[-usage]:\t\t\tprint usage info
6161
[-test]:\t\t\tset to run unit tests
62-
[-jsonlogs]:\t\t\toutput logs in json format"]
62+
[-jsonlogs]:\t\t\toutput logs in json format"
63+
[-backtest]:\t\t\tset to run backtest mode]
6364

6465
// extra info - used to extend the usage info
6566
extrausage:@[value;`extrausage;""]
@@ -711,3 +712,8 @@ if[(`test in key .proc.params);
711712
.lg.e[`init;"environment variable KDBTESTS undefined"]
712713
]
713714
];
715+
716+
// Overwrite pub/sub channels when in backtest mode
717+
if[`backtest in key .proc.params;
718+
.backtest.init[];
719+
];

0 commit comments

Comments
 (0)