Skip to content

feat: Add serde-compatible order types#34

Merged
pbeets merged 1 commit intomainfrom
feat/serde-order-types
Jan 24, 2026
Merged

feat: Add serde-compatible order types#34
pbeets merged 1 commit intomainfrom
feat/serde-order-types

Conversation

@pbeets
Copy link
Owner

@pbeets pbeets commented Jan 24, 2026

Summary

  • Add OrderSide, OrderType, TimeInForce enums with serde support for external consumers
  • Include FromStr with flexible parsing (e.g., "buy", "BUY", "B", "STOP_LIMIT", "STOP-LIMIT")
  • Add From impls for conversion to protobuf request types
  • Add Expired status to OrderStatus and enable serde

Test plan

  • cargo test --all-features passes
  • cargo clippy --all-features clean

- Add OrderSide, OrderType, TimeInForce enums with serde support
- Include FromStr parsing with flexible input formats (e.g., "buy", "BUY", "B")
- Add From impls for conversion to protobuf request types
- Add Expired status to OrderStatus and enable serde for it
@pbeets pbeets merged commit 5c6321e into main Jan 24, 2026
5 checks passed
@pbeets pbeets deleted the feat/serde-order-types branch January 24, 2026 19:57
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