Use this page to recover what you missed while you were disconnected.
/changes lists what changed, without the data, so you refetch only the topics that moved.
1. Resume after a disconnect
Keep the id of the last message you handled. After you reconnect, ask /changes for everything sent after it. Each row says which topic of which match changed, without the data, so refetch those topics with /matches/{id}/{topic}.
Step: Resume after a disconnect, from "Catching up with changes" in the OddsYorkie API documentation.
Write code in this project that does this step and prints or uses the result.
Request: GET https://odds-feed.on-forge.com/api/v2/changes?cursor=0
Read the key from the ODDSYORKIE_KEY environment variable and send it as "Authorization: Bearer <key>". Never write the key into code.
Read https://odds-feed.on-forge.com/docs/catching-up.md for this step first. Then read https://odds-feed.on-forge.com/docs/llms-full.txt for the rest of the API and https://odds-feed.on-forge.com/docs/AGENTS.md for the rules to follow.
meta.cursor is where to resume next time. When meta.gap is true your cursor is older than the changes we keep, so refetch every topic you follow. Use cursor=0 to start from the oldest change we keep.
2. Filter by topic and page on
topic keeps some topics only, as a comma separated list of odds, stats, tracker, players, betbuilder, table and match. limit is 1 to 2000 and defaults to 500. While meta.has_more is true, send meta.next_cursor as cursor.
Step: Filter by topic and page on, from "Catching up with changes" in the OddsYorkie API documentation.
Write code in this project that does this step and prints or uses the result.
Request: GET https://odds-feed.on-forge.com/api/v2/changes?cursor=0&topic=odds&limit=1
Read the key from the ODDSYORKIE_KEY environment variable and send it as "Authorization: Bearer <key>". Never write the key into code.
Read https://odds-feed.on-forge.com/docs/catching-up.md for this step first. Then read https://odds-feed.on-forge.com/docs/llms-full.txt for the rest of the API and https://odds-feed.on-forge.com/docs/AGENTS.md for the rules to follow.
Step: Start from now, from "Catching up with changes" in the OddsYorkie API documentation.
Write code in this project that does this step and prints or uses the result.
Request: GET https://odds-feed.on-forge.com/api/v2/changes?cursor=
Read the key from the ODDSYORKIE_KEY environment variable and send it as "Authorization: Bearer <key>". Never write the key into code.
Read https://odds-feed.on-forge.com/docs/catching-up.md for this step first. Then read https://odds-feed.on-forge.com/docs/llms-full.txt for the rest of the API and https://odds-feed.on-forge.com/docs/AGENTS.md for the rules to follow.