Files
spark/src/DataStreamSuite/DataStreamPublisher/appsettings.ReplayMarketData.json
T
John Colvin 76fa35382e refactor: Add DataStream service modules for Dependency Injection
Namely, in DataStreamPublisher and PubSubServer. This is part of a broader
paradigm shift towards Dependency Injection and Factory Pattern.

https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection-guidelines

* Use interfaces to decouple services:
  - Decouple ManagedSubscriber from ISubscriberCore impl
  - Decouple PubTableBroker from IPublisherCore impl
  - Decouple RemoteQueryManager from IManagedSubscriber, IPubTableBroker impl

* Rename Publishers -> PublisherNodes in DataStreamPublisherConfig
* Model config profiles after dotnet appsettings
  - Rename Configurations/<name>.json -> appsettings.<name>.json
  - Make json fields match corresponding csharp props verbatim
    * The Dependency Injection framework doesn't support JsonPropertyName
      attributes. Config class props must match json fields verbatim.

* Move reusable startup code into new Bts.Extensions.Hosting proj
* Add pubsub and md-publisher services to compose.yaml
2026-01-04 21:08:11 +00:00

50 lines
982 B
JSON

{
"Spark": {
"ConfigServer": "http://sparkd:8000/config"
},
"SparkApi": {
"IsEnabled": true,
"EnableOrders": false,
"EnablePositions": false,
"EnableMarketData": false,
"EnableAdmin": false,
"Credentials": {
"User": "bts",
"Password": ""
}
},
"DatabentoMarketDataReplayer": {
"IsEnabled": true,
"BeginTime": "2025/07/01 09:30:00",
"EndTime": "2025/07/01 10:00:00",
"SecurityGroups": [
{
"Venue": "Glbx",
"Asset": "ES",
"SecurityType": "Future"
}
]
},
"DataStreamPublisher": {
"PublisherNodes": [
{
"Name": "MarketData",
"Streams": [
{
"Name": "bbo",
"Expression": "bbo()"
},
{
"Name": "instruments",
"Expression": "instruments()"
},
{
"Name": "trades",
"Expression": "trades()"
}
]
}
]
}
}