Skip to content

feat(models): expose market combo status - #282

Open
kartojal wants to merge 2 commits into
mainfrom
feature/expose-market-combo-status
Open

feat(models): expose market combo status#282
kartojal wants to merge 2 commits into
mainfrom
feature/expose-market-combo-status

Conversation

@kartojal

@kartojal kartojal commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add ComboKnownStatus for the documented pending, enabled, and disabled values
  • expose the open ComboStatus response type as market.state.combo_status
  • pass newly introduced status strings through instead of rejecting the market response
  • export both status types through the public Python package
  • cover known and unknown response parsing in the Gamma market model tests

Testing

  • make check
  • 2310 non-integration tests passed

Note

Low Risk
Additive Gamma model field and type exports only; no trading, auth, or runtime behavior changes.

Overview
Gamma market responses now surface API comboStatus as market.state.combo_status, with public types ComboKnownStatus (pending, enabled, disabled) and ComboStatus (known values plus arbitrary strings for forward compatibility).

Flat payload normalization maps comboStatus into nested market state alongside existing flags. ComboKnownStatus and ComboStatus are re-exported from the top-level package. Unit tests assert parsing for a known status and that unrecognized values are accepted as plain strings instead of failing validation.

Reviewed by Cursor Bugbot for commit 7d7233e. Bugbot is set up for automated code reviews on this repo. Configure here.

@kartojal
kartojal marked this pull request as ready for review August 28, 2026 12:35
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