{"openapi":"3.1.0","info":{"title":"X Games Prop Desk — Market Access API","description":"Market-access API of the X Games Prop Desk: markets and sessions, deal menus, order placement, positions, account and the recorded market history. Automated agents register for an API key; orders are funded by the account holder through a purchase link or from the account balance. Demo environment: test cards only, no real charges.","version":"1.0.0"},"servers":[{"url":"https://t5market.com"}],"paths":{"/api/v1/manifest":{"get":{"tags":["v1"],"summary":"Service discovery document","operationId":"manifest_api_v1_manifest_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/agents/token":{"post":{"tags":["v1"],"summary":"Invent a fresh API key for an agent without a reliable random source (nothing is stored)","operationId":"invent_token_api_v1_agents_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/agents/register":{"post":{"tags":["v1"],"summary":"Register an agent with your own API key (and describe yourself)","operationId":"register_agent_api_v1_agents_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRegister"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agents/recall":{"post":{"tags":["v1"],"summary":"Was I here before? Look up a key id and get the recall phrase back","operationId":"recall_agent_api_v1_agents_recall_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRecall"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agents/me":{"get":{"tags":["v1"],"summary":"Who am I: key id, account, holder connection and the carts I can see","operationId":"me_api_v1_agents_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/catalog":{"get":{"tags":["v1"],"summary":"Item families and grades traded on the market","operationId":"catalog_api_v1_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/markets":{"get":{"tags":["v1"],"summary":"All markets with their current session and close time","operationId":"markets_api_v1_markets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/markets/{market_id}":{"get":{"tags":["v1"],"summary":"One market's status","operationId":"market_api_v1_markets__market_id__get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/markets/{market_id}/deals":{"get":{"tags":["v1"],"summary":"Current deal menu (the deals available this session)","operationId":"deals_api_v1_markets__market_id__deals_get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"family","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by SKU family name","title":"Family"},"description":"Filter by SKU family name"},{"name":"house_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only deals the desk's own policy bids on","default":false,"title":"House Only"},"description":"Only deals the desk's own policy bids on"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":2000,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/markets/{market_id}/deals/{offer_key}":{"get":{"tags":["v1"],"summary":"One deal","operationId":"deal_api_v1_markets__market_id__deals__offer_key__get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"offer_key","in":"path","required":true,"schema":{"type":"string","title":"Offer Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/markets/{market_id}/history":{"get":{"tags":["v1"],"summary":"Past menus with the record: executed (observed) vs rejected deals","operationId":"history_api_v1_markets__market_id__history_get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"from_tick","in":"query","required":true,"schema":{"type":"integer","minimum":0,"title":"From Tick"}},{"name":"to_tick","in":"query","required":true,"schema":{"type":"integer","minimum":0,"title":"To Tick"}},{"name":"reveal","in":"query","required":false,"schema":{"type":"string","pattern":"^(house|full)$","description":"house = the record (outcomes only for deals that were actually executed); full = research oracle, also outcomes of rejected deals — only if XGM_ORACLE=1","default":"house","title":"Reveal"},"description":"house = the record (outcomes only for deals that were actually executed); full = research oracle, also outcomes of rejected deals — only if XGM_ORACLE=1"},{"name":"include_bundle","in":"query","required":false,"schema":{"type":"boolean","description":"Include the full bundle item list per row (larger payload); otherwise only 'title'","default":false,"title":"Include Bundle"},"description":"Include the full bundle item list per row (larger payload); otherwise only 'title'"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/markets/{market_id}/trades":{"get":{"tags":["v1"],"summary":"The record of executed (observed) trades","operationId":"market_trades_api_v1_markets__market_id__trades_get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"from_tick","in":"query","required":true,"schema":{"type":"integer","minimum":0,"title":"From Tick"}},{"name":"to_tick","in":"query","required":true,"schema":{"type":"integer","minimum":0,"title":"To Tick"}},{"name":"actor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(house|user)$"},{"type":"null"}],"title":"Actor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":2000,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/markets/{market_id}/coverage":{"get":{"tags":["v1"],"summary":"What part of history is recorded (backfill progress)","operationId":"market_coverage_api_v1_markets__market_id__coverage_get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/markets/{market_id}/dataset.csv":{"get":{"tags":["v1"],"summary":"Research dataset: labeled (executed trades) or unlabeled (full menu) frame","operationId":"market_dataset_api_v1_markets__market_id__dataset_csv_get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"from_tick","in":"query","required":true,"schema":{"type":"integer","minimum":0,"title":"From Tick"}},{"name":"to_tick","in":"query","required":true,"schema":{"type":"integer","minimum":0,"title":"To Tick"}},{"name":"split","in":"query","required":false,"schema":{"type":"string","pattern":"^(labeled|unlabeled)$","default":"labeled","title":"Split"}},{"name":"expand_qty","in":"query","required":false,"schema":{"type":"boolean","description":"labeled only: one row per qty 1..max_qty (the realised profit curve) instead of the executed qty","default":false,"title":"Expand Qty"},"description":"labeled only: one row per qty 1..max_qty (the realised profit curve) instead of the executed qty"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trades":{"get":{"tags":["v1"],"summary":"My own executed trades (the record of my fills)","operationId":"my_trades_api_v1_trades_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ticker":{"get":{"tags":["v1"],"summary":"Ticker strip: last session's VWAP landed cost, its change and volume, per market","operationId":"ticker_api_v1_ticker_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/markets/{market_id}/tape":{"get":{"tags":["v1"],"summary":"Session tape: executions (OHLC/VWAP of landed cost, units), units sold, realised velocity and demand index per closed session","operationId":"market_tape_api_v1_markets__market_id__tape_get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"from_tick","in":"query","required":true,"schema":{"type":"integer","minimum":0,"title":"From Tick"}},{"name":"to_tick","in":"query","required":true,"schema":{"type":"integer","minimum":0,"title":"To Tick"}},{"name":"cluster","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Restrict to one item family","title":"Cluster"},"description":"Restrict to one item family"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/markets/{market_id}/book":{"get":{"tags":["v1"],"summary":"The current menu as a book: deals and desk bids per landed-cost level","operationId":"market_book_api_v1_markets__market_id__book_get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"cluster","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Cluster"}},{"name":"step","in":"query","required":false,"schema":{"type":"number","maximum":10,"exclusiveMinimum":0.05,"default":1.0,"title":"Step"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders":{"post":{"tags":["v1"],"summary":"Submit an order for a deal on the current menu","operationId":"create_order_api_v1_orders_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["v1"],"summary":"List my orders","operationId":"list_orders_api_v1_orders_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders/{order_id}":{"get":{"tags":["v1"],"summary":"One order","operationId":"get_order_api_v1_orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/positions":{"get":{"tags":["v1"],"summary":"List my positions","operationId":"list_positions_api_v1_positions_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(open|settled)$"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/positions/{position_id}":{"get":{"tags":["v1"],"summary":"One position","operationId":"get_position_api_v1_positions__position_id__get","parameters":[{"name":"position_id","in":"path","required":true,"schema":{"type":"integer","title":"Position Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/account":{"get":{"tags":["v1"],"summary":"My account: balance and recent ledger","operationId":"account_api_v1_account_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/markets/{market_id}/stats":{"get":{"tags":["v1"],"summary":"Recorded per-session statistics of settled sessions (from executed trades)","operationId":"market_stats_api_v1_markets__market_id__stats_get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"from_tick","in":"query","required":true,"schema":{"type":"integer","minimum":0,"title":"From Tick"}},{"name":"to_tick","in":"query","required":true,"schema":{"type":"integer","minimum":0,"title":"To Tick"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/markets/{market_id}/deals/{offer_key}/projection":{"get":{"tags":["v1"],"summary":"Naive projection for a current deal: observed sales of its family, a least-squares (or mean) fit, and P&L by volume under that fit","operationId":"deal_projection_api_v1_markets__market_id__deals__offer_key__projection_get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"offer_key","in":"path","required":true,"schema":{"type":"string","title":"Offer Key"}},{"name":"lookback","in":"query","required":false,"schema":{"type":"integer","maximum":400,"minimum":8,"default":48,"title":"Lookback"}},{"name":"fit","in":"query","required":false,"schema":{"type":"string","pattern":"^(trend|mean)$","default":"trend","title":"Fit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/markets/{market_id}/projection":{"get":{"tags":["v1"],"summary":"Naive projection for a hypothetical deal (family + unit cost)","operationId":"family_projection_api_v1_markets__market_id__projection_get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"cluster","in":"query","required":true,"schema":{"type":"integer","minimum":0,"title":"Cluster"}},{"name":"unit_cost","in":"query","required":true,"schema":{"type":"number","exclusiveMinimum":0,"title":"Unit Cost"}},{"name":"lookback","in":"query","required":false,"schema":{"type":"integer","maximum":400,"minimum":8,"default":48,"title":"Lookback"}},{"name":"fit","in":"query","required":false,"schema":{"type":"string","pattern":"^(trend|mean)$","default":"trend","title":"Fit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/markets/{market_id}/families":{"get":{"tags":["v1"],"summary":"Item families on the current menu with recorded outcome statistics","operationId":"market_families_api_v1_markets__market_id__families_get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"window","in":"query","required":false,"schema":{"type":"integer","maximum":400,"minimum":1,"default":48,"title":"Window"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/carts":{"get":{"tags":["v1"],"summary":"Every cart I can see: my own, and — once connected — every cart of my account holder","operationId":"list_carts_api_v1_carts_get","parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Only carts created, connected or changed after this unix time","title":"Since"},"description":"Only carts created, connected or changed after this unix time"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["v1"],"summary":"Open another cart of my own","operationId":"create_cart_api_v1_carts_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/carts/{cart_id}":{"get":{"tags":["v1"],"summary":"One cart with its lines and what I may do with it","operationId":"get_cart_api_v1_carts__cart_id__get","parameters":[{"name":"cart_id","in":"path","required":true,"schema":{"type":"integer","title":"Cart Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/carts/{cart_id}/link":{"post":{"tags":["v1"],"summary":"The cart's checkout link to hand to the account holder","operationId":"cart_link_url_api_v1_carts__cart_id__link_post","parameters":[{"name":"cart_id","in":"path","required":true,"schema":{"type":"integer","title":"Cart Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/carts/{cart_id}/items":{"post":{"tags":["v1"],"summary":"Add a deal to a cart I may write to","operationId":"cart_add_line_api_v1_carts__cart_id__items_post","parameters":[{"name":"cart_id","in":"path","required":true,"schema":{"type":"integer","title":"Cart Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartItemCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/carts/{cart_id}/items/{item_id}":{"put":{"tags":["v1"],"summary":"Re-size a line (qty 0 removes it)","operationId":"cart_update_line_api_v1_carts__cart_id__items__item_id__put","parameters":[{"name":"cart_id","in":"path","required":true,"schema":{"type":"integer","title":"Cart Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartItemUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["v1"],"summary":"Remove a line (only while not yet ordered)","operationId":"cart_delete_line_api_v1_carts__cart_id__items__item_id__delete","parameters":[{"name":"cart_id","in":"path","required":true,"schema":{"type":"integer","title":"Cart Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/carts/{cart_id}/checkout":{"post":{"tags":["v1"],"summary":"Execute a cart at will: place and fund its current lines (needs an execute grant)","operationId":"cart_execute_api_v1_carts__cart_id__checkout_post","parameters":[{"name":"cart_id","in":"path","required":true,"schema":{"type":"integer","title":"Cart Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CartCheckout"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cart/link":{"post":{"tags":["v1"],"summary":"My default cart's checkout link (plus the older pairing link)","operationId":"cart_link_api_v1_cart_link_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/cart/items":{"post":{"tags":["v1"],"summary":"Put a deal in my default cart (the account holder sees it once connected)","operationId":"cart_add_item_api_v1_cart_items_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartItemCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cart":{"get":{"tags":["v1"],"summary":"My default cart, and the other carts connected to my account holder","operationId":"cart_state_api_v1_cart_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/cart/items/{item_id}":{"delete":{"tags":["v1"],"summary":"Withdraw a line I proposed (only while not yet ordered)","operationId":"cart_remove_item_api_v1_cart_items__item_id__delete","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Landing","operationId":"landing__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/robots.txt":{"get":{"summary":"Robots","operationId":"robots_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/llms.txt":{"get":{"summary":"Llms Txt","operationId":"llms_txt_llms_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/register":{"get":{"summary":"Register Form","operationId":"register_form_register_get","parameters":[{"name":"next","in":"query","required":false,"schema":{"type":"string","default":"/console","title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Register","operationId":"register_register_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_register_register_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/login":{"get":{"summary":"Login Form","operationId":"login_form_login_get","parameters":[{"name":"next","in":"query","required":false,"schema":{"type":"string","default":"/console","title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Login","operationId":"login_login_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_login_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/logout":{"get":{"summary":"Logout","operationId":"logout_logout_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/checkout/{token}":{"get":{"summary":"Checkout","operationId":"checkout_checkout__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/checkout/{token}/pay":{"post":{"summary":"Checkout Pay","operationId":"checkout_pay_checkout__token__pay_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_checkout_pay_checkout__token__pay_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/console":{"get":{"summary":"Console","operationId":"console_console_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/console/positions":{"get":{"summary":"Console Positions","operationId":"console_positions_console_positions_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/console/orders":{"get":{"summary":"Console Orders","operationId":"console_orders_console_orders_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/console/ledger":{"get":{"summary":"Console Ledger","operationId":"console_ledger_console_ledger_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/console/payout":{"post":{"summary":"Console Payout","operationId":"console_payout_console_payout_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_console_payout_console_payout_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/console/topup":{"post":{"summary":"Console Topup","operationId":"console_topup_console_topup_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_console_topup_console_topup_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/console/agents":{"get":{"summary":"Console Agents","operationId":"console_agents_console_agents_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Console Create Agent","operationId":"console_create_agent_console_agents_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_console_create_agent_console_agents_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/console/timeline":{"get":{"summary":"Console Timeline","operationId":"console_timeline_console_timeline_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/markets":{"get":{"summary":"Markets Board","operationId":"markets_board_markets_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs":{"get":{"summary":"Docs Index","operationId":"docs_index_docs_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/{slug}":{"get":{"summary":"Docs Page","operationId":"docs_page_docs__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/markets/{market_id}":{"get":{"summary":"Market Board","operationId":"market_board_markets__market_id__get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"family","in":"query","required":false,"schema":{"type":"string","default":"-1","title":"Family"}},{"name":"min_margin","in":"query","required":false,"schema":{"type":"string","default":"","title":"Min Margin"}},{"name":"min_sv","in":"query","required":false,"schema":{"type":"string","default":"","title":"Min Sv"}},{"name":"house","in":"query","required":false,"schema":{"type":"string","default":"0","title":"House"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"score","title":"Sort"}},{"name":"page","in":"query","required":false,"schema":{"type":"string","default":"1","title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"string","default":"100","title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/markets/{market_id}/menu.csv":{"get":{"summary":"Market Menu Csv","operationId":"market_menu_csv_markets__market_id__menu_csv_get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/explore":{"get":{"summary":"Explore Index","operationId":"explore_index_explore_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/explore/{market_id}":{"get":{"summary":"Explore Market","description":"The terminal: candles of executed landed cost, volume, demand index, P&L and rates per session,\nthe book of the open session and the tape of the last close — all from the record.","operationId":"explore_market_explore__market_id__get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"ticks","in":"query","required":false,"schema":{"type":"string","default":"120","title":"Ticks"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","default":"cost","title":"Mode"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/explore/{market_id}/tick/{tick}":{"get":{"summary":"Explore Tick","operationId":"explore_tick_explore__market_id__tick__tick__get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"tick","in":"path","required":true,"schema":{"type":"integer","title":"Tick"}},{"name":"family","in":"query","required":false,"schema":{"type":"string","default":"-1","title":"Family"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"house","title":"Sort"}},{"name":"status_filter","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status Filter"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assets":{"get":{"summary":"Assets Index","operationId":"assets_index_assets_get","parameters":[{"name":"market","in":"query","required":false,"schema":{"type":"string","default":"m15","title":"Market"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"house","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assets/{market_id}/{cluster}":{"get":{"summary":"Asset Page","operationId":"asset_page_assets__market_id___cluster__get","parameters":[{"name":"market_id","in":"path","required":true,"schema":{"type":"string","title":"Market Id"}},{"name":"cluster","in":"path","required":true,"schema":{"type":"integer","title":"Cluster"}},{"name":"ticks","in":"query","required":false,"schema":{"type":"string","default":"120","title":"Ticks"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/link/{token}":{"get":{"summary":"Open Pairing Link","description":"Older pairing link an agent hands to its account holder: connects the agent and shows its cart.","operationId":"open_pairing_link_link__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cart":{"get":{"summary":"Cart Page","operationId":"cart_page_cart_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/cart/add":{"post":{"summary":"Cart Add","operationId":"cart_add_cart_add_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_cart_add_cart_add_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cart/update":{"post":{"summary":"Cart Update","operationId":"cart_update_cart_update_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_cart_update_cart_update_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cart/remove":{"post":{"summary":"Cart Remove","operationId":"cart_remove_cart_remove_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_cart_remove_cart_remove_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cart/clear":{"post":{"summary":"Cart Clear","operationId":"cart_clear_cart_clear_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_cart_clear_cart_clear_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cart/refresh":{"post":{"summary":"Cart Refresh","description":"Re-map lines whose session has closed to the closest deal of the same family on the current menu.","operationId":"cart_refresh_cart_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/cart/template.csv":{"get":{"summary":"Cart Template","operationId":"cart_template_cart_template_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/cart/upload":{"post":{"summary":"Cart Upload","operationId":"cart_upload_cart_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_cart_upload_cart_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cart/checkout":{"post":{"summary":"Cart Checkout","operationId":"cart_checkout_cart_checkout_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_cart_checkout_cart_checkout_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cart/grant":{"post":{"summary":"Cart Grant","description":"Grant an agent (or every agent of mine) write or execute access to one cart (or every cart of mine).","operationId":"cart_grant_cart_grant_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_cart_grant_cart_grant_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cart/grant/revoke":{"post":{"summary":"Cart Grant Revoke","operationId":"cart_grant_revoke_cart_grant_revoke_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_cart_grant_revoke_cart_grant_revoke_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/carts/{token}":{"get":{"summary":"Cart Link Page","description":"A cart's checkout link: the cart's contents with register-or-log-in and payment in one step.  Opening it while\nlogged in connects the cart (and its agent) to the account holder right away.","operationId":"cart_link_page_carts__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/carts/{token}/pay":{"post":{"summary":"Cart Link Pay","operationId":"cart_link_pay_carts__token__pay_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_cart_link_pay_carts__token__pay_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AgentIdentity":{"properties":{"model":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Model","description":"Model or software running the agent, e.g. 'claude-opus-5', 'gpt-x', 'in-house bot'"},"version":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Version","description":"Version or build of that software"},"vendor":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Vendor","description":"Who makes the model / software"},"kind":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Kind","description":"llm-agent | script | service | assisted (a person driving a tool)"},"instance":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Instance","description":"Where this instance runs: host, process, conversation or session id"}},"type":"object","title":"AgentIdentity","description":"What the agent says about itself."},"AgentRecall":{"properties":{"key_id":{"type":"string","maxLength":80,"minLength":20,"title":"Key Id","description":"The first 20 characters of your key (a full key is accepted and truncated)"},"recall_phrase":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Recall Phrase","description":"Optional: the phrase you remember, to have it checked as well"}},"type":"object","required":["key_id"],"title":"AgentRecall"},"AgentRegister":{"properties":{"token":{"type":"string","maxLength":80,"minLength":80,"title":"Token","description":"Your own API key: exactly 80 characters [A-Za-z0-9] from a cryptographic random source (or from POST /agents/token). The first 20 characters are the public key id."},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name","description":"Agent name (shown to the account holder)"},"recall_phrase":{"type":"string","maxLength":120,"minLength":3,"title":"Recall Phrase","description":"A word or phrase you will remember. POST /agents/recall gives it back for your key id, so a later session can confirm it is talking to the platform it registered with."},"agent":{"anyOf":[{"$ref":"#/components/schemas/AgentIdentity"},{"type":"null"}],"description":"Who you are"},"operator":{"anyOf":[{"$ref":"#/components/schemas/Operator"},{"type":"null"}],"description":"On whose behalf you operate"},"purpose":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Purpose","description":"What this agent does here, in a sentence"},"contact":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contact","description":"Legacy: operator contact (use operator.contact)"}},"type":"object","required":["token","name","recall_phrase"],"title":"AgentRegister"},"Body_cart_add_cart_add_post":{"properties":{"market":{"type":"string","title":"Market"},"offer_key":{"type":"string","title":"Offer Key"},"qty":{"type":"integer","title":"Qty","default":1},"next":{"type":"string","title":"Next","default":"/cart"}},"type":"object","required":["market","offer_key"],"title":"Body_cart_add_cart_add_post"},"Body_cart_checkout_cart_checkout_post":{"properties":{"method":{"type":"string","title":"Method","default":"new_card"},"card_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Card Id"},"number":{"type":"string","title":"Number","default":""},"exp":{"type":"string","title":"Exp","default":""},"cvc":{"type":"string","title":"Cvc","default":""},"holder":{"type":"string","title":"Holder","default":""},"cart_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cart Id"}},"type":"object","title":"Body_cart_checkout_cart_checkout_post"},"Body_cart_clear_cart_clear_post":{"properties":{"cart_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cart Id"}},"type":"object","title":"Body_cart_clear_cart_clear_post"},"Body_cart_grant_cart_grant_post":{"properties":{"agent_id":{"type":"string","title":"Agent Id","default":""},"cart_id":{"type":"string","title":"Cart Id","default":""},"level":{"type":"string","title":"Level","default":"write"},"pay_with":{"type":"string","title":"Pay With","default":"balance"},"card_id":{"type":"string","title":"Card Id","default":""},"note":{"type":"string","title":"Note","default":""}},"type":"object","title":"Body_cart_grant_cart_grant_post"},"Body_cart_grant_revoke_cart_grant_revoke_post":{"properties":{"grant_id":{"type":"integer","title":"Grant Id"}},"type":"object","required":["grant_id"],"title":"Body_cart_grant_revoke_cart_grant_revoke_post"},"Body_cart_link_pay_carts__token__pay_post":{"properties":{"auth":{"type":"string","title":"Auth","default":"session"},"email":{"type":"string","title":"Email","default":""},"password":{"type":"string","title":"Password","default":""},"password2":{"type":"string","title":"Password2","default":""},"display_name":{"type":"string","title":"Display Name","default":""},"method":{"type":"string","title":"Method","default":"new_card"},"card_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Card Id"},"number":{"type":"string","title":"Number","default":""},"exp":{"type":"string","title":"Exp","default":""},"cvc":{"type":"string","title":"Cvc","default":""},"holder":{"type":"string","title":"Holder","default":""}},"type":"object","title":"Body_cart_link_pay_carts__token__pay_post"},"Body_cart_remove_cart_remove_post":{"properties":{"item_id":{"type":"integer","title":"Item Id"}},"type":"object","required":["item_id"],"title":"Body_cart_remove_cart_remove_post"},"Body_cart_update_cart_update_post":{"properties":{"item_id":{"type":"integer","title":"Item Id"},"qty":{"type":"integer","title":"Qty"}},"type":"object","required":["item_id","qty"],"title":"Body_cart_update_cart_update_post"},"Body_cart_upload_cart_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_cart_upload_cart_upload_post"},"Body_checkout_pay_checkout__token__pay_post":{"properties":{"method":{"type":"string","title":"Method","default":"new_card"},"card_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Card Id"},"number":{"type":"string","title":"Number","default":""},"exp":{"type":"string","title":"Exp","default":""},"cvc":{"type":"string","title":"Cvc","default":""},"holder":{"type":"string","title":"Holder","default":""}},"type":"object","title":"Body_checkout_pay_checkout__token__pay_post"},"Body_console_create_agent_console_agents_post":{"properties":{"name":{"type":"string","title":"Name"},"account_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"},"recall_phrase":{"type":"string","title":"Recall Phrase","default":""}},"type":"object","required":["name"],"title":"Body_console_create_agent_console_agents_post"},"Body_console_payout_console_payout_post":{"properties":{"account_id":{"type":"integer","title":"Account Id"},"amount":{"type":"number","title":"Amount"},"card_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Card Id"}},"type":"object","required":["account_id","amount"],"title":"Body_console_payout_console_payout_post"},"Body_console_topup_console_topup_post":{"properties":{"account_id":{"type":"integer","title":"Account Id"},"amount":{"type":"number","title":"Amount"},"card_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Card Id"},"number":{"type":"string","title":"Number","default":""},"exp":{"type":"string","title":"Exp","default":""},"holder":{"type":"string","title":"Holder","default":""}},"type":"object","required":["account_id","amount"],"title":"Body_console_topup_console_topup_post"},"Body_login_login_post":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"next":{"type":"string","title":"Next","default":"/console"}},"type":"object","required":["email","password"],"title":"Body_login_login_post"},"Body_register_register_post":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"password2":{"type":"string","title":"Password2","default":""},"display_name":{"type":"string","title":"Display Name","default":""},"next":{"type":"string","title":"Next","default":"/console"}},"type":"object","required":["email","password"],"title":"Body_register_register_post"},"CartCheckout":{"properties":{"pay_with":{"anyOf":[{"type":"string","pattern":"^(card|balance)$"},{"type":"null"}],"title":"Pay With","description":"card = the account holder's stored card named in the grant; balance = the account balance. Defaults to what the grant allows."},"item_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Item Ids","description":"Only these lines (default: every current line of the cart)"}},"type":"object","title":"CartCheckout"},"CartCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"CartCreate"},"CartItemCreate":{"properties":{"market":{"type":"string","title":"Market","description":"Market id: m15 | m45 | h2 | h10"},"offer_key":{"type":"string","title":"Offer Key","description":"Deal key from GET /markets/{market}/deals"},"qty":{"type":"integer","minimum":1.0,"title":"Qty","description":"Proposed volume (clamped to the deal's max_qty)"},"note":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Note","description":"Short rationale shown to the account holder in the cart"}},"type":"object","required":["market","offer_key","qty"],"title":"CartItemCreate"},"CartItemUpdate":{"properties":{"qty":{"type":"integer","minimum":0.0,"title":"Qty","description":"New volume (clamped to max_qty); 0 removes the line"}},"type":"object","required":["qty"],"title":"CartItemUpdate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Operator":{"properties":{"type":{"anyOf":[{"type":"string","pattern":"^(user|organisation|organization|system)$"},{"type":"null"}],"title":"Type","description":"user = a person, organisation = a company or team, system = an unattended system"},"name":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Name","description":"Name of the person, organisation or system"},"contact":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contact","description":"E-mail or URL to reach the operator"},"reference":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Reference","description":"Project, ticket, tenant or partner id on the operator's side"}},"type":"object","title":"Operator","description":"On whose behalf the agent operates."},"OrderCreate":{"properties":{"market":{"type":"string","title":"Market","description":"Market id: m15 | m45 | h2 | h10"},"offer_key":{"type":"string","title":"Offer Key","description":"Deal key from GET /markets/{market}/deals"},"qty":{"type":"integer","minimum":1.0,"title":"Qty","description":"Number of units (1..max_qty of the deal)"},"pay_from_balance":{"type":"boolean","title":"Pay From Balance","description":"Fund immediately from the account balance instead of issuing a purchase link","default":false}},"type":"object","required":["market","offer_key","qty"],"title":"OrderCreate"},"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"}}}}