{"openapi":"3.1.0","info":{"title":"TCG Sealed EV Simulator","version":"0.1.0"},"paths":{"/api/games":{"get":{"summary":"List Games","operationId":"list_games_api_games_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/GameOut"},"type":"array","title":"Response List Games Api Games Get"}}}}}}},"/api/games/{game_id}/sets":{"get":{"summary":"List Sets","operationId":"list_sets_api_games__game_id__sets_get","parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"integer","title":"Game Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SetOut"},"title":"Response List Sets Api Games  Game Id  Sets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sets/{set_id}/products":{"get":{"summary":"List Products","operationId":"list_products_api_sets__set_id__products_get","parameters":[{"name":"set_id","in":"path","required":true,"schema":{"type":"integer","title":"Set Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductOut"},"title":"Response List Products Api Sets  Set Id  Products Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/products/{product_id}/ev":{"get":{"summary":"Product Ev","operationId":"product_ev_api_products__product_id__ev_get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}},{"name":"n","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":100,"default":10000,"title":"N"}},{"name":"min_value","in":"query","required":false,"schema":{"type":"number","minimum":0.0,"default":0.0,"title":"Min Value"}},{"name":"basis","in":"query","required":false,"schema":{"type":"string","pattern":"^(market|low)$","default":"market","title":"Basis"}},{"name":"marketplace","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketplace"}},{"name":"seed","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Seed"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EVOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/products/{product_id}/breakdown":{"get":{"summary":"Product Breakdown","operationId":"product_breakdown_api_products__product_id__breakdown_get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}},{"name":"floor","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Floor"}},{"name":"marketplace","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketplace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BreakdownOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ev-results":{"get":{"summary":"List Ev Results","operationId":"list_ev_results_api_ev_results_get","parameters":[{"name":"game_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Game Id"}},{"name":"set_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Set Id"}},{"name":"floor","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Floor"}},{"name":"marketplace","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketplace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EvSummaryOut"},"title":"Response List Ev Results Api Ev Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/products/{product_id}/result":{"get":{"summary":"Product Result","operationId":"product_result_api_products__product_id__result_get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}},{"name":"floor","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Floor"}},{"name":"marketplace","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketplace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvResultOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/products/{product_id}/history":{"get":{"summary":"Product History","operationId":"product_history_api_products__product_id__history_get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}},{"name":"floor","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Floor"}},{"name":"marketplace","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketplace"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvHistoryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sparklines":{"get":{"summary":"Sparklines","operationId":"sparklines_api_sparklines_get","parameters":[{"name":"set_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"integer"},"minItems":1,"maxItems":150,"title":"Set Ids"}},{"name":"floor","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Floor"}},{"name":"marketplace","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketplace"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"metric","in":"query","required":false,"schema":{"type":"string","pattern":"^(ratio|ev)$","default":"ratio","title":"Metric"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SparklinesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/register":{"post":{"summary":"Register","operationId":"register_api_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login":{"post":{"summary":"Login","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/logout":{"post":{"summary":"Logout","operationId":"logout_api_auth_logout_post","responses":{"204":{"description":"Successful Response"}}}},"/api/auth/me":{"get":{"summary":"Me","operationId":"me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}}}}},"/api/auth/change-password":{"post":{"summary":"Change Password","operationId":"change_password_api_auth_change_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordIn"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/favorites":{"get":{"summary":"List Favorites","operationId":"list_favorites_api_favorites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"integer"},"type":"array","title":"Response List Favorites Api Favorites Get"}}}}}}},"/api/favorites/{product_id}":{"put":{"summary":"Add Favorite","operationId":"add_favorite_api_favorites__product_id__put","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Remove Favorite","operationId":"remove_favorite_api_favorites__product_id__delete","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/favorites/merge":{"post":{"summary":"Merge Favorites","operationId":"merge_favorites_api_favorites_merge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoritesMergeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"integer"},"type":"array","title":"Response Merge Favorites Api Favorites Merge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/product-costs":{"get":{"summary":"List Costs","operationId":"list_costs_api_product_costs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"number"},"type":"object","title":"Response List Costs Api Product Costs Get"}}}}}}},"/api/product-costs/{product_id}":{"put":{"summary":"Set Cost","operationId":"set_cost_api_product_costs__product_id__put","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetCostIn"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Clear Cost","operationId":"clear_cost_api_product_costs__product_id__delete","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/preferences":{"put":{"summary":"Set Preferences","operationId":"set_preferences_api_preferences_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPreferencesIn"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/ping":{"get":{"summary":"Admin Ping","operationId":"admin_ping_api_admin_ping_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/catalog":{"get":{"summary":"Get Catalog","operationId":"get_catalog_api_admin_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogOut"}}}}}}},"/api/admin/jobs":{"post":{"summary":"Create Job","operationId":"create_job_api_admin_jobs_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnqueueJobIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Jobs","operationId":"list_jobs_api_admin_jobs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JobOut"},"title":"Response List Jobs Api Admin Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/refresh-all":{"post":{"summary":"Refresh All","description":"Force a full refresh now (bypasses the once-per-day scheduler guard):\nrefresh_prices + compute_evs for every ingested set, and for sets whose card\npool is still moving upstream (unreleased, undated, or released within the\nlast RECENT_INGEST_WINDOW_DAYS days) also a catalog re-pull, which chains a\ncollation rebuild and a recompute. Skips sets that already have an active job\nof that kind.","operationId":"refresh_all_api_admin_refresh_all_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/backfill-all":{"post":{"summary":"Backfill All","description":"Enqueue backfill_floors for every ingested set, one job per set, rather\nthan a single no-set-code sweep. The worker (app/worker.py) processes jobs\nstrictly serially, so one sweep-sized job (hours, across every set and all\nhistory) would block everything queued behind it for its whole duration —\nand a job that long-running rides right up against ORPHAN_AFTER, so a\nrolling deploy mid-sweep could have the incoming container reclaim the\noutgoing one's job as orphaned and restart it alongside the original,\ndoubling the work. Fanning out per set keeps each job short. Skips a set\nthat already has an active backfill job.","operationId":"backfill_all_api_admin_backfill_all_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/reingest-all":{"post":{"summary":"Reingest All","description":"Enqueue ingest_set for every ingested set, one job per set, so an older\nset can pick up an MTGJSON sheet-weight revision the nightly refresh (which\nonly re-pulls sets inside RECENT_INGEST_WINDOW_DAYS) would never reach.\nEach ingest_set chains into ingest_collation and compute_evs (app/worker.py).\nSkips a set that already has an active ingest_set job.","operationId":"reingest_all_api_admin_reingest_all_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/refresh-suppression":{"post":{"summary":"Refresh Suppression","description":"Recompute EV suppression flags (app/ingest/suppression.py) directly\nagainst the DB, with no MTGJSON fetch or re-ingest — a synchronous action\nlike `remove_set` below, not a queued job, because it's genuinely fast.\n\nTakes `set_code` as an optional query param (not a job's positional\nSET_CODE) because, unlike every other action on this router, this one is\nNOT about moving a set through the ingest pipeline — nothing here enqueues\na Job row. Omit it to sweep every set. This is the standalone application\npath, alongside the one inside ingest_collation: a perpetual set (SLD)\ncan sit outside RECENT_INGEST_WINDOW_DAYS and so never get nightly\nre-ingested, which is exactly the trap the README's \"Sealed-contents\noverrides don't take effect by themselves\" section documents for\napp/ingest/overrides.py.","operationId":"refresh_suppression_api_admin_refresh_suppression_post","parameters":[{"name":"set_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Set Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshSuppressionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/jobs/{job_id}":{"get":{"summary":"Get Job","operationId":"get_job_api_admin_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/sets/{set_code}":{"delete":{"summary":"Remove Set","operationId":"remove_set_api_admin_sets__set_code__delete","parameters":[{"name":"set_code","in":"path","required":true,"schema":{"type":"string","title":"Set Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Health Get"}}}}}}}},"components":{"schemas":{"BreakdownOut":{"properties":{"product_id":{"type":"integer","title":"Product Id"},"product_name":{"type":"string","title":"Product Name"},"floor":{"type":"number","title":"Floor"},"snapshot_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Snapshot Date"},"analytic_mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Analytic Mean"},"contributions":{"items":{"$ref":"#/components/schemas/ContributionOut"},"type":"array","title":"Contributions"},"ev_suppressed":{"type":"boolean","title":"Ev Suppressed","default":false},"ev_suppressed_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ev Suppressed Reason"}},"type":"object","required":["product_id","product_name","floor","snapshot_date","analytic_mean","contributions"],"title":"BreakdownOut"},"CatalogOut":{"properties":{"available":{"items":{"$ref":"#/components/schemas/CatalogSetOut"},"type":"array","title":"Available"},"ingested":{"items":{"$ref":"#/components/schemas/CatalogSetOut"},"type":"array","title":"Ingested"},"can_process":{"items":{"$ref":"#/components/schemas/CatalogSetOut"},"type":"array","title":"Can Process"},"processing":{"items":{"$ref":"#/components/schemas/CatalogSetOut"},"type":"array","title":"Processing"}},"type":"object","required":["available","ingested","can_process","processing"],"title":"CatalogOut"},"CatalogSetOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"release_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Release Date"},"product_count":{"type":"integer","title":"Product Count","default":0},"products_with_ev":{"type":"integer","title":"Products With Ev","default":0}},"type":"object","required":["id","name","code","release_date"],"title":"CatalogSetOut"},"ChangePasswordIn":{"properties":{"old_password":{"type":"string","title":"Old Password"},"new_password":{"type":"string","minLength":8,"title":"New Password"}},"type":"object","required":["old_password","new_password"],"title":"ChangePasswordIn"},"ContributionOut":{"properties":{"name":{"type":"string","title":"Name"},"rarity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rarity"},"variant":{"type":"string","title":"Variant"},"price":{"type":"number","title":"Price"},"expected_count":{"type":"number","title":"Expected Count"},"expected_value":{"type":"number","title":"Expected Value"}},"type":"object","required":["name","rarity","variant","price","expected_count","expected_value"],"title":"ContributionOut"},"DeleteSetOut":{"properties":{"set_code":{"type":"string","title":"Set Code"},"deleted":{"additionalProperties":{"type":"integer"},"type":"object","title":"Deleted"}},"type":"object","required":["set_code","deleted"],"title":"DeleteSetOut"},"EVOut":{"properties":{"product_id":{"type":"integer","title":"Product Id"},"product_name":{"type":"string","title":"Product Name"},"product_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Product Price"},"market_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Market Price"},"price_source":{"type":"string","title":"Price Source","default":"market"},"snapshot_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Snapshot Date"},"basis":{"type":"string","title":"Basis"},"min_value":{"type":"number","title":"Min Value"},"seed":{"type":"integer","title":"Seed"},"analytic_mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Analytic Mean"},"analytic_stddev":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Analytic Stddev"},"unpriced_cards":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unpriced Cards"},"stats":{"anyOf":[{"$ref":"#/components/schemas/StatsOut"},{"type":"null"}]},"marketplace":{"type":"string","title":"Marketplace"},"fallback_cards":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fallback Cards"},"fallback_ev_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fallback Ev Share"},"ev_suppressed":{"type":"boolean","title":"Ev Suppressed","default":false},"ev_suppressed_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ev Suppressed Reason"}},"type":"object","required":["product_id","product_name","product_price","snapshot_date","basis","min_value","seed","analytic_mean","analytic_stddev","unpriced_cards","stats","marketplace","fallback_cards","fallback_ev_share"],"title":"EVOut"},"EnqueueJobIn":{"properties":{"kind":{"type":"string","title":"Kind"},"set_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Set Code"}},"type":"object","required":["kind"],"title":"EnqueueJobIn"},"EvHistoryOut":{"properties":{"product_id":{"type":"integer","title":"Product Id"},"product_name":{"type":"string","title":"Product Name"},"floor":{"type":"number","title":"Floor"},"marketplace":{"type":"string","title":"Marketplace","default":"tcgplayer"},"range":{"type":"string","title":"Range"},"price_source":{"type":"string","title":"Price Source","default":"market"},"points":{"items":{"$ref":"#/components/schemas/HistoryPoint"},"type":"array","title":"Points"}},"type":"object","required":["product_id","product_name","floor","range","points"],"title":"EvHistoryOut"},"EvResultOut":{"properties":{"product_id":{"type":"integer","title":"Product Id"},"product_name":{"type":"string","title":"Product Name"},"floor":{"type":"number","title":"Floor"},"snapshot_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Snapshot Date"},"coverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coverage"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"market_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Market Price"},"price_source":{"type":"string","title":"Price Source","default":"market"},"marketplace":{"type":"string","title":"Marketplace","default":"tcgplayer"},"fallback_cards":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fallback Cards","default":0},"fallback_ev_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fallback Ev Share","default":0.0},"ev_suppressed":{"type":"boolean","title":"Ev Suppressed","default":false},"ev_suppressed_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ev Suppressed Reason"}},"type":"object","required":["product_id","product_name","floor","snapshot_date","coverage","payload"],"title":"EvResultOut"},"EvSummaryOut":{"properties":{"product_id":{"type":"integer","title":"Product Id"},"product_name":{"type":"string","title":"Product Name"},"set_id":{"type":"integer","title":"Set Id"},"set_name":{"type":"string","title":"Set Name"},"set_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Set Code"},"game_id":{"type":"integer","title":"Game Id"},"game_name":{"type":"string","title":"Game Name"},"snapshot_date":{"type":"string","format":"date","title":"Snapshot Date"},"product_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Product Price"},"market_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Market Price"},"price_source":{"type":"string","title":"Price Source","default":"market"},"ev":{"type":"number","title":"Ev"},"ev_unfloored":{"type":"number","title":"Ev Unfloored"},"floor":{"type":"number","title":"Floor"},"ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ratio"},"break_even_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Break Even Rate"},"coverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coverage"},"marketplace":{"type":"string","title":"Marketplace","default":"tcgplayer"},"fallback_cards":{"type":"integer","title":"Fallback Cards","default":0},"fallback_ev_share":{"type":"number","title":"Fallback Ev Share","default":0.0}},"type":"object","required":["product_id","product_name","set_id","set_name","set_code","game_id","game_name","snapshot_date","product_price","ev","ev_unfloored","floor","ratio","break_even_rate","coverage"],"title":"EvSummaryOut"},"FavoritesMergeIn":{"properties":{"product_ids":{"items":{"type":"integer"},"type":"array","title":"Product Ids"}},"type":"object","required":["product_ids"],"title":"FavoritesMergeIn"},"GameOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"GameOut"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HistoryPoint":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"ev":{"type":"number","title":"Ev"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"market_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Market Price"},"odds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Odds"},"ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ratio"}},"type":"object","required":["date","ev","price","odds","ratio"],"title":"HistoryPoint"},"JobOut":{"properties":{"id":{"type":"integer","title":"Id"},"kind":{"type":"string","title":"Kind"},"set_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Set Code"},"state":{"type":"string","title":"State"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"},"source":{"type":"string","title":"Source"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"}},"type":"object","required":["id","kind","set_code","state","stage","error","result","source","created_at","started_at","finished_at"],"title":"JobOut"},"LoginIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginIn"},"ProductOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"tcgt_product_id":{"type":"integer","title":"Tcgt Product Id"},"has_collation":{"type":"boolean","title":"Has Collation"}},"type":"object","required":["id","name","tcgt_product_id","has_collation"],"title":"ProductOut"},"RefreshSuppressionOut":{"properties":{"set_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Set Code"},"suppressed":{"items":{"type":"string"},"type":"array","title":"Suppressed"},"unsuppressed":{"items":{"type":"string"},"type":"array","title":"Unsuppressed"}},"type":"object","required":["set_code","suppressed","unsuppressed"],"title":"RefreshSuppressionOut"},"RegisterIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","minLength":8,"title":"Password"}},"type":"object","required":["email","password"],"title":"RegisterIn"},"SetCostIn":{"properties":{"cost":{"type":"number","exclusiveMinimum":0.0,"title":"Cost"}},"type":"object","required":["cost"],"title":"SetCostIn"},"SetOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"release_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Release Date"}},"type":"object","required":["id","name","code","release_date"],"title":"SetOut"},"SetPreferencesIn":{"properties":{"sifting_floor":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sifting Floor"},"price_marketplace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Marketplace"}},"type":"object","title":"SetPreferencesIn"},"SetSparklines":{"properties":{"set_id":{"type":"integer","title":"Set Id"},"series":{"items":{"$ref":"#/components/schemas/SparklineSeries"},"type":"array","title":"Series"}},"type":"object","required":["set_id","series"],"title":"SetSparklines"},"SparklinePoint":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"}},"type":"object","required":["date","value"],"title":"SparklinePoint"},"SparklineSeries":{"properties":{"product_id":{"type":"integer","title":"Product Id"},"points":{"items":{"$ref":"#/components/schemas/SparklinePoint"},"type":"array","title":"Points"}},"type":"object","required":["product_id","points"],"title":"SparklineSeries"},"SparklinesOut":{"properties":{"floor":{"type":"number","title":"Floor"},"range":{"type":"string","title":"Range"},"metric":{"type":"string","title":"Metric"},"sets":{"items":{"$ref":"#/components/schemas/SetSparklines"},"type":"array","title":"Sets"}},"type":"object","required":["floor","range","metric","sets"],"title":"SparklinesOut"},"StatsOut":{"properties":{"n":{"type":"integer","title":"N"},"mean":{"type":"number","title":"Mean"},"median":{"type":"number","title":"Median"},"stddev":{"type":"number","title":"Stddev"},"min":{"type":"number","title":"Min"},"max":{"type":"number","title":"Max"},"p5":{"type":"number","title":"P5"},"p25":{"type":"number","title":"P25"},"p75":{"type":"number","title":"P75"},"p95":{"type":"number","title":"P95"},"histogram_edges":{"items":{"type":"number"},"type":"array","title":"Histogram Edges"},"histogram_counts":{"items":{"type":"integer"},"type":"array","title":"Histogram Counts"},"quantiles":{"items":{"type":"number"},"type":"array","title":"Quantiles","default":[]},"break_even_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Break Even Rate"}},"type":"object","required":["n","mean","median","stddev","min","max","p5","p25","p75","p95","histogram_edges","histogram_counts","break_even_rate"],"title":"StatsOut"},"UserOut":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"is_admin":{"type":"boolean","title":"Is Admin"},"sifting_floor":{"type":"number","title":"Sifting Floor"},"price_marketplace":{"type":"string","title":"Price Marketplace"}},"type":"object","required":["id","email","is_admin","sifting_floor","price_marketplace"],"title":"UserOut"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}