Use this page to read every price change of one market, oldest first.
It needs the history:read ability, which Business has.
1. Read the history of a market
/matches/{id}/odds/history returns every price change recorded for one market, oldest first. market is required and is a key from the market list. from and to narrow the window.
Step: Read the history of a market, from "Price history" 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/matches/0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e71/odds/history?market=goals.asian
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/price-history.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: Read the first page, from "Price history" 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/matches/0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e71/odds/history?market=goals.asian&limit=2
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/price-history.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: Read the next page, from "Price history" 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/matches/0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e71/odds/history?market=goals.asian&limit=2&cursor=YOUR_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/price-history.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.