Announcement

Collapse
No announcement yet.

Stream API, unsubscribe from all markets ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stream API, unsubscribe from all markets ?

    Hello

    Anyone using the stream API know to to properly unsubscribe from all markets previously subscribed to ? Unless I missed it the docs dont seem to mention this at all.

    I have tried using the standard example code and just passing in an empty list. This however doesnt work and gives me an error message saying it has tried to subscribe to 23,000 markets (i.e all BF markets) and obviously doesnt like that.

    Thanks for any help.

    Geoff
    Last edited by geoffw123; 17-04-2021, 12:12 PM.

  • #2
    What about if you subscribe to a non-existent market, such as:

    PHP Code:
    "marketFilter":{"marketIds":["9.999999999"]} 
    Does that, in effect, cancel your prior subscription?
    Last edited by TooLateToTheParty; 04-05-2021, 12:00 PM.

    Comment

    Working...
    X