Are closed markets auto-removed from subscription (Stream API)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Onix
    Junior Member
    • Aug 2019
    • 13

    #1

    Are closed markets auto-removed from subscription (Stream API)

    Hi,
    If i add to the stream subscription 200 markets (max possible), and after 15 minutes 10 markets are closed, will be possible to add to the subscription 10 new markets ?

    Thank you
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 680

    #2
    Hi Onix,


    When you first subscribe, a validation for the number of requested market on the subscription is performed. If that exceeds the number of allowed markets then an error code SUBSCRIPTION_LIMIT_EXCEEDED is sent on subscription.

    On re-subscribe this validation is run again and excludes any closed markets. To remove closed markets from subscription cache the Stream API runs an scheduled internal job to evict closed markets from the cache (every 5 mins) and a market is marketed for deletion after 1h of being closed. If a market is closed it needs to be deleted from the cache with above procedure to be excluded from the count.

    Hope this helps.

    Kind Regards

    Neil​

    Comment

    • nutritiousten
      Junior Member
      • Feb 2024
      • 1

      #3
      Originally posted by BetfairDeveloperProgram View Post
      Hi Onix,


      When you first subscribe, a validation for the number of requested market on the subscription is performed. If that exceeds the number of allowed markets then an error code SUBSCRIPTION_LIMIT_EXCEEDED is sent on subscription.

      On re-subscribe this validation is run again and excludes any closed markets. To remove closed markets from subscription cache the Stream API runs an scheduled internal job to evict closed markets from the cache (every 5 mins) and a market is marketed for deletion after 1h of being closed. If a market is closed it needs to be deleted from the cache with above procedure to be excluded from the count.

      Hope this helps.

      Kind Regards

      Neil​
      When I joined for the first time, I still didn't understand the rules. You explain in detail. First time I know these things. So helpful! geometry dash lite

      Comment

      Working...
      X