This commit is contained in:
Kevin Darby committed 2019-12-13 14:15:29 -05:00
1 parent ca4a639b86
commit adbab4057f
10 files changed
+7 -7

No files matched your search

@@ -43,7 +43,7 @@ namespace bts.history
for(int i = 0; i < hist.BucketCount; i++)
{
var buck = hist[i];
var matching_model = new FIFOModel(_shared_order_book, buck);
var matching_model = new FIFOMatchingModel(_shared_order_book, buck);
var algo = AlgoBase.algo_factory(algotype, matching_model, _security_list, algo_params);
_algos.Add(buck, new AlgoStatsWrapper( algo, _shared_order_book, options ) );
activate_algo(algo);
@@ -9,7 +9,7 @@ using MathNet.Numerics.Statistics;
namespace bts.history
{
public class FIFOModel : IMatchingModel
public class FIFOMatchingModel : IMatchingModel
{
IDictionary<string, MBOBook> _books = new Dictionary<string, MBOBook>();
@@ -18,7 +18,7 @@ namespace bts.history
Dictionary<string, List<Cancel>> _cancel = new Dictionary<string, List<Cancel>>();
public Bucket latency_bucket { get; }
public FIFOModel(Bucket latency)
public FIFOMatchingModel(Bucket latency)
{
this.latency_bucket = latency;
}
@@ -33,7 +33,7 @@ namespace bts.history
}
}
public FIFOModel(IDictionary<string, IOrderBook> obs, Bucket latency_us)
public FIFOMatchingModel(IDictionary<string, IOrderBook> obs, Bucket latency_us)
{
this.latency_bucket = latency_us;
foreach(var val in obs)
@@ -10,13 +10,13 @@ using mbts.co2;
namespace bts.history
{
public class NullModel : IMatchingModel
public class NullMatchingModel : IMatchingModel
{
IDictionary<string, co2.BookMessage> _books = new Dictionary<string, co2.BookMessage>();
Dictionary<ulong, OrderEntry> _orders = new Dictionary<ulong, OrderEntry>();
public Bucket latency_bucket { get; }
public NullModel(Bucket latency)
public NullMatchingModel(Bucket latency)
{
this.latency_bucket = latency;
}
+1 -1
View File
@@ -185,7 +185,7 @@ namespace bts.history
var q = new List<OrderStatus>();
IAlgo algo = null;
int count = 0; var matching_model = new NullModel(new Bucket(latency, latency +1));
int count = 0; var matching_model = new NullMatchingModel(new Bucket(latency, latency +1));
var ienum = stream_data(datastream, (T[] valcache, int min) =>
{
q.Clear();