{"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:alpaca/get-account":{"get":{"operationId":"finance_alpaca_get_account","summary":"Get account","description":"GET /v2/account","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:alpaca/get-all-orders":{"get":{"operationId":"finance_alpaca_get_all_orders","summary":"All Orders","description":"GET /v2/orders","tags":["finance"],"parameters":[{"name":"status","in":"query","required":false,"description":"Order status to be queried. open, closed or all. Defaults to open.","schema":{"type":"string","enum":["open","closed","all"],"description":"Order status to be queried. open, closed or all. Defaults to open."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of orders in response. Defaults to 50 and max is 500.","schema":{"type":"integer","description":"The maximum number of orders in response. Defaults to 50 and max is 500."}},{"name":"after","in":"query","required":false,"description":"The response will include only ones submitted after this timestamp (exclusive.)","schema":{"type":"string","description":"The response will include only ones submitted after this timestamp (exclusive.)"}},{"name":"until","in":"query","required":false,"description":"The response will include only ones submitted until this timestamp (exclusive.)","schema":{"type":"string","description":"The response will include only ones submitted until this timestamp (exclusive.)"}},{"name":"direction","in":"query","required":false,"description":"The chronological order of response based on the submission time. asc or desc. Defaults to desc.","schema":{"type":"string","enum":["asc","desc"],"description":"The chronological order of response based on the submission time. asc or desc. Defaults to desc."}},{"name":"nested","in":"query","required":false,"description":"If true, the result will roll up multi-leg orders under the legs field of primary order.","schema":{"type":"boolean","description":"If true, the result will roll up multi-leg orders under the legs field of primary order."}},{"name":"symbols","in":"query","required":false,"description":"A comma-separated list of symbols to filter by (ex. “AAPL,TSLA,MSFT”). A currency pair is required for crypto orders (ex.…","schema":{"type":"string","description":"A comma-separated list of symbols to filter by (ex. “AAPL,TSLA,MSFT”). A currency pair is required for crypto orders (ex.…"}}],"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:alpaca/post-order":{"post":{"operationId":"finance_alpaca_post_order","summary":"Order","description":"POST /v2/orders","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:alpaca/delete-all-orders":{"post":{"operationId":"finance_alpaca_delete_all_orders","summary":"All Orders","description":"DELETE /v2/orders","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":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:alpaca/get-order-by-order-id":{"get":{"operationId":"finance_alpaca_get_order_by_order_id","summary":"Order by Order ID","description":"GET /v2/orders/{order_id}","tags":["finance"],"parameters":[{"name":"order_id","in":"query","required":true,"description":"order id","schema":{"type":"string","description":"order id"}},{"name":"nested","in":"query","required":false,"description":"If true, the result will roll up multi-leg orders under the legs field of primary order.","schema":{"type":"boolean","description":"If true, the result will roll up multi-leg orders under the legs field of primary order."}}],"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:alpaca/patch-order-by-order-id":{"post":{"operationId":"finance_alpaca_patch_order_by_order_id","summary":"Order","description":"PATCH /v2/orders/{order_id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["order_id","body"],"properties":{"order_id":{"type":"string","description":"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:alpaca/delete-order-by-order-id":{"post":{"operationId":"finance_alpaca_delete_order_by_order_id","summary":"Order by Order ID","description":"DELETE /v2/orders/{order_id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["order_id"],"properties":{"order_id":{"type":"string","description":"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:alpaca/get-all-open-positions":{"get":{"operationId":"finance_alpaca_get_all_open_positions","summary":"All Open Positions","description":"GET /v2/positions","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:alpaca/delete-all-open-positions":{"post":{"operationId":"finance_alpaca_delete_all_open_positions","summary":"All Positions","description":"DELETE /v2/positions","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"cancel_orders":{"type":"boolean","description":"If true is specified, cancel all open orders before liquidating all positions."}}}}}},"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:alpaca/get-open-position":{"get":{"operationId":"finance_alpaca_get_open_position","summary":"Open Position","description":"GET /v2/positions/{symbol_or_asset_id}","tags":["finance"],"parameters":[{"name":"symbol_or_asset_id","in":"query","required":true,"description":"symbol or assetId","schema":{"type":"string","description":"symbol or assetId"}}],"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:alpaca/delete-open-position":{"post":{"operationId":"finance_alpaca_delete_open_position","summary":"Position","description":"DELETE /v2/positions/{symbol_or_asset_id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["symbol_or_asset_id"],"properties":{"symbol_or_asset_id":{"type":"string","description":"symbol or assetId"},"qty":{"type":"number","description":"the number of shares to liquidate. Can accept up to 9 decimal points. Cannot work with percentage"},"percentage":{"type":"number","description":"percentage of position to liquidate. Must be between 0 and 100. Would only sell fractional if position is originally fractional. Can…"}}}}}},"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:alpaca/get-account-portfolio-history":{"get":{"operationId":"finance_alpaca_get_account_portfolio_history","summary":"Account Portfolio History","description":"GET /v2/account/portfolio/history","tags":["finance"],"parameters":[{"name":"period","in":"query","required":false,"description":"The duration of the data in + , such as 1D, where can be D for day, W for week, M for month and A for year. Defaults to 1M.","schema":{"type":"string","description":"The duration of the data in + , such as 1D, where can be D for day, W for week, M for month and A for year. Defaults to 1M."}},{"name":"timeframe","in":"query","required":false,"description":"The resolution of time window. 1Min, 5Min, 15Min, 1H, or 1D. If omitted, 1Min for less than 7 days period, 15Min for less than 30 days, or…","schema":{"type":"string","description":"The resolution of time window. 1Min, 5Min, 15Min, 1H, or 1D. If omitted, 1Min for less than 7 days period, 15Min for less than 30 days, or…"}},{"name":"date_end","in":"query","required":false,"description":"The date the data is returned up to, in “YYYY-MM-DD” format. Defaults to the current market date (rolls over at the market open if…","schema":{"type":"string","description":"The date the data is returned up to, in “YYYY-MM-DD” format. Defaults to the current market date (rolls over at the market open if…"}},{"name":"extended_hours","in":"query","required":false,"description":"If true, include extended hours in the result. This is effective only for timeframe less than 1D.","schema":{"type":"string","description":"If true, include extended hours in the result. This is effective only for timeframe less than 1D."}}],"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:alpaca/get-watchlists":{"get":{"operationId":"finance_alpaca_get_watchlists","summary":"Watchlists","description":"GET /v2/watchlists","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:alpaca/post-watchlist":{"post":{"operationId":"finance_alpaca_post_watchlist","summary":"Watchlist","description":"POST /v2/watchlists","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:alpaca/get-watchlist-by-id":{"get":{"operationId":"finance_alpaca_get_watchlist_by_id","summary":"Get Watchlist by ID","description":"GET /v2/watchlists/{watchlist_id}","tags":["finance"],"parameters":[{"name":"watchlist_id","in":"query","required":true,"description":"watchlist id","schema":{"type":"string","description":"watchlist 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:alpaca/add-asset-to-watchlist":{"post":{"operationId":"finance_alpaca_add_asset_to_watchlist","summary":"Add Asset to Watchlist","description":"POST /v2/watchlists/{watchlist_id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["watchlist_id"],"properties":{"watchlist_id":{"type":"string","description":"watchlist 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:alpaca/update-watchlist-by-id":{"post":{"operationId":"finance_alpaca_update_watchlist_by_id","summary":"Update Watchlist By Id","description":"PUT /v2/watchlists/{watchlist_id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["watchlist_id"],"properties":{"watchlist_id":{"type":"string","description":"watchlist 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:alpaca/delete-watchlist-by-id":{"post":{"operationId":"finance_alpaca_delete_watchlist_by_id","summary":"Delete Watchlist By Id","description":"DELETE /v2/watchlists/{watchlist_id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["watchlist_id"],"properties":{"watchlist_id":{"type":"string","description":"watchlist 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:alpaca/get-watchlist-by-name":{"get":{"operationId":"finance_alpaca_get_watchlist_by_name","summary":"Get Watchlist by Name","description":"GET /v2/watchlists:by_name","tags":["finance"],"parameters":[{"name":"name","in":"query","required":true,"description":"name of the watchlist","schema":{"type":"string","description":"name of the watchlist"}}],"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:alpaca/add-asset-to-watchlist-by-name":{"post":{"operationId":"finance_alpaca_add_asset_to_watchlist_by_name","summary":"Add Asset to Watchlist By Name","description":"POST /v2/watchlists:by_name","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"name of the watchlist"},"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:alpaca/update-watchlist-by-name":{"post":{"operationId":"finance_alpaca_update_watchlist_by_name","summary":"Update Watchlist By Name","description":"PUT /v2/watchlists:by_name","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"name of the watchlist"},"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:alpaca/delete-watchlist-by-name":{"post":{"operationId":"finance_alpaca_delete_watchlist_by_name","summary":"Delete Watchlist By Name","description":"DELETE /v2/watchlists:by_name","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"name of the watchlist"}}}}}},"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:alpaca/remove-asset-from-watchlist":{"post":{"operationId":"finance_alpaca_remove_asset_from_watchlist","summary":"Symbol from Watchlist","description":"DELETE /v2/watchlists/{watchlist_id}/{symbol}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["watchlist_id","symbol"],"properties":{"watchlist_id":{"type":"string","description":"Watchlist ID"},"symbol":{"type":"string","description":"symbol name to remove from the watchlist content"}}}}}},"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:alpaca/get-account-config":{"get":{"operationId":"finance_alpaca_get_account_config","summary":"Account Configurations","description":"GET /v2/account/configurations","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:alpaca/patch-account-config":{"post":{"operationId":"finance_alpaca_patch_account_config","summary":"Account Configurations","description":"PATCH /v2/account/configurations","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"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:alpaca/get-account-activities":{"get":{"operationId":"finance_alpaca_get_account_activities","summary":"Get account activities of one type","description":"GET /v2/account/activities","tags":["finance"],"parameters":[{"name":"date","in":"query","required":false,"description":"The date for which you want to see activities.","schema":{"type":"string","description":"The date for which you want to see activities."}},{"name":"until","in":"query","required":false,"description":"The response will contain only activities submitted before this date. (Cannot be used with date.)","schema":{"type":"string","description":"The response will contain only activities submitted before this date. (Cannot be used with date.)"}},{"name":"after","in":"query","required":false,"description":"The response will contain only activities submitted after this date. (Cannot be used with date.)","schema":{"type":"string","description":"The response will contain only activities submitted after this date. (Cannot be used with date.)"}},{"name":"direction","in":"query","required":false,"description":"asc or desc (default desc if unspecified.)","schema":{"type":"string","enum":["asc","desc"],"description":"asc or desc (default desc if unspecified.)"}},{"name":"page_size","in":"query","required":false,"description":"The maximum number of entries to return in the response. (See the section on paging above.)","schema":{"type":"integer","description":"The maximum number of entries to return in the response. (See the section on paging above.)"}},{"name":"page_token","in":"query","required":false,"description":"The ID of the end of your current page of results.","schema":{"type":"string","description":"The ID of the end of your current page of results."}},{"name":"activity_types","in":"query","required":false,"description":"A comma-separated list of the activity types to include in the response. If unspecified, activities of all types will be returned. See…","schema":{"type":"string","description":"A comma-separated list of the activity types to include in the response. If unspecified, activities of all types will be returned. See…"}}],"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:alpaca/get-account-activities-by-activity-type":{"get":{"operationId":"finance_alpaca_get_account_activities_by_activity_type","summary":"Get account activities of one type","description":"GET /v2/account/activities/{activity_type}","tags":["finance"],"parameters":[{"name":"activity_type","in":"query","required":true,"description":"The activity type you want to view entries for. A list of valid activity types can be found at the bottom of this page.","schema":{"type":"string","description":"The activity type you want to view entries for. A list of valid activity types can be found at the bottom of this page."}},{"name":"date","in":"query","required":false,"description":"The date for which you want to see activities.","schema":{"type":"string","description":"The date for which you want to see activities."}},{"name":"until","in":"query","required":false,"description":"The response will contain only activities submitted before this date. (Cannot be used with date.)","schema":{"type":"string","description":"The response will contain only activities submitted before this date. (Cannot be used with date.)"}},{"name":"after","in":"query","required":false,"description":"The response will contain only activities submitted after this date. (Cannot be used with date.)","schema":{"type":"string","description":"The response will contain only activities submitted after this date. (Cannot be used with date.)"}},{"name":"direction","in":"query","required":false,"description":"asc or desc (default desc if unspecified.)","schema":{"type":"string","enum":["asc","desc"],"description":"asc or desc (default desc if unspecified.)"}},{"name":"page_size","in":"query","required":false,"description":"The maximum number of entries to return in the response. (See the section on paging above.)","schema":{"type":"integer","description":"The maximum number of entries to return in the response. (See the section on paging above.)"}},{"name":"page_token","in":"query","required":false,"description":"The ID of the end of your current page of results.","schema":{"type":"string","description":"The ID of the end of your current page of results."}}],"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:alpaca/get-calendar":{"get":{"operationId":"finance_alpaca_get_calendar","summary":"Get Market Calendar info","description":"GET /v2/calendar","tags":["finance"],"parameters":[{"name":"start","in":"query","required":false,"description":"The first date to retrieve data for (inclusive)","schema":{"type":"string","description":"The first date to retrieve data for (inclusive)"}},{"name":"end","in":"query","required":false,"description":"The last date to retrieve data for (inclusive)","schema":{"type":"string","description":"The last date to retrieve data for (inclusive)"}}],"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:alpaca/get-clock":{"get":{"operationId":"finance_alpaca_get_clock","summary":"Get Market Clock info","description":"GET /v2/clock","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"}}}}}}}