Commit Graph
14480 Commits
Author SHA1 Message Date
John Colvin e1b482e374 fix: Preserve clipboard (copy/paste) when DSQA exits 2025-11-19 14:40:50 -05:00
John Colvin e6dd8ccafb ui: Improve dateTime formatting in DSQA 2025-11-19 14:40:50 -05:00
John Colvin 36366cb7c4 feat: Add pseudo member (extension) function calls to DSL 2025-11-19 14:40:49 -05:00
John Colvin dbc5304546 refactor: Move StreamQueryMetadata into StreamFactories namespace 2025-11-19 14:40:49 -05:00
John Colvin b17b8fc7c8 improve: Add config for natural language streams
They're created by a stream factory now, which has the config handy.
Config includes api key, model name, mlp file, etc.

fix add config for natural language streams
2025-11-19 14:40:17 -05:00
John Colvin 7a65758fa5 refactor: Drop null type modifier in TryGetFirst ext
Replace w/ MaybeNullWhen attributes
2025-11-19 14:40:17 -05:00
John Colvin 79aa541bd7 cleanup: Remove unnecessary code 2025-11-19 14:40:17 -05:00
John Colvin f35dae7110 qol: Don't connect to sparkd by default in Spark.Console cli 2025-11-19 14:40:17 -05:00
John Colvin 02290f2f34 qol: Change default pubsub url from 'pubsub' to 127.0.0.1
The hostname 'pubsub' works when running pubsub and other services
via docker compose. In practice, it seems we usually just run them on a
single host, without using docker compose.
2025-11-19 14:40:17 -05:00
John Colvin 04200a330a feat: Add historic market data streams factory
Loads historic md from Databento files in structured paths. It is
designed to work with files downloaded via databento_client.py
2025-11-19 14:40:15 -05:00
John Colvin 0ea884b505 fix: Don't modify input env in BoundBooleanExpression.Evaluate 2025-11-19 14:35:12 -05:00
John Colvin 2d0df72f46 refactor: Pass IMarketDataClient to streams via dependency injection
In general, the streams should not instantiate services, etc. themselves.
2025-11-19 14:35:12 -05:00
John Colvin 8766786109 improve: Support all integer types in IBlueRow Id ext fn 2025-11-19 14:35:12 -05:00
John Colvin e48eeb4df3 cleanup: Remove unused code CSharpString.cs 2025-11-19 14:35:11 -05:00
John Colvin b1bfc6f65b feat: Add DiffStream to compute row diffs (like pandas) 2025-11-19 14:35:11 -05:00
John Colvin 6f209b97d4 refactor: Rewrite SortStream now that IBlueRowCollection is IList 2025-11-19 14:35:11 -05:00
John Colvin 751980ba67 refactor: Add param for TimeSeriesStream timestamp col name
Default it to 'ts_event' instead of 'timestamp' (this is consistent w/
Databento schema fwiw)
2025-11-19 14:35:11 -05:00
John Colvin 05379f6ac4 fix: Trim backticks from nl generated dsl 2025-11-19 14:35:11 -05:00
John Colvin fc1a89a60f feat: Add FeatherReader stream
We don't need this right now, but I already wrote it...it might be
useful later.
2025-11-19 14:35:11 -05:00
John Colvin 45a9322090 feat: Add function defs to DataStream DSL 2025-11-19 14:35:11 -05:00
John Colvin a0276ac34f chore: Support mutations in AggregateDictionary (optionally) 2025-11-19 14:35:11 -05:00
John Colvin 827079f5f5 chore: Implement IComparable in BookTuple 2025-11-19 14:35:11 -05:00
John Colvin 75f0cd7831 improve: Serialize to/from parquet in PythonDataframeStream 2025-11-19 14:35:08 -05:00
John Colvin 79c3e544aa feat: Add ParquetReader/Writer streams 2025-11-19 14:32:37 -05:00
John Colvin 4aebdad90b fix: Fire multiple rows at once in replay bbo/trade streams doWork fn
If necessary to keep pace with timestamps in the file.
2025-11-19 14:32:34 -05:00
John Colvin d7300cbddb refactor: Launch LiveTradeStream via IDataStreamFactory 2025-11-19 14:27:48 -05:00
John Colvin c21cd2ba6d chore: Add id field to TradeRecord
Need this for streams
2025-11-19 14:27:48 -05:00
John Colvin 488fbe3c43 fix: Actually use sec filter in MarketDataClient.Trades 2025-11-19 14:27:48 -05:00
John Colvin d25db044af style: Rename dispose_thread_safe in PascalCase 2025-11-19 14:27:48 -05:00
John Colvin d3e31e4e44 refactor: Make IBlueRowCollection inherit IList<IBlueRow> 2025-11-19 14:27:46 -05:00
John Colvin 4fd2073b63 improvement: Lookup timestamp col by index rather than name 2025-11-19 14:19:21 -05:00
John Colvin 0b64bd6544 refactor: Remove hardcoded csv path from ReplayFutureLiveBBOStream
Add constructor overload to accept an input ViewStream
2025-11-19 14:19:19 -05:00
John Colvin d1fc4d4ce9 improvement: Don't mutate IBlueRowCollection after firing in FilterStream 2025-11-19 14:17:05 -05:00
John Colvin 654ef44664 improvement: Make MultiRowRollingMathStream more performant
Avoid creating extra lists and o(n) enumeration
2025-11-19 14:17:05 -05:00
John Colvin 2f83499524 refactor: Move IBlueTableSchema ext fns into DataStreamCore
The csproj in which IBlueTableSchema is defined.
2025-11-19 14:17:03 -05:00
John Colvin cfbd324b6f tool: Add databento_client.py to fetch (and store) databento data 2025-11-19 14:15:01 -05:00
John Colvin ae513ed247 chore: Copy/paste some log utils from py interop dir to tools/py 2025-11-19 14:15:01 -05:00
John Colvin c965f125ed refactor: Support dict and list of tuples in py fmt_table 2025-11-19 14:15:01 -05:00
John Colvin 41aa5ec834 refactor: Replace old NLStreamFactory w/ new BlueOrb one
Replace hardcoded file paths with proper config while we're at it
2025-11-19 14:15:01 -05:00
John Colvin 7651397e22 refactor: Pass composite stream factory back to recursive factories as service 2025-11-19 14:15:01 -05:00
John Colvin 41a800aac6 build: Add appsettings.Local.json to DSQA 2025-11-19 14:15:01 -05:00
John Colvin c549b51d80 refactor: Support random access (IList) to data in TableUpdate
We're doing the same thing to IBlueRowCollection. This will allow us to
implement column based operators, like python pandas.
2025-11-19 14:15:01 -05:00
John Colvin 37c1eda425 Add TestCommand back to Spark.Console cli 2025-11-19 14:15:01 -05:00
John Colvin 52ad459c19 new: Add GetColumn fn to IBlueRowCollection interface
This allows us to implement python/pandas functionality, much of which is based
on column operations.
2025-11-19 14:14:58 -05:00
John Colvin d6158bc9a0 chore: Add various collection classes
These will be useful in stream operators, row indexing, etc.

