Market Subscription Rules

Updated on November 21, 2025

The system should subscribe or unsubscribe from a market based on the following conditions:

  1. Market Activation
    • Condition: When the market status changes to active (s = true).
    • Action: Subscribe to the market to begin tracking updates.
  2. Market Recall
    • Condition: When the market is recalled (rt = true).
    • Action: Resubscribe to the market to track new updates after it has been recalled.
  3. Event Lifecycle Updates
    • Condition: When the event game-over (go) status changes.
    • Action:
      • Unsubscribe from or stop tracking the market upon event completion (when go = true).
      • Ensure appropriate re-subscription handling for any subsequent valid event updates.
  4. Market Lifecycle Updates
    • Condition: When you receive "go": true.
    • Action: If the go flag in the response is set to true, it indicates that the market is closed or the event has finished, and you should unsubscribe from it.
  5. SDK Connection Status
    • Condition: When a connect: true status is received from the SDK callback.
    • Action: Re-establish subscriptions for all relevant active markets that may have been missed during the SDK downtime.
  6. Manual Unsubscribe
    • Condition: If the user no longer wishes to receive updates for the market.
    • Action: The market can be manually unsubscribed by the user to stop receiving updates.