Feed365 HF progress pack 2026-07-20: README PROGRESS API-INVENTORY METHODOLOGIES REQUIRED-ACTIONS
65f993f verified | # API inventory — `apps/api` | |
| **Source of truth mounts:** [`apps/api/src/app.ts`](../../apps/api/src/app.ts) | |
| **Live base:** https://korewhitelabelmall.xyz | |
| **Spot-check date:** 2026-07-20 UTC | |
| Auth legend: `agg` = `X-Aggregator-Key` / `X-Api-Key`; `tenant` = `tenantMiddleware` + session/cookie; `public` = no aggregator key; `ops` = elevated key for heal/ingest. | |
| HF relevance: `settle` = Feed365 HF outcome; `vision` = offline lobby CV; `none` = not HF-wired. | |
| --- | |
| ## Root | |
| | Prefix | Route file | Auth | Purpose | Live | HF | Risks | | |
| |--------|------------|------|---------|------|-----|-------| | |
| | `GET /` | `app.ts` | public | Service banner + links | 200 (assumed) | none | — | | |
| | `GET /health` | `app.ts` | public | Process liveness | **200** | none | Not Feed365 freshness | | |
| | `GET /ready` | `app.ts` | public | Platform feeds/streams ready | **503** | none | Stream readiness often red while /365 live | | |
| | `GET /openapi.json` | `openapi-handler` | public | OpenAPI | **200** | none | May lag route reality | | |
| --- | |
| ## Feed365 — `/365` + `/api/365` | |
| | Prefix | Route file | Auth | Purpose | Live | HF | Risks | | |
| |--------|------------|------|---------|------|-----|-------| | |
| | `/365`, `/api/365` | `races365.ts` | agg (most) | B2B sportsbook feed | health **live/vps** | settle | CF upstream needs proxy; Mac ingest denied | | |
| | `GET …/docs` | same | public HTML | Partner docs | **200** | settle docs | Literal “upstream” word may be thin | | |
| | `GET …/health` | same | agg | Ingest freshness + `upstreamSource` | **200** live | none | — | | |
| | `GET …/socket/odds` | same | agg | Native Socket.IO bundle | **200** | none | — | | |
| | `GET …/:sport/inplay` | same | agg | In-play lists | soccer **39**, cricket **10** | none | Wrong path `/sports/.../inplay` → 404 | | |
| | `GET …/:sport/:id/odds` | same | agg | Match odds compose | spot OK historically | none | Empty for some cricket rows | | |
| | `…/fancy`, `…/bookmaker`, `…/premium` | same | agg | Fancy / BM / Genius | wired | none | Fancy ids need discovery | | |
| | `POST …/odds/unified` | same | agg | Batch odds | documented | none | — | | |
| | `…/scorecard`, `…/livetv` | same | agg | Score + TV | honest TV miss | none | Panel streaming=0 common | | |
| | `POST …/ingest` | same | ops + `X-Feed365-Upstream: vps` | Upstream push | 403 without header | none | Spoofable with ops key | | |
| | `…/settlement/*` | same | agg | Trace / refresh / result / open | smoke **won** via HF | **settle** | Fancy lines; sport mistag | | |
| | `GET …/wallet` | same | agg | Partner wallet | **200** | none | — | | |
| | `POST …/heal`, `…/repair` | same | ops-ish | Soft heal | exists | none | — | | |
| | leaks / raw / session | same | agg | Debug leaks | exists | none | Do not expose to public partners | | |
| Canonical partner docs: https://korewhitelabelmall.xyz/365/docs · [`docs/aggregators/365-DOWNSTREAM-API.md`](../aggregators/365-DOWNSTREAM-API.md) · [`docs/SETTLEMENT-TRACE-API.md`](../SETTLEMENT-TRACE-API.md) | |
| --- | |
| ## Feeds / streams / aggregators — `/api/feeds` | |
| | Prefix | Route file | Auth | Purpose | Live | HF | Risks | | |
| |--------|------------|------|---------|------|-----|-------| | |
| | `/api/feeds/*` | `feeds.ts` + `aggregator-casino.ts` | mixed | Catalog, streams, Huidu, Hub88/ST8/568/QTech | `/ready` **503** | vision (offline) | Stream/ready red while casino catalogs 200 | | |
| | `/api/feeds/huidu/*` | `feeds.ts` | mixed | Huidu catalog / play-link / callbacks | catalog **200** | none | License/vendor proof | | |
| | `/api/feeds/aggregators/*` | feeds + casino | agg contracts | Casino wallet bridges | wired-sources **200** | none | Provider-specific | | |
| | `/api/feeds/streams/*` | `playback.ts` | mixed | Stream mint / relay / heal | via ready 503 | none | Broker mint needs tenant | | |
| --- | |
| ## Diamond sportsbook — `/diamond` + `/api/diamond` | |
| | Prefix | Route file | Auth | Purpose | Live | HF | Risks | | |
| |--------|------------|------|---------|------|-----|-------| | |
| | `/diamond`, `/api/diamond` | `diamond.ts` | mixed | Diamond API surface | root **200** | none | Separate from Feed365 | | |
| | `/diamond/test` | `diamond-test.ts` | ops | Test harness | not probed | none | — | | |
| Docs: [`docs/DIAMOND-API.md`](../DIAMOND-API.md), [`docs/DIAMOND-DOWNSTREAMS-API.md`](../DIAMOND-DOWNSTREAMS-API.md) | |
| --- | |
| ## Game / turbo | |
| | Prefix | Route file | Auth | Purpose | Live | HF | Risks | | |
| |--------|------------|------|---------|------|-----|-------| | |
| | `/game`, `/api/game` | `game-api.ts` | mixed | Game API | **301** on `/game` | none | Redirect; use concrete subpaths | | |
| | `/api/turbo246` | `turbo246.ts` | mixed | Turbo246 | root **404** | none | No index route | | |
| --- | |
| ## Provider BP — `/api/v1/*` | |
| | Prefix | Route file | Auth | Purpose | Live | HF | Risks | | |
| |--------|------------|------|---------|------|-----|-------| | |
| | `/api/v1/ezugi` | `ezugi-bp.ts` | public CORS * on play | Ezugi BP | contract **200** | none | — | | |
| | `/api/v1/lucky-sports` | `lucky-sports-bp.ts` | mixed | Lucky Sports | contract **200** | none | — | | |
| | `/api/v1/cq9` | `cq9-bp.ts` | mixed | CQ9 | contract **200** | none | — | | |
| | `/api/v1/vivo` | `vivo-games-bp.ts` | mixed | Vivo | contract **200** | none | — | | |
| | `/api/v1/wicketspro` | `wicketspro-bp.ts` | mixed | WicketsPro | contract **200** | none | — | | |
| | `/api/v1/providers` | `providers-v1.ts` | mixed | Provider registry | **200** | none | — | | |
| | factory | `provider-bp-factory.ts` | — | Shared play/balance | — | none | — | | |
| --- | |
| ## Gap providers — `/api/gap-providers` | |
| | Prefix | Route file | Auth | Purpose | Live | HF | Risks | | |
| |--------|------------|------|---------|------|-----|-------| | |
| | `/api/gap-providers` | `gap-providers.ts` | mixed | QTech/Vimplay/XPG/Supernowa gap | **200** | vision-related docs | Advanced methodologies JSON | | |
| --- | |
| ## Platform tenant APIs — `/api/{auth,vault,wallets,…}` | |
| | Prefix | Route file | Auth | Purpose | Live | HF | Risks | | |
| |--------|------------|------|---------|------|-----|-------| | |
| | `/api/auth` | `auth.ts` | tenant | Login/session | not deep-probed | none | Needs tenant slug | | |
| | `/api/vault` | `vault.ts` | tenant | Secrets vault | — | none | — | | |
| | `/api/wallets` | `wallets.ts` | tenant | Platform wallets | — | none | Distinct from `/365/wallet` | | |
| | `/api/downline` | `downline.ts` | tenant | Hierarchy | — | none | — | | |
| | `/api/bets` | `bets.ts` | tenant | Platform bets | — | none | — | | |
| | `/api/ticks` | `ticks.ts` | tenant | Odds ticks | — | none | — | | |
| | `/api/exposure` | `exposure.ts` | tenant | Exposure | — | none | — | | |
| | `/api/settlement` | `settlement.ts` | tenant | Platform settlement | — | none | Not Feed365 store | | |
| | `/api/settlement-trace` | `settlement-trace.ts` | agg | Alias of Feed365 settlement | docs **200** | **settle** | Same store as `/365/settlement` | | |
| | `/api/callbacks` | `callbacks.ts` | tenant | Provider callbacks | — | none | — | | |
| | `/api/agent` | `agent.ts` | tenant | Agent APIs | — | none | — | | |
| --- | |
| ## Plugins / UAE | |
| | Prefix | Route file | Auth | Purpose | Live | HF | Risks | | |
| |--------|------------|------|---------|------|-----|-------| | |
| | `/api/plugins` | `plugins.ts` | mixed | Plugin index | **200** | none (eToro plugin separate) | — | | |
| | `/api/uae` | `uae.ts` | mixed | UAE surface | root **404** | none | Empty/index missing | | |
| --- | |
| ## Appendix — `services/*` (not `apps/api`) | |
| | Path | Note | | |
| |------|------| | |
| | `services/aspnet-568win` | Separate ASP.NET wallet bridge | | |
| | `services/aspnet-panel-broker` | Panel broker | | |
| | `services/wallet-gateway` | Gateway service | | |
| Not fully inventoried here; treat as out-of-band processes. | |
| --- | |
| ## Spot-check summary | |
| | Area | Verdict | | |
| |------|---------| | |
| | Feed365 live data (VPS) | **OK** | | |
| | Feed365 HF settle | **OK** (match-odds + boards) | | |
| | Platform `/ready` + feeds ready | **Degraded (503)** | | |
| | Provider BP contracts | **OK** | | |
| | UAE / turbo246 roots | **Missing index** | | |