TIPSME FOOTBALL DASHBOARD Start with Google Sheets for the simplest live setup. All shipped values use illustrative match ID 98224, copied from the developer playground. They are not actual results or current odds. 繁體中文快速開始 開一份空白 Google 試算表 → 擴充功能 > Apps Script → 貼上整份 .gs, 執行 setupTipsmeDashboard,即可先看示例,毋須 API 金鑰。 使用真實資料:Tipsme > Save API key 儲存自己的金鑰,再選 Discover Betfair matches,在 Dashboard B4 選賽事,按 Refresh dashboard。 金鑰經密碼欄儲存在各自的使用者設定,不會寫入儲存格。必發摘要需要 Plus / Pro;未提供的數值維持空白。馬會只提供賽前賠率,每分鐘最多更新一次。 Excel 可先直接開啟 .xlsx 查看示例;即時更新的選用 Power Query 步驟見下。 GOOGLE SHEETS 1. Create a blank Google Sheet. Open Extensions > Apps Script. 2. Paste the entire tipsme-football-dashboard.gs file, save, then run setupTipsmeDashboard. Authorize access to this spreadsheet and external API requests. The installer opens a working demo without making an API request. 3. In the Sheet, choose Tipsme > Save API key. The masked dialog stores your key in your own Apps Script User Properties, not worksheet cells or shared Script Properties. Each editor must save their own key. 4. Choose Tipsme > Discover Betfair matches. The Matches tab lists up to 100 current fixtures with usable Betfair coverage. The first public match ID is selected in Dashboard B4; choose another from the list if preferred. 5. Choose Tipsme > Refresh dashboard. To use a match without Betfair coverage, use Discover fixtures or enter its public match ID in Dashboard B4. Refresh is manual. Opening the file or saving a key does not fetch live data. Successful responses are cached per user/key/path: HKJC up to 60 seconds, Betfair summary up to 45 minutes, and other responses up to 60 seconds. Shorter HTTP Cache-Control limits are honored; no-store/no-cache responses are not cached. Refresh HKJC at most once a minute. Repeated refreshes can show the same snapshot. Snapshots saves observed prices, volume, share and available market/hot-cold/ profit-loss indexes, deduplicated by source identity (latest 2,000 rows). Source timestamp and first-observed UTC are separate; a missing source timestamp remains blank. Set up demo dashboard again preserves existing live Snapshots. HKJC odds are PRE-MATCH only. H2H shows supplied meetings and recent results. Betfair summaries require Plus / Pro. A Free-plan refusal or absent coverage does not prevent odds/H2H from loading. HTTP 403 can also indicate a key IP allowlist that excludes Google's Apps Script egress addresses; review that key's allowlist in the developer portal. Request errors never echo keys or raw bodies. Volume Trend contains only points returned by the source. Its display labels do not imply UTC or a known timezone. Independent Betfair views stay separate. Google Sheets draws a volume line chart on Dashboard and Volume Trend when at least two detailedView source points are present. Missing points remain gaps; no chart is reconstructed from refresh times. The Betfair tab exposes market, hot/cold and profit/loss indexes when the source supplies them. EXCEL: OPEN THE FINISHED DEMO Open tipsme-football-dashboard.xlsx. Dashboard, Matches and Volume Trend work with the included sample Data table. There are no macros, API keys, external connections or automatic requests. Missing fields are blank, never invented zeroes. Volume Trend includes a native Excel line chart of detailedView source points. It uses the same 20-point table after live import; missing values are chart gaps. EXCEL DESKTOP: OPTIONAL LIVE POWER QUERY 1. Download the .pq file. In Excel open Data > Get Data > From Other Sources > Blank Query. In Power Query choose Manage Parameters > New Parameter. Name: TipsmeApiKey; Type: Text; Current Value: your own API key. 2. Open Advanced Editor in the blank query and paste the entire .pq file. The API uses an explicit Bearer header; choose Anonymous authentication for https://api.tipsme.hk if Excel asks about this data source. 3. Delete the demo Data worksheet. Close & Load the query to a new worksheet. Select the loaded table, then Table Design > Table Name: TipsmeData. The dashboard formulas reconnect to this named table. 4. Settings B2 is deliberately blank. The first refresh lists current Betfair match IDs in the loaded table's MatchId column. Copy one to Settings B2, then use Data > Refresh All. All datasets use that same public match ID. Do not submit the illustrative 98224 automatically. 5. Excel stores parameter values in the local workbook. Keep that file private; remove the TipsmeApiKey parameter value before sharing it. The shipped workbook has no key. Power Query is intended for Excel desktop versions with Get Data. The Power Query import is optional and supplied as editable source, not an embedded connection. Google Sheets is the fully automated installer. No hosted workbook or live payment/account action is created by these downloads. SOURCE CONTRACTS GET /v1/football/odds/betfairmatchids (discovery, normal request allowance) GET /v1/football/matches/{matchId}/odds/hkjc GET /v1/football/matches/{matchId}/h2h GET /v1/football/matches/{matchId}/odds/betfair (Plus / Pro summary) https://api.tipsme.hk uses Authorization: Bearer YOUR_API_KEY. Live responses may be partial; each dataset's status is shown separately. This starter is for manual research, not a real-time trading feed. REBUILD LOCALLY node scripts/build-developer-dashboard-samples.mjs python3 scripts/build-developer-dashboard-excel.py node --test tests/developerSpreadsheet.test.mjs