Strokes Gained (Individual shot)
This live websocket endpoint houses an individual players strokes gained value per shot, per round throughout a given tournament. Currently the SG values per shot are updated at the climax of each hole. Strokes gained compares a player's score to the field average. For example, a player will gain two strokes on the field if he shoots 70 on a day when the field averages 72. A player who shoots 75 on that day loses three strokes to the field. Our Strokes gained model looks at Driving, Approach, Around the Green and Putting. Crucially, we can give a strokes gained value per shot 'live', which doesn't exist on the market today.
The authentication token provided will be required to make a connection to this websocket endpoint.
Once you have the API token, any further data that you send over the connection will be ignored.
N.B – This endpoint sends heartbeats in-between data packets to let you know that it is still connected.
This endpoint currently takes no request parameters
Endpoint URL
wss://dde-streams.data.imgarena.com/golf/tournaments/{tournamentId}/strokesgained/{teamID}
wss://dde-staging-streams.imggaming.com/golf/tournaments/{tournamentId}/strokesgained/{teamId}
Process for connecting to the web socket endpoints
Connect to SSL websocket address
Send JSON packet containing API token
Receive response indicating that connection is authorised (or a response indicating why the connection cannot be made)
Receive heartbeat packets every 10 seconds to verify the connection is live
Receive data packets
Once you have the API token, any further data that you send over the connection will be ignored. This endpoint sends heartbeats in-between data packets to let you know that it is still connected.
Request parameters
Request Parameters This endpoint currently takes no request parameters, we aim to add them, and once we have they will be detailed here. For this example we will be using the following endpoint URL for Sentry Tournament of Champions 2019: wss://dde-streams.imggaming.com/golf/tournaments/80/leaderboard
JSON sample
Last updated
Was this helpful?