contracts show in entry:exit
This commit is contained in:
1 parent
dea2358c51
commit
ea6eaf6e1d
2 files changed
+9
-3
No files matched your search
@@ -175,8 +175,9 @@ namespace bts.history{
|
||||
return rv;
|
||||
}
|
||||
|
||||
// Writing out to csv ///////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
#region Writing out
|
||||
|
||||
private static string _format_timestamp(Timestamp t, bool show_date = true){
|
||||
return t.ToString().Replace("T"," ");
|
||||
}
|
||||
@@ -246,7 +247,11 @@ namespace bts.history{
|
||||
_format_timestamp(b.TimeRange.T1),
|
||||
_format_timestamp(b.TimeRange.T2),
|
||||
MarketQueriesHelper.period_ns(b.TimeRange),
|
||||
String.Format("{0}:{1}",min_max.Item1,min_max.Item2),
|
||||
String.Format("{0}({1}):{2}({3})",
|
||||
min_max.Item1,
|
||||
p.leg_books.ElementAt(min_max.Item1).Security,
|
||||
min_max.Item2,
|
||||
p.leg_books.ElementAt(min_max.Item2).Security),
|
||||
p.max_processing_time(),
|
||||
p.viable_side == Side.Buy ? MarketQueriesHelper.book_price(b,true,0) :
|
||||
MarketQueriesHelper.book_price(b,false,0),
|
||||
|
||||
@@ -28,7 +28,8 @@ namespace bts.history{
|
||||
var files = Directory.GetFiles(path);
|
||||
var price_map = files.ToDictionary(f => f, f =>
|
||||
new List<MarketQueries.SyntheticPrice>());
|
||||
var file_groups = MarketQueriesHelper.break_into_multiples(files,4);
|
||||
ushort prl_files = 10;
|
||||
var file_groups = MarketQueriesHelper.break_into_multiples(files,prl_files);
|
||||
|
||||
foreach (var fg in file_groups){
|
||||
Parallel.ForEach(fg, f =>{
|
||||
|
||||
Reference in new issue
Block a user