{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/finance:interactivebrokers/get-accounts":{"get":{"operationId":"finance_interactivebrokers_get_accounts","summary":"Brokerage Accounts","description":"GET /accounts","tags":["finance"],"parameters":[{"name":"account","in":"query","required":true,"description":"Account Number","schema":{"type":"string","description":"Account Number"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/post-accounts-account-order-impact":{"post":{"operationId":"finance_interactivebrokers_post_accounts_account_order_impact","summary":"Return margin impact info","description":"POST /accounts/{account}/order_impact","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["account","body"],"properties":{"account":{"type":"string","description":"Account Number"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/get-accounts-account-orders":{"get":{"operationId":"finance_interactivebrokers_get_accounts_account_orders","summary":"Open Orders","description":"GET /accounts/{account}/orders","tags":["finance"],"parameters":[{"name":"account","in":"query","required":true,"description":"Account Number","schema":{"type":"string","description":"Account Number"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/post-accounts-account-orders":{"post":{"operationId":"finance_interactivebrokers_post_accounts_account_orders","summary":"Place Order","description":"POST /accounts/{account}/orders","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["account","body"],"properties":{"account":{"type":"string","description":"Account Number"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/get-accounts-account-orders-customer-order-id":{"get":{"operationId":"finance_interactivebrokers_get_accounts_account_orders_customer_order_id","summary":"Return specific order info","description":"GET /accounts/{account}/orders/{CustomerOrderId}","tags":["finance"],"parameters":[{"name":"account","in":"query","required":true,"description":"Account Number","schema":{"type":"string","description":"Account Number"}},{"name":"CustomerOrderId","in":"query","required":true,"description":"Customer Order ID","schema":{"type":"string","description":"Customer Order ID"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/put-accounts-account-orders-customer-order-id":{"post":{"operationId":"finance_interactivebrokers_put_accounts_account_orders_customer_order_id","summary":"Modify Order","description":"PUT /accounts/{account}/orders/{CustomerOrderId}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["account","CustomerOrderId","body"],"properties":{"account":{"type":"string","description":"Account Number"},"CustomerOrderId":{"type":"string","description":"Customer Order ID"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/delete-accounts-account-orders-customer-order-id":{"post":{"operationId":"finance_interactivebrokers_delete_accounts_account_orders_customer_order_id","summary":"Cancel Order","description":"DELETE /accounts/{account}/orders/{CustomerOrderId}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["account","CustomerOrderId"],"properties":{"account":{"type":"string","description":"Account Number"},"CustomerOrderId":{"type":"string","description":"Customer Order ID"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/get-accounts-account-positions":{"get":{"operationId":"finance_interactivebrokers_get_accounts_account_positions","summary":"Account Positions","description":"GET /accounts/{account}/positions","tags":["finance"],"parameters":[{"name":"account","in":"query","required":true,"description":"Account Number","schema":{"type":"string","description":"Account Number"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/get-accounts-account-summary":{"get":{"operationId":"finance_interactivebrokers_get_accounts_account_summary","summary":"Account Values Summary","description":"GET /accounts/{account}/summary","tags":["finance"],"parameters":[{"name":"account","in":"query","required":true,"description":"Account Number","schema":{"type":"string","description":"Account Number"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/get-accounts-account-trades":{"get":{"operationId":"finance_interactivebrokers_get_accounts_account_trades","summary":"Returns trades in account","description":"GET /accounts/{account}/trades","tags":["finance"],"parameters":[{"name":"account","in":"query","required":true,"description":"Account Number","schema":{"type":"string","description":"Account Number"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/get-marketdata-exchange-components":{"get":{"operationId":"finance_interactivebrokers_get_marketdata_exchange_components","summary":"Exchange Components","description":"GET /marketdata/exchange_components","tags":["finance"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/get-marketdata-snapshot":{"get":{"operationId":"finance_interactivebrokers_get_marketdata_snapshot","summary":"Market Data Snapshot","description":"GET /marketdata/snapshot","tags":["finance"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/post-oauth-access-token":{"post":{"operationId":"finance_interactivebrokers_post_oauth_access_token","summary":"Obtain a access token","description":"POST /oauth/access_token","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/post-oauth-live-session-token":{"post":{"operationId":"finance_interactivebrokers_post_oauth_live_session_token","summary":"Obtain a live session token","description":"POST /oauth/live_session_token","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/post-oauth-request-token":{"post":{"operationId":"finance_interactivebrokers_post_oauth_request_token","summary":"Obtain a request token","description":"POST /oauth/request_token","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:interactivebrokers/get-secdef":{"get":{"operationId":"finance_interactivebrokers_get_secdef","summary":"Get security definition","description":"GET /secdef","tags":["finance"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}