23 lines
907 B
C#
23 lines
907 B
C#
using System;
|
|
using Google.Protobuf.WellKnownTypes;
|
|
using MathNet.Numerics.Statistics;
|
|
|
|
namespace bts.history
|
|
{
|
|
public interface IFillModel
|
|
{
|
|
void send(OrderEntry order);
|
|
void update(string security_desc, Timestamp asof, ulong order_id, double price, uint size = uint.MinValue);
|
|
void cancel(string security_desc, Timestamp asof, ulong order_id);
|
|
|
|
void process_external_order(Timestamp transact_time, MBOMessage mbo);
|
|
void process_external_trade(Timestamp transact_time, string security_desc, co2.TradeMessage trade);
|
|
void process_external_book(Timestamp transact_time, string security_desc, co2.BookMessage book);
|
|
|
|
//TODO sucks
|
|
(int, int) get_my_piq(string security_desc, ulong orderid);
|
|
double tick_size(string security_desc);
|
|
bool operations_are_in_flight { get; }
|
|
Bucket latency_bucket { get; }
|
|
}
|
|
} |