So we can create ViewStreams that depend on other services, config, etc. Previously, the PrimitiveManager relied purely on static construction of types through reflection.
33 lines
1003 B
C#
33 lines
1003 B
C#
namespace bts.SilverPine;
|
|
|
|
// public class DateRange {
|
|
// public DateTime Begin { get; set; }
|
|
// public DateTime End { get; set; }
|
|
// }
|
|
|
|
public class OhlcvDatabaseConfig {
|
|
public class DatasetConfig {
|
|
public string? Path { get; set; }
|
|
public string? Query { get; set; }
|
|
public List<string>? QueryParams { get; set; }
|
|
}
|
|
|
|
public DatasetConfig? Bbo1s { get; set; }
|
|
public DatasetConfig? Bbo1m { get; set; }
|
|
public DatasetConfig? Ohlcv1s { get; set; }
|
|
public DatasetConfig? Ohlcv1m { get; set; }
|
|
public DatasetConfig? Ohlcv1h { get; set; }
|
|
public DatasetConfig? Ohlcv1d { get; set; }
|
|
public DatasetConfig? Mbo { get; set; }
|
|
|
|
// public List<string>? Symbols { get; set; }
|
|
// public List<string>? Venues { get; set; }
|
|
// public List<string>? Types { get; set; }
|
|
// public List<DateRange>? DateRanges { get; set; }
|
|
// public string? Path { get; set; }
|
|
}
|
|
|
|
public class OhlcvStreamConfig {
|
|
public OhlcvDatabaseConfig? Database { get; set; }
|
|
}
|