historical data service
This commit is contained in:
1 parent
a6d4a05253
commit
e49e11feb5
3 files changed
+4
-3
No files matched your search
Vendored
+1
-1
@@ -106,7 +106,7 @@
|
||||
"args": [
|
||||
"historical",
|
||||
"--rstart", "11/25/2019",
|
||||
"--rend", "11/29/2019",
|
||||
"--rend", "11/25/2019",
|
||||
"--rsymbol", "ZN",
|
||||
"--rsecuritytype", "Synthetic",
|
||||
"--post_process_file_type", "Trade",
|
||||
|
||||
Binary file not shown.
@@ -102,14 +102,15 @@ namespace bts.history
|
||||
return;
|
||||
}
|
||||
|
||||
async public override void Dispose()
|
||||
public override void Dispose()
|
||||
{
|
||||
base.Dispose();
|
||||
foreach(var vs in _fs)
|
||||
{
|
||||
Console.WriteLine($"Upload {vs.Key} to aws: {_publish_to_aws}");
|
||||
if(_publish_to_aws)
|
||||
{
|
||||
await _ul.upload_s3(vs.Key, vs.Value);
|
||||
_ul.upload_s3(vs.Key, vs.Value).GetAwaiter().GetResult();
|
||||
Console.WriteLine($"File {vs.Key} written to aws s3 {_ul.bucket_name} ");
|
||||
}
|
||||
vs.Value.Dispose();
|
||||
|
||||
Reference in new issue
Block a user