51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
namespace mbts.co2 {
|
|
using System;
|
|
|
|
using security_key = System.UInt32;
|
|
|
|
public interface IMDConsumerHandle {
|
|
bool is_heart_beating { get; }
|
|
bool has_depth { get; }
|
|
security_key key { get; }
|
|
|
|
// The exchange key can change at CBOE. This numeric_id will always be correct
|
|
ulong numeric_id { get; }
|
|
|
|
// This property exists for specific performance optimization purposes Most callers should
|
|
// just use get_bbo/get_depth
|
|
ulong market_timestamp { get; }
|
|
ulong misc_timestamp { get; }
|
|
|
|
ulong total_volume { get; }
|
|
|
|
double settlement_price { get; }
|
|
DateTime settlement_date { get; }
|
|
double previous_settlement_price { get; }
|
|
DateTime previous_settlement_date { get; }
|
|
|
|
double open_price { get; }
|
|
DateTime open_date { get; }
|
|
|
|
double close_price { get; }
|
|
DateTime close_date { get; }
|
|
double session_high { get; }
|
|
double session_low { get; }
|
|
double fixing_price { get; }
|
|
|
|
bool get_bbo(ref ulong time, out NativePriceSize bid, out NativePriceSize ask);
|
|
|
|
bool get_depth(
|
|
ref ulong time, ref NativePriceSize[] bids, ref NativePriceSize[] asks, uint depth);
|
|
|
|
bool get_last_trade(
|
|
ref ulong time, out NativePriceSize ps, out DateTime timestamp, out ulong total_volume);
|
|
|
|
bool get_last_trade(
|
|
ref ulong time,
|
|
out NativePriceSize ps,
|
|
out DateTime timestamp,
|
|
out ulong total_volume,
|
|
out bool from_spread);
|
|
}
|
|
}
|