{"openapi":"3.1.0","info":{"title":"TradeHouse OnChain Analytics API","version":"1.0"},"paths":{"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/onchain/tiers":{"get":{"summary":"Tiers","description":"Public pricing -- no auth.","operationId":"tiers_api_v1_onchain_tiers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/onchain/whales":{"get":{"summary":"Whales","description":"Whale trade feed (large public on-chain fills). Free tier: top-10,\n24h-delayed. Paid: full feed, fresh.","operationId":"whales_api_v1_onchain_whales_get","parameters":[{"name":"venue","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"polymarket|limitless|overtime","title":"Venue"},"description":"polymarket|limitless|overtime"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onchain/smart-money":{"get":{"summary":"Smart Money","description":"Smart-money cohort -- pseudonymous public wallets ranked by volume.\nImpersonal cohort analytics; not a recommendation to follow any wallet.","operationId":"smart_money_api_v1_onchain_smart_money_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onchain/flows":{"get":{"summary":"Market Flows","description":"Net buy/sell flow per market -- impersonal market-state analytics.","operationId":"market_flows_api_v1_onchain_flows_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onchain/venues":{"get":{"summary":"Venues","description":"Multi-universe coverage (F2509): which on-chain venues we index + their\naggregate market/volume/liquidity. Public (no auth) -- it is the product's\ncoverage map. CEX/broker venues (kalshi/alpaca/tradier/ibkr) are served by\nth-api/th-datasets (isolated gold tape), not this on-chain feed.","operationId":"venues_api_v1_onchain_venues_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onchain/markets":{"get":{"summary":"Markets","description":"Cross-venue MARKET-DATA feed (F2509 multi-universe layer): per-market\nprice/volume/liquidity across the on-chain universes. Free tier: top-10\ndelayed; paid: full + fresh. Impersonal market state, not advice.","operationId":"markets_api_v1_onchain_markets_get","parameters":[{"name":"venue","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"polymarket|limitless|overtime","title":"Venue"},"description":"polymarket|limitless|overtime"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onchain/alerts":{"get":{"summary":"Whale Alerts","description":"Real-time whale alerts -- OnChain Pro only. Reports market STATE\n('large flow on market X'), never 'buy/sell X' (Pattern-A line).","operationId":"whale_alerts_api_v1_onchain_alerts_get","parameters":[{"name":"min_usd","in":"query","required":false,"schema":{"type":"number","description":"alert threshold","default":25000,"title":"Min Usd"},"description":"alert threshold"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onchain/snapshot":{"get":{"summary":"Full Snapshot","description":"Full historical snapshot blob -- OnChain Pro only.","operationId":"full_snapshot_api_v1_onchain_snapshot_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onchain/universes":{"get":{"summary":"Universes","description":"F2530: per-universe catalog + the caller's current entitlement. Lets the\nstorefront render the 'buy a single universe' grid and shows what the customer\nalready has access to.","operationId":"universes_api_v1_onchain_universes_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout":{"post":{"tags":["checkout"],"summary":"Api Checkout Post","description":"Create a LIVE Stripe Checkout Session. Body: {\"plan\": \"onchain|onchain_pro|universe\", \"universe\": \"...\"}","operationId":"api_checkout_post_api_checkout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"get":{"tags":["checkout"],"summary":"Api Checkout Get","operationId":"api_checkout_get_api_checkout_get","parameters":[{"name":"plan","in":"query","required":false,"schema":{"type":"string","default":"","title":"Plan"}},{"name":"universe","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Universe"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mcp":{"post":{"tags":["mcp"],"summary":"Mcp Rpc","operationId":"mcp_rpc_mcp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}