Stream API Subscription limit ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #1

    Stream API Subscription limit ?

    Hi

    I have just run into a SUBSCRIPTION_LIMIT_EXCEEDED error whilst using the stream API.

    The Stream API manual doesn't help at all on this, with a vague
    SUBSCRIPTION_LIMIT_EXCEEDED = Customer tried to subscribe to more markets than allowed to
    Gee thanks, I figured that out myself, tell me what the limit figure is then ?

    It would appear that the actual figure is 200 markets, then the error triggers. I am not sure if they have changed this in the latest update ? Seemed odd I hadn't hit this error before.

    That seemed kind of low to me, for example in the UK you can get 150 greyhound races in a day, and 50 horse race markets. Subscribe to both of those lists and bang you error out !

    That raises the question, does the Server automatically decrement your subscription count when a market closes ? If it doesn't do that then I will need a big rewrite of my code trying to figure out when I can safely unsubscribe from a market

    Summarising my questions for BDP Tech support

    1) Can you confirm if the subscription limit is 200 ?
    2) Does that count get decremented on the Server when a market closes ?
    3) Can you add some more notes in the manual(and here) explaining this limit and giving guidance on when we need to unsubscribe to prevent this error happening.

    Thanks, in anticipation of a reply.

    Regards Geoff
    Last edited by geoffw123; 02-06-2017, 11:42 AM.
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 680

    #2
    Hi Geoff,

    1) Can you confirm if the subscription limit is 200 ?
    Yes, the default limit is 200 markets.

    2) Does that count get decremented on the Server when a market closes ?
    The count is evaluated at the time of subscription so you shouldn't experience any issues beyond that point providing you subscription contains no more than 200 markets.

    3) Can you add some more notes in the manual(and here) explaining this limit and giving guidance on when we need to unsubscribe to prevent this error happening
    Yes, we'll add something to the documentation regarding this.

    Thanks

    Neil

    Comment

    • Elaine
      Junior Member
      • Oct 2021
      • 1

      #3
      Hello,

      Some questions about SUBSCRIPTION_LIMIT_EXCEEDED in the STREAM EXCHANGE API:

      - I'm working on an automatic betting system, and the 200 market limit will be an issue on many game days. Our system will work with football markets. Is there any way to drastically increase this limit for this project? for example for 2000 ?

      As I rely on price monitoring as a filter to place a bet, it's important to monitor a lot of games and markets!

      What is the best practice for our team to develop?

      Thanks

      Comment

      • LiamP
        Junior Member
        • Oct 2015
        • 284

        #4
        Originally posted by Elaine View Post
        Hello,

        Some questions about SUBSCRIPTION_LIMIT_EXCEEDED in the STREAM EXCHANGE API:

        - I'm working on an automatic betting system, and the 200 market limit will be an issue on many game days. Our system will work with football markets. Is there any way to drastically increase this limit for this project? for example for 2000 ?

        As I rely on price monitoring as a filter to place a bet, it's important to monitor a lot of games and markets!

        What is the best practice for our team to develop?

        Thanks
        Contact bdp@betfair.com

        Comment

        Working...
        X