4casters Streaming API 

This is the first version of the https://4casters.io/ streaming API, powered by https://socket.io/.

Find the 4casters rest API here - https://documenter.getpostman.com/view/6710109/U16gNmHG

To build a client application for this API, we recommend using one of the official Socket.io client libraries.

https://github.com/socketio/socket.io-client - javascript

https://github.com/socketio/socket.io-client-java - java

https://github.com/socketio/socket.io-client-cpp - c++

Servers

Operations

  • SUB /

    Accepts the following message:

  • SUB /priceUpdates

    Accepts one of the following messages:

    • #0Order Update

      This is emitted when a price has changed in a single market of a game (example there is a new order on Team A +3.5). Note - V2 will simplify order updates to only include information about the relevant order.

      object

      Examples

    • #1Game Update

      Game update is triggered when a game is ended, start time is updated, or when all orders from game a game are canceled by an admin.

      object

      Examples

  • SUB /v2/user/{username}

    username
    required
    string
    uid: username

    your 4casters username, this has to be your username, not email

    Accepts the following message:

    Position Update

    A message that is emitted every time one of your orders gets cancelled, matched, or placed.

    object

    Examples

Messages

  • #1Order Update

    This is emitted when a price has changed in a single market of a game (example there is a new order on Team A +3.5). Note - V2 will simplify order updates to only include information about the relevant order.

    object
  • #2Game Update

    Game update is triggered when a game is ended, start time is updated, or when all orders from game a game are canceled by an admin.

    object
  • #3Position Update

    A message that is emitted every time one of your orders gets cancelled, matched, or placed.

    object