Skip to content

Comments

Qty newtype#95

Merged
akenshaw merged 7 commits intomainfrom
qty-newtype
Feb 18, 2026
Merged

Qty newtype#95
akenshaw merged 7 commits intomainfrom
qty-newtype

Conversation

@akenshaw
Copy link
Member

@akenshaw akenshaw commented Feb 18, 2026

This PR introduces a "newtype", Qty, for handling market data, similar to the existing Price unit but for quantities. Kline, Trade, Depth, and their derived data structures now use Qty, providing a more robust approach to normalizing volume/quantity/size

Fixes a precision issue in OrderRun creation on HistoricalDepth, which previously caused certain small market cap tickers in HeatmapChart to display incorrectly extended runs

Also some refactors on TickersTable to pass around now needed contract_size by fetch methods, with little renamings for code clarity(e.g. fetch_ticker_prices() -> fetch_ticker_stats())

@akenshaw akenshaw merged commit 0ab1a92 into main Feb 18, 2026
3 checks passed
@akenshaw akenshaw deleted the qty-newtype branch February 18, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant