testing replay

This commit is contained in:
Kevin Darby committed 2019-09-04 17:02:06 -04:00
1 parent d67f15b3fb
commit 5992f4814d
3 files changed
+9 -6

No files matched your search

+5 -2
View File
@@ -105,8 +105,11 @@
"program": "${workspaceRoot}/build/Debug/bin/net471/sparkcmd.exe",
"args": [
"historical",
"-d",
"mbo/mbo/20190429/20190429-MBO_xcbt_zn_fut_0-eth.gz",
"--rstart", "09/02/2019",
"--rend", "09/03/2019",
"--rsymbol", "ZN",
"--rsecuritytype", "Future",
"--micros", "20",
],
"cwd": "${workspaceRoot}",
"stopAtEntry": false,
@@ -39,7 +39,7 @@ namespace bts.history
{
var chanup = new co2.ChannelUpdate()
{
Key = md.SecurityId,
Key = md.SecurityId, //TODO join with the secdefs that I don't have
Security = new Security()
{
Id = md.SecurityId,
@@ -130,8 +130,8 @@ namespace bts.history
Exchange = Venue.Glbx,
Symbol = symbol,
SecurityType = st,
Begin = Timestamp.FromDateTime(start),
End = Timestamp.FromDateTime(end)
Begin = Timestamp.FromDateTime(DateTime.SpecifyKind(start, DateTimeKind.Utc)),
End = Timestamp.FromDateTime(DateTime.SpecifyKind(end, DateTimeKind.Utc))
};
var str = await _server.get_md_stream(query);
api.Product prod = new Product() { Exchange = query.Exchange, Type = query.SecurityType, Symbol = query.Symbol };
@@ -38,7 +38,7 @@ namespace bts.history
[Option('t', "rsecuritytype", Required = false, HelpText = "SecurityType for 'replay' from cme mbo files into our system as orders")]
public string replaysecurity{ get; set; }
[Option('d', "micros", Required = false, HelpText = "A quantum of time, in microseconds")]
[Option('m', "micros", Required = false, HelpText = "A quantum of time, in microseconds")]
public int dt_us{ get; set; }
}