Skip to content

Conversation

@jaybny
Copy link
Contributor

@jaybny jaybny commented Jan 11, 2026

New Version of API - Data to handle multiple products trading at once,

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces API Beta version 2 to support multi-product trading capabilities. The changes extend the protocol buffer definitions to handle multiple products simultaneously, introduce new margin calculation structures, and deprecate several single-product-focused fields.

Changes:

  • Added new messages for multi-product support (ContractScheduleProducts, AccountTickerPosition, ContractMargin, AccountMarginState)
  • Added transaction rejection handling (RejectedTransaction message and RejectCode enum)
  • Introduced ticker fields to MarketData and OrderData messages for product identification
  • Deprecated single-product fields in AccountState and introduced detailed margin tracking per contract

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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