* AggregateList
* DeltaList
* DictionarySetWrapper
* ImmutableOrderedDictionary
* IMutableListFacade
  - inherits IReadOnlyList<T> and IList<T>
  - throws NotSupportedException in default impls for mutation ops
* IMutableCollectionFacade
  - inherits IReadOnlyCollection<T> and ICollection<T>
  - throws NotSupportedException in default impls for mutation ops
* MergedSortedList
* OrderedDictionary
* ReverseArrayList
* SliceList
* StepList
2025-11-19 14:03:46 -05:00
John Colvin 85babef37b refactor: Drop nullable modifier for TValue in GetValueOrDefault ext fn 2025-11-19 14:03:46 -05:00
John Colvin fb3a6262b3 cleanup: Fix build warnings
* BlueOrbNLStream.cs
* ChangeTableNameStream.cs
* FilterStream.cs
* FilterStream.cs
* GroupByOutputTable.cs
* GroupByStream.cs
* JoinForeignTable.cs
* MultiRowRollingMathStream.cs
* MutableAppendStream.cs
* PersistWindowState.cs
* PubsubEchoTestStream.cs
* RowDictionaryTable.cs
* SortedTable.cs
* TimeSeriesStream.cs

Also add Metadata prop to IDataPacket
2025-11-19 14:03:43 -05:00
John Colvin a3bee2313a chore: Add 'Rows' prop to BlueTable to avoid accidentally iterating over KeyValuePairs 2025-11-19 14:01:02 -05:00
John Colvin d8d9a25f22 refactor: Use dependency injection in Spark.Console 2025-11-19 14:01:02 -05:00
John Colvin 45fcea5670 cleanup: Remove broken settings cmd from Spark.Console 2025-11-19 14:01:01 -05:00