Skip to content

[bot] Add model fields missing from the REST and WebSocket specs - #1063

Merged
justinpolygon merged 2 commits into
masterfrom
jw/add-missing-model-fields
Dec 4, 2026
Merged

justinpolygon merged 2 commits into
masterfrom
jw/add-missing-model-fields

Conversation

@justinpolygon

Copy link
Copy Markdown
Collaborator

Adds response fields that the REST and WebSocket specs define but the models dropped. A full audit of the library against both specs found them.

REST

  • Agg.fractional_volume (from dv, string), used for the snapshot day and prevDay bars. The API sends this field, for example on get_snapshot_all("stocks", ...). The name matches MinuteSnapshot.fractional_volume.
  • FuturesContract: provider_id, provider_product_id
  • FuturesProduct: clearing_symbol, clearing_venue, provider_id, strategy_type
  • OptionContractSnapshot.fmv_last_updated and UniversalSnapshot.fmv_last_updated (int, ns)
  • Trade.received_timestamp (int, ns; crypto trades)

WebSocket

  • EquityTrade.participant_timestamp and EquityQuote.participant_timestamp (from pt)

Additive only: new fields go at the end of each model, and method signatures are unchanged. The options contract binary fields are in #1062.

Testing

  • make lint and make test pass.
  • Rerunning the spec audits (REST endpoints and all 38 WebSocket channels) shows no dropped fields left outside [bot] Add binary option fields to OptionsContract #1062.
  • A live A/B against master on 42 core workflows: every existing value is identical, and the only differences are the new fields. dv comes through live as day.fractional_volume.

@justinpolygon
justinpolygon merged commit 054ca4f into master Dec 4, 2026
7 checks passed
@justinpolygon
justinpolygon deleted the jw/add-missing-model-fields branch December 4, 2026 19:54
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.

2 participants