{"components":{"headers":{"ratelimit_limit":{"description":"Request limit per minute.","example":100,"schema":{"type":"integer"}},"ratelimit_remaining":{"description":"Request limit per minute remaining.","example":90,"schema":{"type":"integer"}},"ratelimit_reset":{"description":"The UNIX epoch when the remaining quota changes.","example":1674044551,"schema":{"type":"integer"}}},"parameters":{"cas_cusips":{"description":"A comma-separated list of CUSIPs.","example":"037833100,88160R101","in":"query","name":"cusips","schema":{"type":"string"}},"cas_end":{"description":"The inclusive end of the interval. The corporate actions are sorted by their `process_date`. Format: YYYY-MM-DD. Default: current day.\n","examples":{"date":{"summary":"Date","value":"2024-08-25"}},"in":"query","name":"end","schema":{"format":"date","type":"string"}},"cas_ids":{"description":"A comma-separated list of corporate action IDs. This parameter is mutually exclusive with all other filters (symbols, types, start, end).\n","example":"1dbc7685-9517-4a77-a236-8527d49cefdc,f8489167-4e4b-431d-a0be-6017ae1cf08a","in":"query","name":"ids","schema":{"type":"string"}},"cas_limit":{"description":"Maximum number of corporate actions to return in a response.\nThe limit applies to the total number of data points, not the count per symbol!\nUse `next_page_token` to fetch the next set of corporate actions.\n","in":"query","name":"limit","schema":{"default":100,"maximum":1000,"minimum":1,"type":"integer"}},"cas_region":{"description":"The region to filter corporate actions by.","in":"query","name":"region","schema":{"$ref":"#/components/schemas/region"}},"cas_start":{"description":"The inclusive start of the interval. The corporate actions are sorted by their `process_date`. Format: YYYY-MM-DD. Default: current day.\n","examples":{"date":{"value":"2024-08-14"}},"in":"query","name":"start","schema":{"format":"date","type":"string"}},"cas_symbols":{"description":"A comma-separated list of symbols.","example":"AAPL,TSLA","in":"query","name":"symbols","schema":{"type":"string"}},"cas_types":{"description":"A comma-separated list of types. If not provided, search all types.\n\nThe following types are supported:\n  - reverse_split\n  - forward_split\n  - unit_split\n  - cash_dividend\n  - stock_dividend\n  - spin_off\n  - cash_merger\n  - stock_merger\n  - stock_and_cash_merger\n  - redemption\n  - name_change\n  - worthless_removal\n  - rights_distribution\n  - partial_call\n  - reorganization\n","example":"forward_split,reverse_split","in":"query","name":"types","schema":{"type":"string"}},"crypto_historical_loc":{"description":"Crypto location from where the historical market data is retrieved.\n- `us`: Alpaca US\n- `us-1`: Kraken US\n- `eu-1`: Kraken EU\n","in":"path","name":"loc","required":true,"schema":{"$ref":"#/components/schemas/crypto_historical_loc"}},"crypto_latest_loc":{"description":"Crypto location from where the latest market data is retrieved.\n- `us`: Alpaca US\n- `us-1`: Kraken US\n- `eu-1`: Kraken EU\n","in":"path","name":"loc","required":true,"schema":{"$ref":"#/components/schemas/crypto_latest_loc"}},"crypto_perp_loc":{"description":"Crypto perpetual location.","in":"path","name":"loc","required":true,"schema":{"$ref":"#/components/schemas/crypto_perp_loc"}},"crypto_perp_symbols":{"description":"A comma-separated list of crypto symbols.","example":"BTCUSDT.P,LTCUSDT.P","in":"query","name":"symbols","required":true,"schema":{"type":"string"}},"crypto_symbols":{"description":"A comma-separated list of crypto symbols.","example":"BTC/USD,LTC/USD","in":"query","name":"symbols","required":true,"schema":{"type":"string"}},"end":{"description":"The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD.\nDefault: the current time if the user has a real-time access for the feed, otherwise 15 minutes before the current time.\n","examples":{"RFC-3339 nanosecond":{"summary":"RFC-3339 date-time with nanosecond accuracy","value":"2024-01-04T01:02:03.123456789Z"},"RFC-3339 second":{"summary":"RFC-3339 date-time with second accuracy","value":"2024-01-04T00:00:00Z"},"RFC-3339 with timezone":{"summary":"RFC-3339 date-time with time zone","value":"2024-01-04T09:30:00-04:00"},"date":{"summary":"Date","value":"2024-01-04"}},"in":"query","name":"end","required":false,"schema":{"format":"date-time","type":"string"}},"forex_currency_pairs":{"in":"query","name":"currency_pairs","required":true,"schema":{"$ref":"#/components/schemas/forex_currency_pairs"}},"forex_timeframe":{"in":"query","name":"timeframe","required":false,"schema":{"$ref":"#/components/schemas/forex_timeframe"}},"index_symbols":{"description":"A comma-separated list of index symbols.","example":"SPX,VIX","in":"query","name":"symbols","required":true,"schema":{"type":"string"}},"isins":{"description":"A comma-separated list of ISINs with a limit of 1000.","example":"US912797KJ59,US912797KS58,US912797LB15","in":"query","name":"isins","required":true,"schema":{"type":"string"}},"limit":{"description":"The maximum number of data points to return in the response page.\nThe API may return less, even if there are more available data points in the requested interval.\nAlways check the `next_page_token` for more pages.\nThe limit applies to the total number of data points, not per symbol!\n","in":"query","name":"limit","required":false,"schema":{"default":1000,"maximum":10000,"minimum":1,"type":"integer"}},"most_actives_by":{"description":"The metric used for ranking the most active stocks.","in":"query","name":"by","required":false,"schema":{"default":"volume","enum":["volume","trades"],"type":"string"}},"most_actives_top":{"description":"The number of top most active stocks to fetch per day.","in":"query","name":"top","required":false,"schema":{"default":10,"format":"int32","maximum":100,"minimum":1,"type":"integer"}},"movers_market_type":{"description":"Screen-specific market (stocks or crypto).","in":"path","name":"market_type","required":true,"schema":{"$ref":"#/components/schemas/market_type"}},"movers_top":{"description":"Number of top market movers to fetch (gainers and losers). Will return this number of results for each. By default, 10 gainers and 10 losers.\n","in":"query","name":"top","required":false,"schema":{"default":10,"format":"int32","maximum":50,"minimum":1,"type":"integer"}},"news_sort":{"description":"Sort articles by updated date.","in":"query","name":"sort","schema":{"default":"desc","enum":["asc","desc"],"type":"string"}},"option_feed":{"description":"The source feed of the data. `opra` is the official OPRA feed, `indicative` is a free indicative feed where trades are delayed and quotes are modified. Default: `opra` if the user has a subscription, otherwise `indicative`.\n","in":"query","name":"feed","schema":{"$ref":"#/components/schemas/option_feed"}},"option_limit":{"description":"Number of maximum snapshots to return in a response.\nThe limit applies to the total number of data points, not the number per symbol!\nUse `next_page_token` to fetch the next set of responses.\n","in":"query","name":"limit","schema":{"default":100,"maximum":1000,"minimum":1,"type":"integer"}},"option_symbols":{"description":"A comma-separated list of contract symbols with a limit of 100.","example":"AAPL241220C00300000,AAPL240315C00225000","in":"query","name":"symbols","required":true,"schema":{"type":"string"}},"option_underlying_symbol":{"description":"The financial instrument on which an option contract is based or derived.","example":"AAPL","in":"path","name":"underlying_symbol","required":true,"schema":{"type":"string"}},"option_updated_since":{"description":"Filter to snapshots that were updated since this timestamp, meaning that the timestamp of the trade or the quote is greater than or equal to this value.\nFormat: RFC-3339 or YYYY-MM-DD. If missing, all values are returned.\n","in":"query","name":"updated_since","required":false,"schema":{"format":"date-time","type":"string"}},"page_token":{"description":"The pagination token from which to continue. The value to pass here is returned in specific requests when more data is available, usually because of a response result limit.\n","in":"query","name":"page_token","schema":{"type":"string"}},"sort":{"description":"Sort data in ascending or descending order.","in":"query","name":"sort","schema":{"$ref":"#/components/schemas/sort"}},"start":{"description":"The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD.\nDefault: the beginning of the current day, but at least 15 minutes ago if the user doesn't have real-time access for the feed.\n","examples":{"RFC-3339 nanosecond":{"summary":"RFC-3339 date-time with nanosecond accuracy","value":"2024-01-03T01:02:03.123456789Z"},"RFC-3339 second":{"summary":"RFC-3339 date-time with second accuracy","value":"2024-01-03T00:00:00Z"},"RFC-3339 with timezone":{"summary":"RFC-3339 date-time with time zone","value":"2024-01-03T09:30:00-04:00"},"date":{"summary":"Date","value":"2024-01-03"}},"in":"query","name":"start","required":false,"schema":{"format":"date-time","type":"string"}},"stock_adjustment":{"description":"Specifies the adjustments for the bars.\n\n - `raw`: no adjustments\n - `split`: adjust price and volume for forward and reverse stock splits\n - `dividend`: adjust price for cash dividends\n - `spin-off`: adjust price for spin-offs\n - `all`: apply all above adjustments\n\nYou can combine multiple adjustments by separating them with a comma, e.g. `split,spin-off`.\n","in":"query","name":"adjustment","schema":{"default":"raw","type":"string"}},"stock_asof":{"description":"The as-of date of the queried stock symbol(s). Format: YYYY-MM-DD. Default: current day.\n\nThis date is used to identify the underlying entity of the provided symbol(s), so that name changes for this entity can be found. Data for past symbol(s) is returned if the query date range spans the name change.\n\nThe special value of \"-\" means symbol mapping is skipped. Data is returned based on the symbol alone without looking up previous names. The same happens if the queried symbol is not found on the given `asof` date.\n\nExample: FB was renamed to META in 2022-06-09. Querying META with an `asof` date after 2022-06-09 will also yield FB data. The data for the FB ticker will be labeled as META because they are considered the same underlying entity as of 2022-06-09. Querying FB with an `asof` date after 2022-06-09 will only return data with the FB ticker, not with META. But with an `asof` date before 2022-06-09, META will also be returned (as FB).\n","in":"query","name":"asof","schema":{"type":"string"}},"stock_auction_feed":{"description":"Only `sip` is valid for auctions.","in":"query","name":"feed","schema":{"$ref":"#/components/schemas/stock_auction_feed"}},"stock_currency":{"description":"The currency of all prices in ISO 4217 format. Default: USD.\n","in":"query","name":"currency","schema":{"type":"string"}},"stock_historical_feed":{"description":"The source feed of the data.\n - `sip`: all US exchanges\n - `iex`: Investors EXchange\n - `boats`: Blue Ocean ATS, overnight US trading data\n - `otc`: over-the-counter exchanges\n","in":"query","name":"feed","schema":{"$ref":"#/components/schemas/stock_historical_feed"}},"stock_latest_feed":{"description":"The source feed of the data.\n\n - `sip`: all US exchanges\n - `iex`: Investors EXchange\n - `delayed_sip`: SIP with a 15 minute delay\n - `boats`: Blue Ocean, overnight US trading data\n - `overnight`: derived overnight US trading data\n - `otc`: over-the-counter exchanges\n\nDefault: `sip` if the user has the unlimited subscription, otherwise `iex`.\n","in":"query","name":"feed","schema":{"$ref":"#/components/schemas/stock_latest_feed"}},"stock_symbol":{"description":"The symbol to query.","example":"AAPL","in":"path","name":"symbol","required":true,"schema":{"type":"string"}},"stock_symbols":{"description":"A comma-separated list of stock symbols.","example":"AAPL,TSLA","in":"query","name":"symbols","required":true,"schema":{"type":"string"}},"symbol":{"description":"A unique series of letters assigned to a security for trading purposes.","example":"AAPL","in":"path","name":"symbol","required":true,"schema":{"type":"string"}},"timeframe":{"description":"The timeframe represented by each bar in aggregation.\nYou can use any of the following values:\n - `[1-59]Min` or `[1-59]T`, e.g. `5Min` or `5T` creates 5-minute aggregations\n - `[1-23]Hour` or `[1-23]H`, e.g. `12Hour` or `12H` creates 12-hour aggregations\n - `1Day` or `1D` creates 1-day aggregations\n - `1Week` or `1W` creates 1-week aggregations\n - `[1,2,3,4,6,12]Month` or `[1,2,3,4,6,12]M`, e.g. `3Month` or `3M` creates 3-month aggregations\n","example":"1Min","in":"query","name":"timeframe","required":true,"schema":{"type":"string"},"x-go-name":"TimeFrame"},"trade_size":{"description":"Filters to best bid/ask where the minimum trade size is less than or equal to the given numeric value. For any negative value the best bid/ask will be returned for the smallest trade size on either side.\n","in":"query","name":"trade_size","required":false,"schema":{"format":"int32","type":"integer"}}},"responses":{"400":{"description":"One of the request parameters is invalid. See the returned message for details.\n","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"401":{"description":"Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key.\n"},"403":{"description":"The requested resource is forbidden.\n"},"429":{"description":"Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit.\n","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"500":{"description":"Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/).\n"}},"schemas":{"ca_id":{"description":"The internal Alpaca identifier of the corporate action.","format":"uuid","type":"string"},"cash_dividend":{"description":"Cash dividend.","example":{"cusip":"319829107","ex_date":"2023-05-04","foreign":false,"id":"11cfd108-292e-4cc6-bfbf-5999cdbc4029","payable_date":"2023-05-19","process_date":"2023-05-19","rate":0.125,"record_date":"2023-05-05","special":false,"symbol":"FCF"},"properties":{"currency":{"$ref":"#/components/schemas/currency"},"cusip":{"type":"string"},"due_bill_off_date":{"format":"date","type":"string"},"due_bill_on_date":{"format":"date","type":"string"},"ex_date":{"$ref":"#/components/schemas/ex_date"},"foreign":{"type":"boolean"},"id":{"$ref":"#/components/schemas/ca_id"},"isin":{"$ref":"#/components/schemas/isin"},"payable_date":{"$ref":"#/components/schemas/payable_date"},"process_date":{"$ref":"#/components/schemas/process_date"},"rate":{"format":"double","type":"number"},"record_date":{"$ref":"#/components/schemas/record_date"},"special":{"type":"boolean"},"sub_type":{"description":"Sub-type of the cash dividend.","enum":["interest","return_of_capital"],"type":"string"},"symbol":{"type":"string"}},"required":["id","symbol","cusip","rate","special","foreign","process_date","ex_date"],"type":"object"},"cash_merger":{"description":"Cash merger.","example":{"acquiree_cusip":"Y2687W108","acquiree_symbol":"GLOP","effective_date":"2023-07-17","id":"3772bbd7-4ad5-44d4-9cc0-f69156a2f8f5","payable_date":"2023-07-17","process_date":"2023-07-17","rate":5.37},"properties":{"acquiree_cusip":{"type":"string"},"acquiree_isin":{"$ref":"#/components/schemas/isin"},"acquiree_symbol":{"type":"string"},"acquirer_cusip":{"type":"string"},"acquirer_isin":{"$ref":"#/components/schemas/isin"},"acquirer_symbol":{"type":"string"},"currency":{"$ref":"#/components/schemas/currency"},"effective_date":{"$ref":"#/components/schemas/effective_date"},"id":{"$ref":"#/components/schemas/ca_id"},"payable_date":{"$ref":"#/components/schemas/payable_date"},"process_date":{"$ref":"#/components/schemas/process_date"},"rate":{"format":"double","type":"number"}},"required":["id","acquiree_symbol","acquiree_cusip","rate","process_date","effective_date"],"type":"object"},"corporate_actions":{"properties":{"cash_dividends":{"items":{"$ref":"#/components/schemas/cash_dividend"},"type":"array","x-go-type-skip-optional-pointer":true},"cash_mergers":{"items":{"$ref":"#/components/schemas/cash_merger"},"type":"array","x-go-type-skip-optional-pointer":true},"forward_splits":{"items":{"$ref":"#/components/schemas/forward_split"},"type":"array","x-go-type-skip-optional-pointer":true},"name_changes":{"items":{"$ref":"#/components/schemas/name_change"},"type":"array","x-go-type-skip-optional-pointer":true},"partial_calls":{"items":{"$ref":"#/components/schemas/partial_call"},"type":"array","x-go-type-skip-optional-pointer":true},"redemptions":{"items":{"$ref":"#/components/schemas/redemption"},"type":"array","x-go-type-skip-optional-pointer":true},"reorganizations":{"items":{"$ref":"#/components/schemas/reorganization"},"type":"array","x-go-type-skip-optional-pointer":true},"reverse_splits":{"items":{"$ref":"#/components/schemas/reverse_split"},"type":"array","x-go-type-skip-optional-pointer":true},"rights_distributions":{"items":{"$ref":"#/components/schemas/rights_distribution"},"type":"array","x-go-type-skip-optional-pointer":true},"spin_offs":{"items":{"$ref":"#/components/schemas/spin_off"},"type":"array","x-go-type-skip-optional-pointer":true},"stock_and_cash_mergers":{"items":{"$ref":"#/components/schemas/stock_and_cash_merger"},"type":"array","x-go-type-skip-optional-pointer":true},"stock_dividends":{"items":{"$ref":"#/components/schemas/stock_dividend"},"type":"array","x-go-type-skip-optional-pointer":true},"stock_mergers":{"items":{"$ref":"#/components/schemas/stock_merger"},"type":"array","x-go-type-skip-optional-pointer":true},"unit_splits":{"items":{"$ref":"#/components/schemas/unit_split"},"type":"array","x-go-type-skip-optional-pointer":true},"worthless_removals":{"items":{"$ref":"#/components/schemas/worthless_removal"},"type":"array","x-go-type-skip-optional-pointer":true}},"type":"object"},"corporate_actions_resp":{"properties":{"corporate_actions":{"$ref":"#/components/schemas/corporate_actions"},"next_page_token":{"$ref":"#/components/schemas/next_page_token"}},"required":["corporate_actions","next_page_token"],"type":"object"},"crypto_bar":{"description":"OHLC aggregate of all the trades in a given interval.","example":{"c":29003,"h":29003,"l":28999,"n":4,"o":28999,"t":"2022-05-27T10:18:00Z","v":0.01,"vw":29001},"properties":{"c":{"description":"Closing price.","format":"double","type":"number","x-go-name":"Close"},"h":{"description":"High price.","format":"double","type":"number","x-go-name":"High"},"l":{"description":"Low price.","format":"double","type":"number","x-go-name":"Low"},"n":{"description":"Trade count in the bar.","format":"int64","type":"integer","x-go-name":"TradeCount"},"o":{"description":"Opening price.","format":"double","type":"number","x-go-name":"Open"},"t":{"$ref":"#/components/schemas/timestamp"},"v":{"description":"Bar volume.","format":"double","type":"number","x-go-name":"Volume"},"vw":{"description":"Volume weighted average price.","format":"double","type":"number","x-go-name":"VWAP"}},"required":["t","o","h","l","c","v","n","vw"],"type":"object"},"crypto_bars_resp":{"properties":{"bars":{"additionalProperties":{"items":{"$ref":"#/components/schemas/crypto_bar"},"type":"array"},"type":"object"},"next_page_token":{"$ref":"#/components/schemas/next_page_token"}},"required":["bars","next_page_token"],"type":"object"},"crypto_historical_loc":{"description":"Crypto location from where the historical market data is retrieved.","enum":["us","us-1","us-2","eu-1","bs-1"],"type":"string","x-go-name":"TypeHistoricalLoc"},"crypto_latest_bars_resp":{"properties":{"bars":{"additionalProperties":{"$ref":"#/components/schemas/crypto_bar"},"type":"object"}},"required":["bars"],"type":"object"},"crypto_latest_loc":{"description":"Crypto location from where the latest market data is retrieved.","enum":["us","us-1","us-2","eu-1","bs-1"],"type":"string","x-go-name":"TypeLatestLoc"},"crypto_latest_orderbooks_resp":{"properties":{"orderbooks":{"additionalProperties":{"$ref":"#/components/schemas/crypto_orderbook"},"type":"object"}},"required":["orderbooks"],"type":"object"},"crypto_latest_quotes_resp":{"properties":{"quotes":{"additionalProperties":{"$ref":"#/components/schemas/crypto_quote"},"type":"object"}},"required":["quotes"],"type":"object"},"crypto_latest_trades_resp":{"properties":{"trades":{"additionalProperties":{"$ref":"#/components/schemas/crypto_trade"},"type":"object"}},"required":["trades"],"type":"object"},"crypto_orderbook":{"description":"Snapshot of the orderbook.","example":{"a":[{"p":20902,"s":0.0097},{"p":21444,"s":0}],"b":[{"p":20846,"s":0.1902},{"p":20350,"s":0}],"t":"2022-06-24T08:00:14.137774336Z"},"properties":{"a":{"items":{"$ref":"#/components/schemas/crypto_orderbook_entry"},"type":"array","x-go-name":"Asks"},"b":{"items":{"$ref":"#/components/schemas/crypto_orderbook_entry"},"type":"array","x-go-name":"Bids"},"t":{"$ref":"#/components/schemas/timestamp"}},"required":["t","b","a"],"type":"object"},"crypto_orderbook_entry":{"description":"A single entry in a crypto orderbook.","example":{"p":20846,"s":0.1902},"properties":{"p":{"description":"Price.","format":"double","type":"number","x-go-name":"Price"},"s":{"description":"Size.","format":"double","type":"number","x-go-name":"Size"}},"required":["p","s"],"type":"object"},"crypto_perp_futures_pricing":{"description":"Crypto perpetual futures pricing data.","example":{"fr":0.000565699,"ft":"2022-05-27T10:18:00Z","ip":50702.8,"mp":50652.3553,"oi":90.7367,"t":"2022-05-27T10:18:00Z"},"properties":{"fr":{"description":"Funding rate.","format":"double","type":"number","x-go-name":"FundingRate"},"ft":{"description":"Next funding time","format":"date-time","type":"string","x-go-name":"NextFundingTime"},"ip":{"description":"Index price.","format":"double","type":"number","x-go-name":"IndexPrice"},"mp":{"description":"Mark price.","format":"double","type":"number","x-go-name":"MarkPrice"},"oi":{"description":"Open interest.","format":"double","type":"number","x-go-name":"OpenInterest"},"t":{"$ref":"#/components/schemas/timestamp"}},"required":["t","ft","oi","ip","mp","fr"],"type":"object"},"crypto_perp_latest_futures_pricing_resp":{"properties":{"pricing":{"additionalProperties":{"$ref":"#/components/schemas/crypto_perp_futures_pricing"},"type":"object"}},"required":["pricing"],"type":"object"},"crypto_perp_loc":{"description":"Crypto perpetual location.","enum":["global"],"type":"string","x-go-name":"TypePerpLoc"},"crypto_quote":{"description":"The best bid and ask information for a given security.","example":{"ap":29059,"as":3.252,"bp":29058,"bs":0.3544,"t":"2022-05-26T11:47:18.44347136Z"},"properties":{"ap":{"description":"Ask price.","format":"double","type":"number","x-go-name":"AskPrice"},"as":{"description":"Ask size.","format":"double","type":"number","x-go-name":"AskSize"},"bp":{"description":"Bid price.","format":"double","type":"number","x-go-name":"BidPrice"},"bs":{"description":"Bid size.","format":"double","type":"number","x-go-name":"BidSize"},"t":{"$ref":"#/components/schemas/timestamp"}},"required":["t","bp","bs","ap","as"],"type":"object"},"crypto_quotes_resp":{"properties":{"next_page_token":{"$ref":"#/components/schemas/next_page_token"},"quotes":{"additionalProperties":{"items":{"$ref":"#/components/schemas/crypto_quote"},"type":"array"},"type":"object"}},"required":["quotes","next_page_token"],"type":"object"},"crypto_snapshot":{"description":"A snapshot provides the latest trade, latest quote, latest minute bar, latest daily bar and previous daily bar.\n","properties":{"dailyBar":{"$ref":"#/components/schemas/crypto_bar"},"latestQuote":{"$ref":"#/components/schemas/crypto_quote"},"latestTrade":{"$ref":"#/components/schemas/crypto_trade"},"minuteBar":{"$ref":"#/components/schemas/crypto_bar"},"prevDailyBar":{"$ref":"#/components/schemas/crypto_bar"}},"type":"object"},"crypto_snapshots_resp":{"properties":{"snapshots":{"additionalProperties":{"$ref":"#/components/schemas/crypto_snapshot"},"type":"object"}},"required":["snapshots"],"type":"object"},"crypto_trade":{"description":"A crypto trade.","example":{"i":31455277,"p":29798,"s":0.1209,"t":"2022-05-18T12:00:05.225055Z","tks":"S"},"properties":{"i":{"description":"Trade ID.","format":"int64","type":"integer","x-go-name":"ID"},"p":{"description":"Trade price.","format":"double","type":"number","x-go-name":"Price"},"s":{"description":"Trade size.","format":"double","type":"number","x-go-name":"Size"},"t":{"$ref":"#/components/schemas/timestamp"},"tks":{"description":"Taker side: B for buyer, S for seller\n","type":"string","x-go-name":"TakerSide"}},"required":["t","p","s","i","tks"],"type":"object"},"crypto_trades_resp":{"properties":{"next_page_token":{"$ref":"#/components/schemas/next_page_token"},"trades":{"additionalProperties":{"items":{"$ref":"#/components/schemas/crypto_trade"},"type":"array"},"type":"object"}},"required":["trades","next_page_token"],"type":"object"},"currency":{"description":"The ISO 4217 currency code associated with the corporate action.\nEmpty value can mean USD, non-applicable (e.g. for name changes) or unknown\n(can change later to a valid currency).\n","type":"string"},"date":{"description":"Date in RFC-3339.","format":"date","type":"string","x-go-name":"Date"},"due_bill_redemption_date":{"description":"The date when due bill obligations are redeemed.","format":"date","type":"string"},"effective_date":{"description":"The effective date marks the cutoff point for shareholders to be credited.","format":"date","type":"string"},"ex_date":{"description":"The ex-date marks the cutoff point for shareholders to be credited.","format":"date","type":"string"},"expiration_date":{"format":"date","type":"string"},"fixed_income_latest_prices_resp":{"properties":{"prices":{"additionalProperties":{"$ref":"#/components/schemas/fixed_income_price"},"type":"object"}},"required":["prices"],"type":"object"},"fixed_income_latest_quotes_resp":{"properties":{"quotes":{"additionalProperties":{"$ref":"#/components/schemas/fixed_income_quote"},"type":"object"}},"required":["quotes"],"type":"object"},"fixed_income_price":{"description":"The price of the instrument as a percentage of its par value.","example":{"p":99.6459,"t":"2025-02-14T20:58:00.648Z","ytm":4.249,"ytw":4.249},"properties":{"p":{"description":"Price","format":"double","type":"number","x-go-name":"Price"},"t":{"$ref":"#/components/schemas/timestamp"},"ytm":{"description":"Yield to maturity.","format":"double","type":"number","x-go-name":"YieldToMaturity"},"ytw":{"description":"Yield to worst.","format":"double","type":"number","x-go-name":"YieldToWorst"}},"required":["t","p"],"type":"object"},"fixed_income_quote":{"description":"The best bid and ask information for a given fixed income security. A value of 0 means there is no active bid or ask for that field.\n","example":{"ams":1000,"ap":99.91958333,"as":1000000,"aytm":2.226923,"aytw":2.226923,"bms":1000,"bp":99.81091667,"bs":1000000,"bytm":5.236154,"bytw":5.236154,"t":"2026-05-21T06:56:01.882466873Z"},"properties":{"ams":{"description":"Best ask minimum trade size in par value.","format":"int64","type":"integer","x-go-name":"AskMinTradeSize"},"ap":{"description":"Best ask price. 0 means there is no active ask.","format":"double","type":"number","x-go-name":"AskPrice"},"as":{"description":"Best ask size in par value. 0 means there is no active ask.","format":"int64","type":"integer","x-go-name":"AskSize"},"aytm":{"description":"Best ask yield to maturity.","format":"double","type":"number","x-go-name":"AskYieldToMaturity"},"aytw":{"description":"Best ask yield to worst.","format":"double","type":"number","x-go-name":"AskYieldToWorst"},"bms":{"description":"Best bid minimum trade size in par value.","format":"int64","type":"integer","x-go-name":"BidMinTradeSize"},"bp":{"description":"Best bid price. 0 means there is no active bid.","format":"double","type":"number","x-go-name":"BidPrice"},"bs":{"description":"Best bid size in par value. 0 means there is no active bid.","format":"int64","type":"integer","x-go-name":"BidSize"},"bytm":{"description":"Best bid yield to maturity.","format":"double","type":"number","x-go-name":"BidYieldToMaturity"},"bytw":{"description":"Best bid yield to worst.","format":"double","type":"number","x-go-name":"BidYieldToWorst"},"t":{"$ref":"#/components/schemas/timestamp"}},"required":["t","bp","bs","bms","bytm","bytw","ap","as","ams","aytm","aytw"],"type":"object"},"forex_currency_pairs":{"description":"A comma-separated string with currency pairs.","example":"USDJPY,USDMXN","type":"string","x-go-name":"TypeCurrencyPairs"},"forex_latest_rates_resp":{"description":"The response object of the latest forex rates.","properties":{"rates":{"additionalProperties":{"$ref":"#/components/schemas/forex_rate"},"type":"object"}},"required":["rates"],"type":"object"},"forex_rate":{"description":"A foreign exchange rate between two currencies at a given time.","example":{"ap":127.763,"bp":127.702,"mp":127.757,"t":"2022-04-20T18:23:00Z"},"properties":{"ap":{"description":"The last ask price value of the currency at the end of the timeframe.","format":"double","type":"number","x-go-name":"AskPrice"},"bp":{"description":"The last bid price value of the currency at the end of the timeframe.","format":"double","type":"number","x-go-name":"BidPrice"},"mp":{"description":"The last mid price value of the currency at the end of the timeframe.","format":"double","type":"number","x-go-name":"MidPrice"},"t":{"description":"Timestamp of the rate.","format":"date-time","type":"string","x-go-name":"Timestamp"}},"required":["bp","mp","ap","t"],"type":"object"},"forex_rates_resp":{"properties":{"next_page_token":{"$ref":"#/components/schemas/next_page_token"},"rates":{"additionalProperties":{"items":{"$ref":"#/components/schemas/forex_rate"},"type":"array"},"type":"object"}},"required":["rates","next_page_token"],"type":"object"},"forex_timeframe":{"default":"1Min","description":"The sampling interval of the currency rates. For example, 5S returns forex rates sampled every five seconds.\nYou can use the following values:\n - `5Sec` or `5S`\n - `1Min` or `1T`\n - `1Day` or `1D`\n","type":"string"},"forward_split":{"description":"Forward split.","example":{"cusip":"816851109","due_bill_redemption_date":"2023-08-23","ex_date":"2023-08-22","id":"189bd849-ab9f-4b4d-aaaa-a6d415fd976d","new_rate":2,"old_rate":1,"payable_date":"2023-08-21","process_date":"2023-08-22","record_date":"2023-08-14","symbol":"SRE"},"properties":{"currency":{"$ref":"#/components/schemas/currency"},"cusip":{"type":"string"},"due_bill_redemption_date":{"$ref":"#/components/schemas/due_bill_redemption_date"},"ex_date":{"$ref":"#/components/schemas/ex_date"},"id":{"$ref":"#/components/schemas/ca_id"},"isin":{"$ref":"#/components/schemas/isin"},"new_rate":{"format":"double","type":"number"},"old_rate":{"format":"double","type":"number"},"payable_date":{"$ref":"#/components/schemas/payable_date"},"process_date":{"$ref":"#/components/schemas/process_date"},"record_date":{"$ref":"#/components/schemas/record_date"},"symbol":{"type":"string"}},"required":["id","symbol","cusip","new_rate","old_rate","process_date","ex_date"],"type":"object"},"index_latest_values_resp":{"description":"The response object of the latest index values.","properties":{"values":{"additionalProperties":{"$ref":"#/components/schemas/index_value"},"type":"object"}},"required":["values"],"type":"object"},"index_value":{"description":"The value of an index at a given point in time.","example":{"t":"2026-05-18T17:00:02.0256Z","v":7383.46},"properties":{"t":{"$ref":"#/components/schemas/timestamp"},"v":{"description":"Index value.","format":"double","type":"number","x-go-name":"Value"}},"required":["t","v"],"type":"object"},"index_values_resp":{"properties":{"next_page_token":{"$ref":"#/components/schemas/next_page_token"},"values":{"additionalProperties":{"items":{"$ref":"#/components/schemas/index_value"},"type":"array"},"type":"object"}},"required":["values","next_page_token"],"type":"object"},"isin":{"description":"International Securities Identification Number (ISIN) as defined by ISO 6166.\nMay be empty for US corporate actions.\n","type":"string"},"market_type":{"description":"Market type (stocks or crypto).","enum":["stocks","crypto"],"type":"string"},"most_active":{"description":"A stock that is most active by either volume or trade count.","example":{"symbol":"AAPL","trade_count":639626,"volume":122709184},"properties":{"symbol":{"type":"string"},"trade_count":{"description":"Cumulative trade count for the current trading day.","format":"int64","type":"integer"},"volume":{"description":"Cumulative volume for the current trading day.","format":"int64","type":"integer"}},"required":["symbol","volume","trade_count"],"type":"object"},"most_actives_resp":{"properties":{"last_updated":{"description":"Time when the most actives were last computed. Formatted as a RFC-3339 date-time with nanosecond precision.\n","type":"string"},"most_actives":{"description":"List of top N most active symbols.","items":{"$ref":"#/components/schemas/most_active"},"type":"array"}},"required":["most_actives","last_updated"],"type":"object"},"mover":{"description":"A symbol whose price moved significantly.","example":{"change":2.46,"percent_change":145.56,"price":4.15,"symbol":"AGRI"},"properties":{"change":{"description":"Difference in change for the day.","format":"double","type":"number"},"percent_change":{"description":"Percentage difference change for the day.","format":"double","type":"number"},"price":{"description":"Current price of market moving asset.","format":"double","type":"number"},"symbol":{"description":"Symbol of market moving asset.","type":"string"}},"required":["symbol","percent_change","change","price"],"title":"Mover","type":"object"},"movers_resp":{"description":"Contains list of market movers.","properties":{"gainers":{"description":"List of top N gainers.","items":{"$ref":"#/components/schemas/mover"},"type":"array"},"last_updated":{"description":"Time when the movers were last computed. Formatted as a RFC-3339 date-time with nanosecond precision.\n","type":"string"},"losers":{"description":"List of top N losers.","items":{"$ref":"#/components/schemas/mover"},"type":"array"},"market_type":{"$ref":"#/components/schemas/market_type"}},"required":["gainers","losers","market_type","last_updated"],"type":"object"},"name_change":{"description":"Name change.","example":{"id":"5a774c35-edec-4532-a812-a56d0bbb623a","new_cusip":"Y9390M103","new_symbol":"VFS","old_cusip":"G11537100","old_symbol":"BSAQ","process_date":"2023-08-15"},"properties":{"currency":{"$ref":"#/components/schemas/currency"},"id":{"$ref":"#/components/schemas/ca_id"},"new_cusip":{"type":"string"},"new_isin":{"$ref":"#/components/schemas/isin"},"new_symbol":{"type":"string"},"old_cusip":{"type":"string"},"old_isin":{"$ref":"#/components/schemas/isin"},"old_symbol":{"type":"string"},"process_date":{"$ref":"#/components/schemas/process_date"}},"required":["id","old_symbol","old_cusip","new_symbol","new_cusip","process_date"],"type":"object"},"news":{"description":"Model representing a news article.","properties":{"author":{"description":"Original author of news article.","minLength":1,"type":"string"},"content":{"description":"Content of the news article (might contain HTML).","minLength":1,"type":"string"},"created_at":{"description":"Date article was created (RFC-3339).","format":"date-time","type":"string"},"headline":{"description":"Headline or title of the article.","minLength":1,"type":"string"},"id":{"description":"News article ID.","format":"int64","type":"integer"},"images":{"description":"List of images (URLs) related to given article (may be empty).","items":{"$ref":"#/components/schemas/news_image"},"type":"array","uniqueItems":true},"source":{"description":"Source where the news originated from (e.g. Benzinga).","minLength":1,"type":"string"},"summary":{"description":"Summary text for the article (may be first sentence of content).","minLength":1,"type":"string"},"symbols":{"description":"List of related or mentioned symbols.","items":{"type":"string"},"type":"array"},"updated_at":{"description":"Date article was updated (RFC-3339).","format":"date-time","type":"string"},"url":{"description":"URL of article (if applicable).","format":"uri","nullable":true,"type":"string"}},"required":["id","headline","author","created_at","updated_at","summary","content","images","symbols","source"],"type":"object"},"news_image":{"description":"A model representing images for a news article. Simply a URL to the image along with a size parameter suggesting the display size of the image.","properties":{"size":{"description":"Possible values for size are thumb, small and large.","enum":["thumb","small","large"],"example":"thumb","minLength":1,"type":"string"},"url":{"description":"URL to image from news article.","format":"uri","minLength":1,"type":"string"}},"required":["size","url"],"type":"object"},"news_resp":{"properties":{"news":{"items":{"$ref":"#/components/schemas/news"},"type":"array"},"next_page_token":{"$ref":"#/components/schemas/next_page_token"}},"required":["news","next_page_token"],"type":"object"},"next_page_token":{"description":"Pagination token for the next page.","nullable":true,"type":"string"},"option_bar":{"description":"OHLC aggregate of all the trades in a given interval.","example":{"c":0.23,"h":0.28,"l":0.23,"n":26,"o":0.28,"t":"2024-01-18T05:00:00Z","v":224,"vw":0.245045},"properties":{"c":{"description":"Closing price.","format":"double","type":"number","x-go-name":"Close"},"h":{"description":"High price.","format":"double","type":"number","x-go-name":"High"},"l":{"description":"Low price.","format":"double","type":"number","x-go-name":"Low"},"n":{"description":"Trade count in the bar.","format":"int64","type":"integer","x-go-name":"TradeCount"},"o":{"description":"Opening price.","format":"double","type":"number","x-go-name":"Open"},"t":{"$ref":"#/components/schemas/timestamp"},"v":{"description":"Bar volume.","format":"int64","type":"integer","x-go-name":"Volume"},"vw":{"description":"Volume weighted average price.","format":"double","type":"number","x-go-name":"VWAP"}},"required":["t","o","h","l","c","v","n","vw"],"type":"object"},"option_bars_resp":{"properties":{"bars":{"additionalProperties":{"items":{"$ref":"#/components/schemas/option_bar"},"type":"array"},"type":"object"},"currency":{"type":"string"},"next_page_token":{"$ref":"#/components/schemas/next_page_token"}},"required":["bars","next_page_token"],"type":"object"},"option_conditions":{"additionalProperties":{"type":"string"},"example":{"a":"SLAN - Single Leg Auction Non ISO","e":"SLFT - Single Leg Floor Trade","g":"MLAT - Multi Leg Auction"},"type":"object"},"option_exchanges":{"additionalProperties":{"type":"string"},"example":{"A":"NYSE American Options","Q":"Nasdaq Options"},"type":"object"},"option_feed":{"default":"opra","enum":["opra","indicative"],"type":"string"},"option_greeks":{"description":"The greeks for the contract calculated using the Black-Scholes model.","properties":{"delta":{"format":"double","type":"number"},"gamma":{"format":"double","type":"number"},"rho":{"format":"double","type":"number"},"theta":{"format":"double","type":"number"},"vega":{"format":"double","type":"number"}},"required":["delta","gamma","theta","vega","rho"],"type":"object"},"option_latest_quotes_resp":{"properties":{"quotes":{"additionalProperties":{"$ref":"#/components/schemas/option_quote"},"type":"object"}},"required":["quotes"],"type":"object"},"option_latest_trades_resp":{"properties":{"trades":{"additionalProperties":{"$ref":"#/components/schemas/option_trade"},"type":"object"}},"required":["trades"],"type":"object"},"option_quote":{"description":"The best bid and ask information for a given option.\n","example":{"ap":0.16,"as":669,"ax":"w","bp":0.15,"bs":164,"bx":"W","c":"A","t":"2024-02-28T15:30:28.046330624Z"},"properties":{"ap":{"description":"Ask price.","format":"double","type":"number","x-go-name":"AskPrice"},"as":{"description":"Ask size.","format":"uint32","type":"integer","x-go-name":"AskSize"},"ax":{"description":"Ask exchange.","type":"string","x-go-name":"AskExchange"},"bp":{"description":"Bid price.","format":"double","type":"number","x-go-name":"BidPrice"},"bs":{"description":"Bid size.","format":"uint32","type":"integer","x-go-name":"BidSize"},"bx":{"description":"Bid exchange.","type":"string","x-go-name":"BidExchange"},"c":{"description":"Quote condition.","type":"string","x-go-name":"Condition"},"t":{"$ref":"#/components/schemas/timestamp"}},"required":["t","bx","bp","bs","ap","as","ax","c"],"type":"object"},"option_snapshot":{"description":"A snapshot provides the latest trade and latest quote.","properties":{"dailyBar":{"$ref":"#/components/schemas/option_bar"},"greeks":{"$ref":"#/components/schemas/option_greeks"},"impliedVolatility":{"description":"Implied volatility calculated using the Black-Scholes model.","format":"double","type":"number"},"latestQuote":{"$ref":"#/components/schemas/option_quote"},"latestTrade":{"$ref":"#/components/schemas/option_trade"},"minuteBar":{"$ref":"#/components/schemas/option_bar"},"prevDailyBar":{"$ref":"#/components/schemas/option_bar"}},"type":"object"},"option_snapshots_resp":{"properties":{"next_page_token":{"$ref":"#/components/schemas/next_page_token"},"snapshots":{"additionalProperties":{"$ref":"#/components/schemas/option_snapshot"},"type":"object"}},"required":["snapshots","next_page_token"],"type":"object"},"option_trade":{"description":"An option trade.","example":{"c":"I","p":0.37,"s":1,"t":"2024-01-18T15:03:44.56339456Z","x":"B"},"properties":{"c":{"description":"Trade condition.","type":"string","x-go-name":"Condition"},"p":{"description":"Trade price.","format":"double","type":"number","x-go-name":"Price"},"s":{"description":"Trade size.","format":"uint32","type":"integer","x-go-name":"Size"},"t":{"$ref":"#/components/schemas/timestamp"},"x":{"type":"string","x-go-name":"Exchange"}},"required":["t","x","p","s","c"],"type":"object"},"option_trades_resp":{"properties":{"currency":{"type":"string"},"next_page_token":{"$ref":"#/components/schemas/next_page_token"},"trades":{"additionalProperties":{"items":{"$ref":"#/components/schemas/option_trade"},"type":"array"},"type":"object"}},"required":["trades","next_page_token"],"type":"object"},"partial_call":{"description":"Partial call.","properties":{"currency":{"$ref":"#/components/schemas/currency"},"cusip":{"type":"string"},"dividend_rate":{"format":"double","type":"number"},"id":{"$ref":"#/components/schemas/ca_id"},"isin":{"$ref":"#/components/schemas/isin"},"lottery_date":{"format":"date","type":"string"},"lottery_type":{"description":"The type of lottery for the partial call.","enum":["original","supplemental"],"type":"string"},"payable_date":{"$ref":"#/components/schemas/payable_date"},"price":{"format":"double","type":"number"},"process_date":{"$ref":"#/components/schemas/process_date"},"record_date":{"$ref":"#/components/schemas/record_date"},"results_publication_date":{"format":"date","type":"string"},"symbol":{"type":"string"}},"required":["id","symbol","process_date"],"type":"object"},"payable_date":{"description":"The date when the corporate action benefit is paid or distributed.","format":"date","type":"string"},"process_date":{"description":"The date when the corporate action is processed by Alpaca.","format":"date","type":"string"},"record_date":{"description":"The date shareholders must own shares to receive the benefit.","format":"date","type":"string"},"redemption":{"description":"Redemption.","example":{"cusip":"687305102","id":"395da031-0e57-4918-a6fb-64a7c713aca4","payable_date":"2023-06-13","process_date":"2023-06-13","rate":0.141134,"symbol":"ORPHY"},"properties":{"currency":{"$ref":"#/components/schemas/currency"},"cusip":{"type":"string"},"id":{"$ref":"#/components/schemas/ca_id"},"isin":{"$ref":"#/components/schemas/isin"},"payable_date":{"$ref":"#/components/schemas/payable_date"},"process_date":{"$ref":"#/components/schemas/process_date"},"rate":{"format":"double","type":"number"},"symbol":{"type":"string"}},"required":["id","symbol","cusip","rate","process_date"],"type":"object"},"region":{"default":"us","description":"The region to filter corporate actions by.\n\n- `us`: only US corporate actions\n- `non_us`: only non-US corporate actions\n- `all`: both US and non-US corporate actions\n","enum":["us","non_us","all"],"type":"string","x-go-name":"Region"},"reorganization":{"description":"Reorganization (cash and/or multiple stock allocations).","properties":{"cash_rate":{"format":"double","type":"number"},"currency":{"$ref":"#/components/schemas/currency"},"cusip":{"type":"string"},"effective_date":{"$ref":"#/components/schemas/effective_date"},"id":{"$ref":"#/components/schemas/ca_id"},"isin":{"type":"string"},"payable_date":{"$ref":"#/components/schemas/payable_date"},"process_date":{"$ref":"#/components/schemas/process_date"},"stock_movements":{"items":{"$ref":"#/components/schemas/reorganization_stock_movement"},"type":"array"},"symbol":{"type":"string"}},"required":["id","symbol","cusip","process_date","effective_date"],"type":"object"},"reorganization_stock_movement":{"description":"A stock allocation leg in a reorganization.","properties":{"cusip":{"type":"string"},"isin":{"type":"string"},"new_rate":{"format":"double","type":"number"},"source_rate":{"format":"double","type":"number"},"symbol":{"type":"string"}},"required":["symbol","cusip","new_rate","source_rate"],"type":"object"},"reverse_split":{"description":"Reverse split.","example":{"ex_date":"2023-08-24","id":"913de862-c02c-46dc-a89c-fc8779a50d30","new_cusip":"60879E200","new_rate":1,"old_cusip":"60879E101","old_rate":50,"process_date":"2023-08-24","record_date":"2023-08-24","symbol":"MNTS"},"properties":{"currency":{"$ref":"#/components/schemas/currency"},"ex_date":{"$ref":"#/components/schemas/ex_date"},"id":{"$ref":"#/components/schemas/ca_id"},"new_cusip":{"type":"string"},"new_isin":{"$ref":"#/components/schemas/isin"},"new_rate":{"format":"double","type":"number"},"old_cusip":{"type":"string"},"old_isin":{"$ref":"#/components/schemas/isin"},"old_rate":{"format":"double","type":"number"},"payable_date":{"$ref":"#/components/schemas/payable_date"},"process_date":{"$ref":"#/components/schemas/process_date"},"record_date":{"$ref":"#/components/schemas/record_date"},"symbol":{"type":"string"}},"required":["id","symbol","old_cusip","new_cusip","new_rate","old_rate","process_date","ex_date"],"type":"object"},"rights_distribution":{"description":"Rights distribution.","example":{"ex_date":"2024-04-17","expiration_date":"2024-05-14","id":"69794cfd-0adc-4e11-9211-9210a9cf8932","new_cusip":"454089111","new_symbol":"IFN.RTWI","payable_date":"2024-04-19","process_date":"2024-04-19","rate":1,"record_date":"2024-04-18","source_cusip":"454089103","source_symbol":"IFN"},"properties":{"currency":{"$ref":"#/components/schemas/currency"},"ex_date":{"$ref":"#/components/schemas/ex_date"},"expiration_date":{"$ref":"#/components/schemas/expiration_date"},"id":{"$ref":"#/components/schemas/ca_id"},"new_cusip":{"type":"string"},"new_isin":{"$ref":"#/components/schemas/isin"},"new_symbol":{"type":"string"},"payable_date":{"$ref":"#/components/schemas/payable_date"},"process_date":{"$ref":"#/components/schemas/process_date"},"rate":{"format":"double","type":"number"},"record_date":{"$ref":"#/components/schemas/record_date"},"source_cusip":{"type":"string"},"source_isin":{"$ref":"#/components/schemas/isin"},"source_symbol":{"type":"string"}},"required":["id","source_symbol","source_cusip","new_symbol","new_cusip","rate","process_date","ex_date","payable_date"],"type":"object"},"sort":{"default":"asc","description":"Sort data in ascending or descending order.","enum":["asc","desc"],"type":"string","x-go-name":"TypeSort"},"spin_off":{"description":"Spin-off.","example":{"ex_date":"2023-08-15","id":"82e602f6-35bc-4651-a5dd-f6d88ff37c55","new_cusip":"85237B101","new_rate":1,"new_symbol":"SRM","process_date":"2023-08-15","record_date":"2023-08-15","source_cusip":"48208F105","source_rate":19.35,"source_symbol":"JUPW"},"properties":{"currency":{"$ref":"#/components/schemas/currency"},"due_bill_redemption_date":{"$ref":"#/components/schemas/due_bill_redemption_date"},"ex_date":{"$ref":"#/components/schemas/ex_date"},"id":{"$ref":"#/components/schemas/ca_id"},"new_cusip":{"type":"string"},"new_isin":{"$ref":"#/components/schemas/isin"},"new_rate":{"format":"double","type":"number"},"new_symbol":{"type":"string"},"payable_date":{"$ref":"#/components/schemas/payable_date"},"process_date":{"$ref":"#/components/schemas/process_date"},"record_date":{"$ref":"#/components/schemas/record_date"},"source_cusip":{"type":"string"},"source_isin":{"$ref":"#/components/schemas/isin"},"source_rate":{"format":"double","type":"number"},"source_symbol":{"type":"string"}},"required":["id","source_symbol","source_cusip","source_rate","new_symbol","new_cusip","new_rate","process_date","ex_date"],"type":"object"},"stock_and_cash_merger":{"description":"Stock and cash merger.","example":{"acquiree_cusip":"561409103","acquiree_rate":1,"acquiree_symbol":"MLVF","acquirer_cusip":"31931U102","acquirer_rate":0.7733,"acquirer_symbol":"FRBA","cash_rate":7.8,"effective_date":"2023-07-18","id":"e5248356-2c06-42cf-aeb9-1595bd616cdb","payable_date":"2023-07-18","process_date":"2023-07-18"},"properties":{"acquiree_cusip":{"type":"string"},"acquiree_isin":{"$ref":"#/components/schemas/isin"},"acquiree_rate":{"format":"double","type":"number"},"acquiree_symbol":{"type":"string"},"acquirer_cusip":{"type":"string"},"acquirer_isin":{"$ref":"#/components/schemas/isin"},"acquirer_rate":{"format":"double","type":"number"},"acquirer_symbol":{"type":"string"},"cash_rate":{"format":"double","type":"number"},"currency":{"$ref":"#/components/schemas/currency"},"effective_date":{"$ref":"#/components/schemas/effective_date"},"id":{"$ref":"#/components/schemas/ca_id"},"payable_date":{"$ref":"#/components/schemas/payable_date"},"process_date":{"$ref":"#/components/schemas/process_date"}},"required":["id","acquirer_symbol","acquirer_cusip","acquirer_rate","acquiree_symbol","acquiree_cusip","acquiree_rate","cash_rate","process_date","effective_date"],"type":"object"},"stock_auction":{"description":"An auction\n","example":{"c":"O","p":135,"t":"2022-10-13T13:30:01.688322951Z","x":"Q"},"properties":{"c":{"description":"The condition flag indicating that this is an auction. See `v2/stocks/meta/conditions/trade` for more details.\n","type":"string","x-go-name":"Condition"},"p":{"description":"Auction price.","format":"double","type":"number","x-go-name":"Price"},"s":{"description":"Auction trade size.","format":"int64","type":"integer","x-go-name":"Size"},"t":{"$ref":"#/components/schemas/timestamp"},"x":{"description":"Exchange code. See `v2/stocks/meta/exchanges` for more details.","type":"string"}},"required":["t","x","p","c"],"type":"object"},"stock_auction_feed":{"default":"sip","type":"string"},"stock_auctions_resp":{"properties":{"auctions":{"additionalProperties":{"items":{"$ref":"#/components/schemas/stock_daily_auctions"},"type":"array"},"type":"object"},"currency":{"type":"string"},"next_page_token":{"$ref":"#/components/schemas/next_page_token"}},"required":["auctions","next_page_token"],"type":"object"},"stock_auctions_resp_single":{"properties":{"auctions":{"items":{"$ref":"#/components/schemas/stock_daily_auctions"},"type":"array"},"currency":{"type":"string"},"next_page_token":{"$ref":"#/components/schemas/next_page_token"},"symbol":{"type":"string"}},"required":["auctions","next_page_token","symbol"],"type":"object"},"stock_bar":{"description":"OHLC aggregate of all the trades in a given interval.\n","example":{"c":178.08,"h":178.34,"l":177.76,"n":1727,"o":178.26,"t":"2022-01-03T09:00:00Z","v":60937,"vw":177.954244},"properties":{"c":{"description":"Closing price.","format":"double","type":"number","x-go-name":"Close"},"h":{"description":"High price.","format":"double","type":"number","x-go-name":"High"},"l":{"description":"Low price.","format":"double","type":"number","x-go-name":"Low"},"n":{"description":"Trade count in the bar.","format":"int64","type":"integer","x-go-name":"TradeCount"},"o":{"description":"Opening price.","format":"double","type":"number","x-go-name":"Open"},"t":{"$ref":"#/components/schemas/timestamp"},"v":{"description":"Bar volume.","format":"int64","type":"integer","x-go-name":"Volume"},"vw":{"description":"Volume weighted average price.","format":"double","type":"number","x-go-name":"VWAP"}},"required":["t","o","h","l","c","v","n","vw"],"type":"object"},"stock_bars_resp":{"properties":{"bars":{"additionalProperties":{"items":{"$ref":"#/components/schemas/stock_bar"},"type":"array"},"type":"object"},"currency":{"type":"string"},"next_page_token":{"$ref":"#/components/schemas/next_page_token"}},"required":["bars","next_page_token"],"type":"object"},"stock_bars_resp_single":{"properties":{"bars":{"items":{"$ref":"#/components/schemas/stock_bar"},"type":"array"},"currency":{"type":"string"},"next_page_token":{"$ref":"#/components/schemas/next_page_token"},"symbol":{"type":"string"}},"required":["bars","next_page_token","symbol"],"type":"object"},"stock_conditions":{"additionalProperties":{"type":"string"},"example":{"@":"Regular Sale","A":"Acquisition","B":"Bunched Trade"},"type":"object"},"stock_daily_auctions":{"description":"Opening and closing auction prices for a given day.\n","properties":{"c":{"description":"Closing auctions. Every price / exchange / condition triplet is only shown once, with its earliest timestamp.","items":{"$ref":"#/components/schemas/stock_auction"},"type":"array","x-go-name":"Closes"},"d":{"$ref":"#/components/schemas/date"},"o":{"description":"Opening auctions.","items":{"$ref":"#/components/schemas/stock_auction"},"type":"array","x-go-name":"Opens"}},"required":["d","o","c"],"type":"object"},"stock_dividend":{"description":"Stock dividend.","example":{"cusip":"605015106","ex_date":"2023-05-19","id":"3ae94c30-2d37-473a-bf29-5f7b4ab6d3ca","payable_date":"2023-05-05","process_date":"2023-05-19","rate":0.05,"record_date":"2023-05-22","symbol":"MSBC"},"properties":{"currency":{"$ref":"#/components/schemas/currency"},"cusip":{"type":"string"},"ex_date":{"$ref":"#/components/schemas/ex_date"},"id":{"$ref":"#/components/schemas/ca_id"},"isin":{"$ref":"#/components/schemas/isin"},"payable_date":{"$ref":"#/components/schemas/payable_date"},"process_date":{"$ref":"#/components/schemas/process_date"},"rate":{"format":"double","type":"number"},"record_date":{"$ref":"#/components/schemas/record_date"},"symbol":{"type":"string"}},"required":["id","symbol","cusip","rate","process_date","ex_date"],"type":"object"},"stock_exchanges":{"additionalProperties":{"type":"string"},"example":{"N":"New York Stock Exchange","V":"IEX"},"type":"object"},"stock_historical_feed":{"default":"sip","enum":["iex","otc","sip","boats"],"type":"string"},"stock_latest_bars_resp":{"properties":{"bars":{"additionalProperties":{"$ref":"#/components/schemas/stock_bar"},"type":"object"},"currency":{"type":"string"}},"required":["bars"],"type":"object"},"stock_latest_bars_resp_single":{"properties":{"bar":{"$ref":"#/components/schemas/stock_bar"},"currency":{"type":"string"},"symbol":{"type":"string"}},"required":["bar","symbol"],"type":"object"},"stock_latest_feed":{"enum":["delayed_sip","iex","otc","sip","boats","overnight"],"type":"string"},"stock_latest_quotes_resp":{"properties":{"currency":{"type":"string"},"quotes":{"additionalProperties":{"$ref":"#/components/schemas/stock_quote"},"type":"object"}},"required":["quotes"],"type":"object"},"stock_latest_quotes_resp_single":{"properties":{"currency":{"type":"string"},"quote":{"$ref":"#/components/schemas/stock_quote"},"symbol":{"type":"string"}},"required":["quote","symbol"],"type":"object"},"stock_latest_trades_resp":{"properties":{"currency":{"type":"string"},"trades":{"additionalProperties":{"$ref":"#/components/schemas/stock_trade"},"type":"object"}},"required":["trades"],"type":"object"},"stock_latest_trades_resp_single":{"properties":{"currency":{"type":"string"},"symbol":{"type":"string"},"trade":{"$ref":"#/components/schemas/stock_trade"}},"required":["trade","symbol"],"type":"object"},"stock_merger":{"description":"Stock merger.","example":{"acquiree_cusip":"53223X107","acquiree_rate":1,"acquiree_symbol":"LSI","acquirer_cusip":"30225T102","acquirer_rate":0.895,"acquirer_symbol":"EXR","effective_date":"2023-07-20","id":"728f8cb2-a00e-4bc7-ad14-d15fe82bbcff","payable_date":"2023-07-20","process_date":"2023-07-20"},"properties":{"acquiree_cusip":{"type":"string"},"acquiree_isin":{"$ref":"#/components/schemas/isin"},"acquiree_rate":{"format":"double","type":"number"},"acquiree_symbol":{"type":"string"},"acquirer_cusip":{"type":"string"},"acquirer_isin":{"$ref":"#/components/schemas/isin"},"acquirer_rate":{"format":"double","type":"number"},"acquirer_symbol":{"type":"string"},"currency":{"$ref":"#/components/schemas/currency"},"effective_date":{"$ref":"#/components/schemas/effective_date"},"id":{"$ref":"#/components/schemas/ca_id"},"payable_date":{"$ref":"#/components/schemas/payable_date"},"process_date":{"$ref":"#/components/schemas/process_date"}},"required":["id","acquirer_symbol","acquirer_cusip","acquirer_rate","acquiree_symbol","acquiree_cusip","acquiree_rate","process_date","effective_date"],"type":"object"},"stock_quote":{"description":"The best bid and ask information for a given security.","example":{"ap":387.7,"as":1,"ax":"C","bp":387.67,"bs":1,"bx":"N","c":["R"],"t":"2021-02-06T13:35:08.946977536Z","z":"C"},"properties":{"ap":{"description":"Ask price. 0 means the security has no active ask.","format":"double","type":"number","x-go-name":"AskPrice"},"as":{"description":"Ask size in shares (round lots prior to November 3, 2025).","format":"uint32","type":"integer","x-go-name":"AskSize"},"ax":{"description":"Ask exchange. See `v2/stocks/meta/exchanges` for more details.","type":"string","x-go-name":"AskExchange"},"bp":{"description":"Bid price. 0 means the security has no active bid.","format":"double","type":"number","x-go-name":"BidPrice"},"bs":{"description":"Bid size in shares (round lots prior to November 3, 2025).","format":"uint32","type":"integer","x-go-name":"BidSize"},"bx":{"description":"Bid exchange. See `v2/stocks/meta/exchanges` for more details.","type":"string","x-go-name":"BidExchange"},"c":{"description":"Condition flags. See `v2/stocks/meta/conditions/quote` for more details. If the array contains one flag, it applies to both the bid and ask. If the array contains two flags, the first one applies to the bid and the second one to the ask.\n","items":{"type":"string"},"type":"array","x-go-name":"Conditions"},"t":{"$ref":"#/components/schemas/timestamp"},"z":{"$ref":"#/components/schemas/stock_tape"}},"required":["t","bx","bp","bs","ap","as","ax","c","z"],"type":"object"},"stock_quotes_resp":{"properties":{"currency":{"type":"string"},"next_page_token":{"$ref":"#/components/schemas/next_page_token"},"quotes":{"additionalProperties":{"items":{"$ref":"#/components/schemas/stock_quote"},"type":"array"},"type":"object"}},"required":["quotes","next_page_token"],"type":"object"},"stock_quotes_resp_single":{"properties":{"currency":{"type":"string"},"next_page_token":{"$ref":"#/components/schemas/next_page_token"},"quotes":{"items":{"$ref":"#/components/schemas/stock_quote"},"type":"array"},"symbol":{"type":"string"}},"required":["quotes","next_page_token","symbol"],"type":"object"},"stock_snapshot":{"description":"A snapshot provides the latest trade, latest quote, latest minute bar, current daily bar and previous daily bar.\n","properties":{"dailyBar":{"$ref":"#/components/schemas/stock_bar"},"latestQuote":{"$ref":"#/components/schemas/stock_quote"},"latestTrade":{"$ref":"#/components/schemas/stock_trade"},"minuteBar":{"$ref":"#/components/schemas/stock_bar"},"prevDailyBar":{"$ref":"#/components/schemas/stock_bar"}},"type":"object"},"stock_snapshots_resp":{"additionalProperties":{"$ref":"#/components/schemas/stock_snapshot"},"type":"object"},"stock_snapshots_resp_single":{"allOf":[{"properties":{"currency":{"type":"string"},"symbol":{"type":"string"}},"type":"object"},{"$ref":"#/components/schemas/stock_snapshot"}]},"stock_tape":{"description":"- A: New York Stock Exchange\n- B: NYSE Arca, Bats, IEX and other regional exchanges\n- C: NASDAQ\n- N: Overnight\n- O: OTC\n","enum":["A","B","C","N","O"],"type":"string","x-go-name":"Tape"},"stock_trade":{"description":"A stock trade.","example":{"c":["@","T"],"i":1,"p":178.26,"s":246,"t":"2022-01-03T09:00:00.086175744Z","x":"P","z":"C"},"properties":{"c":{"description":"Condition flags. See `v2/stocks/meta/conditions/trade` for more details.","items":{"type":"string"},"type":"array","x-go-name":"Conditions"},"i":{"description":"Trade ID sent by the exchange.","format":"uint64","type":"integer","x-go-name":"ID"},"p":{"description":"Trade price.","format":"double","type":"number","x-go-name":"Price"},"s":{"description":"Trade size.","format":"uint32","type":"integer","x-go-name":"Size"},"t":{"$ref":"#/components/schemas/timestamp"},"u":{"description":"Update to the trade. This field is optional, if it's missing, the trade is valid. Otherwise, it can have these values:\n - canceled: indicates that the trade has been canceled\n - incorrect: indicates that the trade has been corrected and the given trade is no longer valid\n - corrected: indicates that this trade is the correction of a previous (incorrect) trade\n","type":"string","x-go-name":"Update"},"x":{"description":"Exchange code. See `v2/stocks/meta/exchanges` for more details.","type":"string","x-go-name":"Exchange"},"z":{"$ref":"#/components/schemas/stock_tape"}},"required":["t","i","x","p","s","c","z"],"type":"object"},"stock_trades_resp":{"properties":{"currency":{"type":"string"},"next_page_token":{"$ref":"#/components/schemas/next_page_token"},"trades":{"additionalProperties":{"items":{"$ref":"#/components/schemas/stock_trade"},"type":"array"},"type":"object"}},"required":["trades","next_page_token"],"type":"object"},"stock_trades_resp_single":{"properties":{"currency":{"type":"string"},"next_page_token":{"$ref":"#/components/schemas/next_page_token"},"symbol":{"type":"string"},"trades":{"items":{"$ref":"#/components/schemas/stock_trade"},"type":"array"}},"required":["trades","next_page_token","symbol"],"type":"object"},"timestamp":{"description":"Timestamp in RFC-3339 format with nanosecond precision.","format":"date-time","type":"string","x-go-name":"Timestamp"},"unit_split":{"description":"Unit split.","example":{"alternate_cusip":"G5391L110","alternate_rate":0.3333,"alternate_symbol":"LVROW","effective_date":"2023-03-01","id":"3e68e87e-ae95-4d68-91d1-715d52ef143a","new_cusip":"G5391L102","new_rate":1,"new_symbol":"LVRO","old_cusip":"G8990L119","old_rate":1,"old_symbol":"TPBAU","process_date":"2023-03-01"},"properties":{"alternate_cusip":{"type":"string"},"alternate_isin":{"$ref":"#/components/schemas/isin"},"alternate_rate":{"format":"double","type":"number"},"alternate_symbol":{"type":"string"},"currency":{"$ref":"#/components/schemas/currency"},"effective_date":{"$ref":"#/components/schemas/effective_date"},"id":{"$ref":"#/components/schemas/ca_id"},"new_cusip":{"type":"string"},"new_isin":{"$ref":"#/components/schemas/isin"},"new_rate":{"format":"double","type":"number"},"new_symbol":{"type":"string"},"old_cusip":{"type":"string"},"old_isin":{"$ref":"#/components/schemas/isin"},"old_rate":{"format":"double","type":"number"},"old_symbol":{"type":"string"},"payable_date":{"$ref":"#/components/schemas/payable_date"},"process_date":{"$ref":"#/components/schemas/process_date"}},"required":["id","old_symbol","old_cusip","old_rate","new_symbol","new_cusip","new_rate","alternate_symbol","alternate_cusip","alternate_rate","process_date","effective_date"],"type":"object"},"worthless_removal":{"description":"Worthless removal.","example":{"cusip":"078771300","id":"106c2149-ee04-4d2e-a943-98dbb4d21a3c","process_date":"2024-12-19","symbol":"BLPH"},"properties":{"currency":{"$ref":"#/components/schemas/currency"},"cusip":{"type":"string"},"id":{"$ref":"#/components/schemas/ca_id"},"isin":{"$ref":"#/components/schemas/isin"},"process_date":{"$ref":"#/components/schemas/process_date"},"symbol":{"type":"string"}},"required":["id","symbol","cusip","process_date"],"type":"object"}},"securitySchemes":{"apiKey":{"in":"header","name":"APCA-API-KEY-ID","type":"apiKey"},"apiSecret":{"in":"header","name":"APCA-API-SECRET-KEY","type":"apiKey"}}},"info":{"contact":{"email":"support@alpaca.markets","name":"Alpaca Support","url":"https://alpaca.markets/support"},"description":"Access real-time and historical market data for US equities, options, crypto, and foreign exchange data through the Alpaca REST and WebSocket APIs. There are APIs for Stock Pricing, Option Pricing, Crypto Pricing, Forex, Logos, Fixed income, Corporate Actions, Screener, and News.\n","license":{"name":"Creative Commons Attribution Share Alike 4.0 International","url":"https://spdx.org/licenses/CC-BY-SA-4.0.html"},"termsOfService":"https://s3.amazonaws.com/files.alpaca.markets/disclosures/library/TermsAndConditions.pdf","title":"Market Data API","version":"1.1"},"openapi":"3.0.0","paths":{"/v1beta1/crypto-perps/{loc}/latest/bars":{"get":{"description":"The latest bars endpoint returns the latest bar data for the crypto perpetual futures symbols provided.\n","operationId":"CryptoPerpLatestBars","parameters":[{"$ref":"#/components/parameters/crypto_perp_loc"},{"$ref":"#/components/parameters/crypto_perp_symbols"}],"responses":{"200":{"content":{"application/json":{"examples":{"bars":{"value":{"bars":{"BTCUSDT.P":{"c":29003,"h":29003,"l":28999,"n":4,"o":28999,"t":"2022-05-27T10:18:00Z","v":0.01,"vw":29001}}}}},"schema":{"$ref":"#/components/schemas/crypto_latest_bars_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"security":[],"summary":"Latest bars","tags":["Crypto perpetual futures"]}},"/v1beta1/crypto-perps/{loc}/latest/orderbooks":{"get":{"description":"The latest orderbook endpoint returns the latest bid and ask orderbook for the crypto perpetual futures symbols provided.\n","operationId":"CryptoPerpLatestOrderbooks","parameters":[{"$ref":"#/components/parameters/crypto_perp_loc"},{"$ref":"#/components/parameters/crypto_perp_symbols"}],"responses":{"200":{"content":{"application/json":{"examples":{"orderbooks":{"value":{"orderbooks":{"BTCUSDT.P":{"a":[{"p":20902,"s":0.0097},{"p":21444,"s":0}],"b":[{"p":20846,"s":0.1902},{"p":20350,"s":0}],"t":"2022-06-24T08:00:14.137774336Z"}}}}},"schema":{"$ref":"#/components/schemas/crypto_latest_orderbooks_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"security":[],"summary":"Latest orderbook","tags":["Crypto perpetual futures"]}},"/v1beta1/crypto-perps/{loc}/latest/pricing":{"get":{"description":"The latest futures pricing endpoint returns the latest pricing data for the crypto perpetual futures symbols provided.\n","operationId":"CryptoPerpLatestFuturesPricing","parameters":[{"$ref":"#/components/parameters/crypto_perp_loc"},{"$ref":"#/components/parameters/crypto_perp_symbols"}],"responses":{"200":{"content":{"application/json":{"examples":{"pricing":{"value":{"pricing":{"BTCUSDT.P":{"fr":0.000565699,"ft":"2022-05-27T10:18:00Z","ip":50702.8,"mp":50652.3553,"oi":90.7367,"t":"2022-05-27T10:18:00Z"}}}}},"schema":{"$ref":"#/components/schemas/crypto_perp_latest_futures_pricing_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"security":[],"summary":"Latest pricing","tags":["Crypto perpetual futures"]}},"/v1beta1/crypto-perps/{loc}/latest/quotes":{"get":{"description":"The latest quotes endpoint returns the latest bid and ask prices for the crypto perpetual futures symbols provided.\n","operationId":"CryptoPerpLatestQuotes","parameters":[{"$ref":"#/components/parameters/crypto_perp_loc"},{"$ref":"#/components/parameters/crypto_perp_symbols"}],"responses":{"200":{"content":{"application/json":{"examples":{"quotes":{"value":{"quotes":{"BTCUSDT.P":{"ap":29059,"as":3.252,"bp":29058,"bs":0.3544,"t":"2022-05-26T11:47:18.44347136Z"},"ETHUSDT.P":{"ap":1817.7,"as":6.137,"bp":1817,"bs":4.76,"t":"2022-05-26T11:47:18.499478272Z"}}}}},"schema":{"$ref":"#/components/schemas/crypto_latest_quotes_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"security":[],"summary":"Latest quotes","tags":["Crypto perpetual futures"]}},"/v1beta1/crypto-perps/{loc}/latest/trades":{"get":{"description":"The latest trades endpoint returns the latest trade data for the crypto perpetual futures symbols provided.\n","operationId":"CryptoPerpLatestTrades","parameters":[{"$ref":"#/components/parameters/crypto_perp_loc"},{"$ref":"#/components/parameters/crypto_perp_symbols"}],"responses":{"200":{"content":{"application/json":{"examples":{"trades":{"value":{"trades":{"BTCUSDT.P":{"i":31455289,"p":29791,"s":0.0016,"t":"2022-05-18T12:01:00.537052Z","tks":"S"},"ETHUSDT.P":{"i":31455287,"p":2027.6,"s":0.06,"t":"2022-05-18T12:01:00.363547Z","tks":"S"}}}}},"schema":{"$ref":"#/components/schemas/crypto_latest_trades_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"security":[],"summary":"Latest trades","tags":["Crypto perpetual futures"]}},"/v1beta1/fixed_income/latest/prices":{"get":{"description":"This endpoint returns the latest prices for the given fixed income securities.\n","operationId":"FixedIncomeLatestPrices","parameters":[{"$ref":"#/components/parameters/isins"}],"responses":{"200":{"content":{"application/json":{"examples":{"prices":{"value":{"prices":{"US912797KJ59":{"p":99.6459,"t":"2025-02-14T20:58:00.648Z","ytm":4.249,"ytw":4.249},"US912797KS58":{"p":99.3193,"t":"2025-02-14T20:58:00.648Z","ytm":4.2245,"ytw":4.2245},"US912797LB15":{"p":98.9927,"t":"2025-02-14T20:58:00.648Z","ytm":4.2165,"ytw":4.2165}}}}},"schema":{"$ref":"#/components/schemas/fixed_income_latest_prices_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Latest prices","tags":["Fixed income"]}},"/v1beta1/fixed_income/latest/quotes":{"get":{"description":"This endpoint returns the latest quotes for the given fixed income securities.\n","operationId":"FixedIncomeLatestQuotes","parameters":[{"description":"A comma-separated list of ISINs with a limit of 100.","example":"US912797SX61,US912810SK51","in":"query","name":"isins","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/trade_size"}],"responses":{"200":{"content":{"application/json":{"examples":{"quotes":{"value":{"quotes":{"US912797SX61":{"ams":1000,"ap":99.91958333,"as":1000000,"aytm":2.226923,"aytw":2.226923,"bms":1000,"bp":99.81091667,"bs":1000000,"bytm":5.236154,"bytw":5.236154,"t":"2026-05-21T06:56:01.882466873Z"},"US912810SK51":{"ams":1000,"ap":63.06436526,"as":1000000,"aytm":5.08819,"aytw":5.08819,"bms":1000,"bp":60.60009769,"bs":1000000,"bytm":5.338343,"bytw":5.338343,"t":"2026-05-21T07:27:53.683424845Z"}}}}},"schema":{"$ref":"#/components/schemas/fixed_income_latest_quotes_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Latest quotes","tags":["Fixed income"]}},"/v1beta1/forex/latest/rates":{"get":{"description":"Get the latest forex rates for the given currency pairs.\n","operationId":"LatestRates","parameters":[{"$ref":"#/components/parameters/forex_currency_pairs"}],"responses":{"200":{"content":{"application/json":{"examples":{"USDJPY":{"value":{"rates":{"USDJPY":{"ap":128.112,"bp":127.752,"mp":127.779,"t":"2022-05-20T05:38:41.311530885Z"}}}}},"schema":{"$ref":"#/components/schemas/forex_latest_rates_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Latest rates for currency pairs","tags":["Forex"]}},"/v1beta1/forex/rates":{"get":{"description":"Get historical forex rates for the given currency pairs in the given time interval and at the given timeframe (snapshot frequency).\n","operationId":"Rates","parameters":[{"$ref":"#/components/parameters/forex_currency_pairs"},{"$ref":"#/components/parameters/forex_timeframe"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/sort"},{"$ref":"#/components/parameters/page_token"}],"responses":{"200":{"content":{"application/json":{"examples":{"USDJPY":{"value":{"next_page_token":"VVNESlBZfDIwMjItMDEtMDNUMDA6MDM6MDBa","rates":{"USDJPY":[{"ap":115.18,"bp":114.192,"mp":115.144,"t":"2022-01-03T00:01:00Z"},{"ap":115.185,"bp":114.189,"mp":115.138,"t":"2022-01-03T00:02:00Z"},{"ap":115.148,"bp":115.122,"mp":115.131,"t":"2022-01-03T00:03:00Z"}]}}}},"schema":{"$ref":"#/components/schemas/forex_rates_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Historical rates for currency pairs","tags":["Forex"]}},"/v1beta1/indices/latest/values":{"get":{"description":"Get the latest values for the given indices.","operationId":"IndexLatestValues","parameters":[{"$ref":"#/components/parameters/index_symbols"}],"responses":{"200":{"content":{"application/json":{"examples":{"values":{"value":{"values":{"SPX":{"t":"2026-05-18T17:00:02.0256Z","v":7383.46},"VIX":{"t":"2026-05-18T17:00:46.354Z","v":18.45}}}}},"schema":{"$ref":"#/components/schemas/index_latest_values_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Latest values for indices","tags":["Index"]}},"/v1beta1/indices/values":{"get":{"description":"Get historical values for the given indices in the given time interval.\n","operationId":"IndexValues","parameters":[{"$ref":"#/components/parameters/index_symbols"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"examples":{"values":{"value":{"next_page_token":"U1BYfDIwMjYtMDUtMThUMTc6MDA6MDIuMDI1Nlo","values":{"SPX":[{"t":"2026-05-18T17:00:00.0302Z","v":7384.41},{"t":"2026-05-18T17:00:01.0918Z","v":7384.07},{"t":"2026-05-18T17:00:02.0256Z","v":7383.46}],"VIX":[{"t":"2026-05-18T17:00:01.3355Z","v":18.4},{"t":"2026-05-18T17:00:16.3453Z","v":18.41},{"t":"2026-05-18T17:00:46.354Z","v":18.45}]}}}},"schema":{"$ref":"#/components/schemas/index_values_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Historical values for indices","tags":["Index"]}},"/v1beta1/logos/{symbol}":{"get":{"description":"Get the image of the company logo for the given symbol.","operationId":"Logos","parameters":[{"$ref":"#/components/parameters/symbol"},{"description":"If true, returns a placeholder image when no logo is available. Defaults to true.","in":"query","name":"placeholder","schema":{"default":true,"type":"boolean"}}],"responses":{"200":{"content":{"image/png":{"schema":{"format":"binary","type":"string"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Logos","tags":["Logos"]}},"/v1beta1/news":{"get":{"description":"Returns the latest news articles across stocks and crypto. By default, returns the latest 10 news articles.\n","operationId":"News","parameters":[{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/news_sort"},{"description":"A comma-separated list of symbols for which to query news.","in":"query","name":"symbols","schema":{"example":"AAPL,TSLA,BTCUSD","type":"string"}},{"description":"Limit of news items to be returned for a result page.","example":10,"in":"query","name":"limit","schema":{"maximum":50,"minimum":1,"type":"integer"}},{"description":"Boolean indicator to include content for news articles (if available).","in":"query","name":"include_content","schema":{"type":"boolean"}},{"description":"Boolean indicator to exclude news articles that do not contain content.","in":"query","name":"exclude_contentless","schema":{"type":"boolean"}},{"$ref":"#/components/parameters/page_token"}],"responses":{"200":{"content":{"application/json":{"examples":{"news-response-example":{"value":{"news":[{"author":"Charles Gross","content":"<p>This headline-only article is meant to show you why a stock is moving, the most difficult aspect of stock trading....</p>","created_at":"2021-12-31T11:08:42Z","headline":"Apple Leader in Phone Sales in China for Second Straight Month in November With 23.6% Share, According to Market Research Data","id":24843171,"images":[],"source":"benzinga","summary":"This headline-only article is meant to show you why a stock is moving, the most difficult aspect of stock trading","symbols":["AAPL"],"updated_at":"2021-12-31T11:08:43Z","url":"https://www.benzinga.com/news/21/12/24843171/apple-leader-in-phone-sales-in-china-for-second-straight-month-in-november-with-23-6-share-according"}],"next_page_token":"MTY0MDk0ODkyMzAwMDAwMDAwMHwyNDg0MzE3MQ=="}}},"schema":{"$ref":"#/components/schemas/news_resp"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"News articles","tags":["News"]}},"/v1beta1/options/bars":{"get":{"description":"The historical option bars API provides aggregates for a list of option symbols between the specified dates.\n\nThe returned results are sorted by symbol first, then by bar timestamp.\nThis means that you are likely to see only one symbol in your first response if there are enough bars for that symbol to hit the limit you requested.\n\nIn these situations, if you keep requesting again with the `next_page_token` from the previous response, you will eventually reach the other symbols if any bars were found for them.","operationId":"optionBars","parameters":[{"$ref":"#/components/parameters/option_symbols"},{"$ref":"#/components/parameters/timeframe"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"examples":{"bars":{"value":{"bars":{"AAPL240419P00140000":[{"c":0.34,"h":0.38,"l":0.34,"n":7,"o":0.38,"t":"2024-01-18T05:00:00Z","v":12,"vw":0.3525}]},"next_page_token":"QUFQTHxNfDIwMjItMDEtMDNUMDk6MDA6MDAuMDAwMDAwMDAwWg=="}}},"schema":{"$ref":"#/components/schemas/option_bars_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Historical bars","tags":["Option"]}},"/v1beta1/options/meta/conditions/{ticktype}":{"get":{"description":"Returns the mapping between the condition codes and names.","operationId":"OptionMetaConditions","parameters":[{"description":"The type of ticks.","in":"path","name":"ticktype","required":true,"schema":{"enum":["trade","quote"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/option_conditions"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Condition codes","tags":["Option"]}},"/v1beta1/options/meta/exchanges":{"get":{"description":"Returns the mapping between the option exchange codes and the corresponding exchange names.","operationId":"OptionMetaExchanges","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/option_exchanges"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Exchange codes","tags":["Option"]}},"/v1beta1/options/quotes/latest":{"get":{"description":"The latest multi-quotes endpoint provides the latest bid and ask prices for each given contract symbol.\n","operationId":"OptionLatestQuotes","parameters":[{"$ref":"#/components/parameters/option_symbols"},{"$ref":"#/components/parameters/option_feed"}],"responses":{"200":{"content":{"application/json":{"examples":{"quotes":{"value":{"quotes":{"AAPL240419P00140000":{"ap":0.16,"as":669,"ax":"w","bp":0.15,"bs":164,"bx":"W","c":"A","t":"2024-02-28T15:30:28.046330624Z"},"AAPL250321C00190000":{"ap":17,"as":622,"ax":"X","bp":16.75,"bs":368,"bx":"X","c":" ","t":"2024-02-28T15:47:13.663636224Z"}}}}},"schema":{"$ref":"#/components/schemas/option_latest_quotes_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Latest quotes","tags":["Option"]}},"/v1beta1/options/snapshots":{"get":{"description":"The snapshots endpoint provides the latest trade, latest quote and greeks for each given contract symbol.\n","operationId":"OptionSnapshots","parameters":[{"$ref":"#/components/parameters/option_symbols"},{"$ref":"#/components/parameters/option_feed"},{"$ref":"#/components/parameters/option_updated_since"},{"$ref":"#/components/parameters/option_limit"},{"$ref":"#/components/parameters/page_token"}],"responses":{"200":{"content":{"application/json":{"examples":{"snapshots":{"value":{"next_page_token":"QUFQTDI0MDYyMTAwMDIyMHwx","snapshots":{"AAPL240426C00162500":{"greeks":{"delta":0.7521304109871954,"gamma":0.06241426404871288,"rho":0.009910739032549095,"theta":-0.2847623059595503,"vega":0.047540520834498785},"impliedVolatility":0.3372405712050441,"latestQuote":{"ap":4.3,"as":91,"ax":"B","bp":4.15,"bs":16,"bx":"C","c":"A","t":"2024-04-22T19:59:59.992734208Z"},"latestTrade":{"c":"I","p":4.1,"s":1,"t":"2024-04-22T19:57:32.589554432Z","x":"A"}}}}}},"schema":{"$ref":"#/components/schemas/option_snapshots_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Snapshots","tags":["Option"]}},"/v1beta1/options/snapshots/{underlying_symbol}":{"get":{"description":"The option chain endpoint provides the latest trade, latest quote, and greeks for each contract symbol of the underlying symbol.\n","operationId":"OptionChain","parameters":[{"$ref":"#/components/parameters/option_underlying_symbol"},{"$ref":"#/components/parameters/option_feed"},{"$ref":"#/components/parameters/option_limit"},{"$ref":"#/components/parameters/option_updated_since"},{"$ref":"#/components/parameters/page_token"},{"description":"Filter contracts by the type (call or put).","in":"query","name":"type","schema":{"enum":["call","put"],"type":"string"}},{"description":"Filter contracts with strike price greater than or equal to the specified value.","in":"query","name":"strike_price_gte","schema":{"format":"double","type":"number"}},{"description":"Filter contracts with strike price less than or equal to the specified value.","in":"query","name":"strike_price_lte","schema":{"format":"double","type":"number"}},{"description":"Filter contracts by the exact expiration date (format: YYYY-MM-DD).","in":"query","name":"expiration_date","schema":{"format":"date","type":"string"}},{"description":"Filter contracts with expiration date greater than or equal to the specified date.","in":"query","name":"expiration_date_gte","schema":{"format":"date","type":"string"}},{"description":"Filter contracts with expiration date less than or equal to the specified date.","in":"query","name":"expiration_date_lte","schema":{"format":"date","type":"string"}},{"description":"Filter contracts by the root symbol.","example":"AAPL1","in":"query","name":"root_symbol","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"examples":{"snapshots":{"value":{"next_page_token":"QUFQTDI0MDYyMTAwMDIyMHwx","snapshots":{"AAPL240426C00162500":{"greeks":{"delta":0.7521304109871954,"gamma":0.06241426404871288,"rho":0.009910739032549095,"theta":-0.2847623059595503,"vega":0.047540520834498785},"impliedVolatility":0.3372405712050441,"latestQuote":{"ap":4.3,"as":91,"ax":"B","bp":4.15,"bs":16,"bx":"C","c":"A","t":"2024-04-22T19:59:59.992734208Z"},"latestTrade":{"c":"I","p":4.1,"s":1,"t":"2024-04-22T19:57:32.589554432Z","x":"A"}}}}}},"schema":{"$ref":"#/components/schemas/option_snapshots_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Option chain","tags":["Option"]}},"/v1beta1/options/trades":{"get":{"description":"The historical option trades API provides trade data for a list of contract symbols between the specified dates.\n\nThe returned results are sorted by symbol first then by trade timestamp.\nThis means that you are likely to see only one symbol in your first response if there are enough trades for that symbol to hit the limit you requested.\n\nIn these situations, if you keep requesting again with the `next_page_token` from the previous response, you will eventually reach the other symbols if any trades were found for them.","operationId":"OptionTrades","parameters":[{"$ref":"#/components/parameters/option_symbols"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"examples":{"trades":{"value":{"next_page_token":"QUFQTHwyMDIyLTAxLTAzVDA5OjAwOjAwLjI0NDgzOTY4MFp8UHwwOTIyMzM3MjAzNjg1NDc3NTgxMA==","trades":{"AAPL240112C00182500":[{"c":"I","p":0.37,"s":1,"t":"2024-01-18T15:03:44.56339456Z","x":"B"},{"c":"g","p":0.34,"s":1,"t":"2024-01-18T16:02:38.994758144Z","x":"C"}]}}}},"schema":{"$ref":"#/components/schemas/option_trades_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Historical trades","tags":["Option"]}},"/v1beta1/options/trades/latest":{"get":{"description":"The latest multi-trades endpoint provides the latest historical trade data for multiple given contract symbols.\n","operationId":"OptionLatestTrades","parameters":[{"$ref":"#/components/parameters/option_symbols"},{"$ref":"#/components/parameters/option_feed"}],"responses":{"200":{"content":{"application/json":{"examples":{"trades":{"value":{"trades":{"AAPL250321C00190000":{"c":"e","p":17.15,"s":900,"t":"2024-02-28T15:26:12.728701696Z","x":"B"}}}}},"schema":{"$ref":"#/components/schemas/option_latest_trades_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Latest trades","tags":["Option"]}},"/v1beta1/screener/{market_type}/movers":{"get":{"description":"Returns the top market movers (gainers and losers) based on real time SIP data.\nThe change for each symbol is calculated from the previous closing price and the latest closing price.\n\nFor stocks, the endpoint resets at market open. Until then, it shows the previous market day's movers.\nThe data is split-adjusted. Only tradable symbols in exchanges are included.\n\nFor crypto, the endpoint resets at midnight.","operationId":"Movers","parameters":[{"$ref":"#/components/parameters/movers_market_type"},{"$ref":"#/components/parameters/movers_top"}],"responses":{"200":{"content":{"application/json":{"examples":{"movers":{"value":{"gainers":[{"change":2.46,"percent_change":145.56,"price":4.15,"symbol":"AGRI"},{"change":0.03,"percent_change":85.63,"price":0.0594,"symbol":"GRCYW"}],"last_updated":"2022-03-10T17:53:30.088309839Z","losers":[{"change":-0.26,"percent_change":-63.07,"price":0.1502,"symbol":"MTACW"},{"change":-3.61,"percent_change":-51.21,"price":3.435,"symbol":"TIG"}],"market_type":"stocks"}}},"schema":{"$ref":"#/components/schemas/movers_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Top market movers","tags":["Screener"]}},"/v1beta1/screener/stocks/most-actives":{"get":{"description":"Returns the most active stocks by volume or trade count based on real time SIP data. By default, returns the top 10 symbols by volume.\n","operationId":"MostActives","parameters":[{"$ref":"#/components/parameters/most_actives_by"},{"$ref":"#/components/parameters/most_actives_top"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/most_actives_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Most active stocks","tags":["Screener"]}},"/v1beta3/crypto/{loc}/bars":{"get":{"description":"The crypto bars API provides historical aggregates for a list of crypto symbols between the specified dates.\n","operationId":"CryptoBars","parameters":[{"$ref":"#/components/parameters/crypto_historical_loc"},{"$ref":"#/components/parameters/crypto_symbols"},{"$ref":"#/components/parameters/timeframe"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"examples":{"bars":{"value":{"bars":{"BTC/USD":[{"c":29003,"h":29003,"l":28999,"n":4,"o":28999,"t":"2022-05-27T10:18:00Z","v":0.01,"vw":29001}]},"next_page_token":"MTY0MDk0ODkyMzAwMDAwMDAwMHwyNDg0MzE3MQ=="}}},"schema":{"$ref":"#/components/schemas/crypto_bars_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"security":[],"summary":"Historical bars","tags":["Crypto"]}},"/v1beta3/crypto/{loc}/latest/bars":{"get":{"description":"The latest multi-bars endpoint returns the latest minute-aggregated historical bar data for each of the crypto symbols provided.\n","operationId":"CryptoLatestBars","parameters":[{"$ref":"#/components/parameters/crypto_latest_loc"},{"$ref":"#/components/parameters/crypto_symbols"}],"responses":{"200":{"content":{"application/json":{"examples":{"bars":{"value":{"bars":{"BTC/USD":{"c":29003,"h":29003,"l":28999,"n":4,"o":28999,"t":"2022-05-27T10:18:00Z","v":0.01,"vw":29001}}}}},"schema":{"$ref":"#/components/schemas/crypto_latest_bars_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"security":[],"summary":"Latest bars","tags":["Crypto"]}},"/v1beta3/crypto/{loc}/latest/orderbooks":{"get":{"description":"The latest orderbook endpoint returns the latest bid and ask orderbook for the crypto symbols provided.\n","operationId":"CryptoLatestOrderbooks","parameters":[{"$ref":"#/components/parameters/crypto_latest_loc"},{"$ref":"#/components/parameters/crypto_symbols"}],"responses":{"200":{"content":{"application/json":{"examples":{"orderbooks":{"value":{"orderbooks":{"BTC/USD":{"a":[{"p":20902,"s":0.0097},{"p":21444,"s":0}],"b":[{"p":20846,"s":0.1902},{"p":20350,"s":0}],"t":"2022-06-24T08:00:14.137774336Z"}}}}},"schema":{"$ref":"#/components/schemas/crypto_latest_orderbooks_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"security":[],"summary":"Latest orderbook","tags":["Crypto"]}},"/v1beta3/crypto/{loc}/latest/quotes":{"get":{"description":"The latest quotes endpoint returns the latest bid and ask prices for the crypto symbols provided.\n","operationId":"CryptoLatestQuotes","parameters":[{"$ref":"#/components/parameters/crypto_latest_loc"},{"$ref":"#/components/parameters/crypto_symbols"}],"responses":{"200":{"content":{"application/json":{"examples":{"quotes":{"value":{"quotes":{"BTC/USD":{"ap":29059,"as":3.252,"bp":29058,"bs":0.3544,"t":"2022-05-26T11:47:18.44347136Z"},"ETH/USD":{"ap":1817.7,"as":6.137,"bp":1817,"bs":4.76,"t":"2022-05-26T11:47:18.499478272Z"}}}}},"schema":{"$ref":"#/components/schemas/crypto_latest_quotes_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"security":[],"summary":"Latest quotes","tags":["Crypto"]}},"/v1beta3/crypto/{loc}/latest/trades":{"get":{"description":"The latest trades endpoint returns the latest trade data for the crypto symbols provided.\n","operationId":"CryptoLatestTrades","parameters":[{"$ref":"#/components/parameters/crypto_latest_loc"},{"$ref":"#/components/parameters/crypto_symbols"}],"responses":{"200":{"content":{"application/json":{"examples":{"trades":{"value":{"trades":{"BTC/USD":{"i":31455289,"p":29791,"s":0.0016,"t":"2022-05-18T12:01:00.537052Z","tks":"S"},"ETH/USD":{"i":31455287,"p":2027.6,"s":0.06,"t":"2022-05-18T12:01:00.363547Z","tks":"S"}}}}},"schema":{"$ref":"#/components/schemas/crypto_latest_trades_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"security":[],"summary":"Latest trades","tags":["Crypto"]}},"/v1beta3/crypto/{loc}/quotes":{"get":{"description":"The crypto quotes API provides historical quote data for a list of crypto symbols between the specified dates.\nThe oldest date to retrieve historical quotes of us-1 location is 14th October, 2025 12AM UTC.","operationId":"CryptoQuotes","parameters":[{"$ref":"#/components/parameters/crypto_historical_loc"},{"$ref":"#/components/parameters/crypto_symbols"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"examples":{"quotes":{"value":{"next_page_token":"MTY1MzU2NzYzODQ5OTQ3ODI3Mnwx","quotes":{"BTC/USD":[{"ap":29059,"as":3.252,"bp":29058,"bs":0.3544,"t":"2022-05-26T11:47:18.44347136Z"}],"ETH/USD":[{"ap":1817.7,"as":6.137,"bp":1817,"bs":4.76,"t":"2022-05-26T11:47:18.499478272Z"}]}}}},"schema":{"$ref":"#/components/schemas/crypto_quotes_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"security":[],"summary":"Historical quotes","tags":["Crypto"]}},"/v1beta3/crypto/{loc}/snapshots":{"get":{"description":"The snapshots endpoint returns the latest trade, latest quote, latest minute bar, latest daily bar, and previous daily bar data for crypto symbols.\n","operationId":"CryptoSnapshots","parameters":[{"$ref":"#/components/parameters/crypto_latest_loc"},{"$ref":"#/components/parameters/crypto_symbols"}],"responses":{"200":{"content":{"application/json":{"examples":{"snapshots":{"value":{"snapshots":{"BTC/USD":{"dailyBar":{"c":31744,"h":31807,"l":31416,"n":438,"o":31660,"t":"2022-05-31T05:00:00Z","v":67.3518,"vw":31582.7034526175},"latestQuote":{"ap":31742,"as":0.395,"bp":31741,"bs":0.395,"t":"2022-05-31T11:55:58.507608832Z"},"latestTrade":{"i":32396097,"p":31744,"s":0.0543,"t":"2022-05-31T11:53:45.027481Z","tks":"B"},"minuteBar":{"c":31744,"h":31744,"l":31744,"n":2,"o":31744,"t":"2022-05-31T11:53:00Z","v":0.0886,"vw":31744},"prevDailyBar":{"c":31649,"h":32251,"l":30251,"n":8221,"o":30310,"t":"2022-05-30T05:00:00Z","v":1856.4065,"vw":30877.2751897281}}}}}},"schema":{"$ref":"#/components/schemas/crypto_snapshots_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"security":[],"summary":"Snapshots","tags":["Crypto"]}},"/v1beta3/crypto/{loc}/trades":{"get":{"description":"The crypto trades API provides historical trade data for a list of crypto symbols between the specified dates.\n","operationId":"CryptoTrades","parameters":[{"$ref":"#/components/parameters/crypto_historical_loc"},{"$ref":"#/components/parameters/crypto_symbols"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"examples":{"trades":{"value":{"next_page_token":"MTY1MzA1MDgwMDAwMDAwMDAwMHwzMTQ1NTI4OQ==","trades":{"BTC/USD":[{"i":31455289,"p":29791,"s":0.0016,"t":"2022-05-18T12:01:00.537052Z","tks":"S"}],"ETH/USD":[{"i":31455287,"p":2027.6,"s":0.06,"t":"2022-05-18T12:01:00.363547Z","tks":"S"},{"i":31455288,"p":2027.6,"s":0.136,"t":"2022-05-18T12:01:00.363547Z","tks":"S"}]}}}},"schema":{"$ref":"#/components/schemas/crypto_trades_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"security":[],"summary":"Historical trades","tags":["Crypto"]}},"/v1/corporate-actions":{"get":{"description":"This endpoint provides data about the corporate actions for each given symbol over a specified time period.\n\n> ⚠️ Warning\n>\n> Currently Alpaca has no guarantees on the creation time of corporate actions. There may be delays in receiving corporate actions from our data providers, and there may be delays in processing and making them available via this API. As a result, corporate actions may not be available immediately after they are announced.\n","operationId":"CorporateActions","parameters":[{"$ref":"#/components/parameters/cas_symbols"},{"$ref":"#/components/parameters/cas_cusips"},{"$ref":"#/components/parameters/cas_types"},{"$ref":"#/components/parameters/cas_region"},{"$ref":"#/components/parameters/cas_start"},{"$ref":"#/components/parameters/cas_end"},{"$ref":"#/components/parameters/cas_ids"},{"$ref":"#/components/parameters/cas_limit"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/corporate_actions_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Corporate actions","tags":["Corporate actions"]}},"/v2/stocks/{symbol}/auctions":{"get":{"description":"The historical auctions endpoint provides auction prices for the given stock symbol between the specified dates.\n","operationId":"StockAuctionSingle","parameters":[{"$ref":"#/components/parameters/stock_symbol"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/stock_asof"},{"$ref":"#/components/parameters/stock_auction_feed"},{"$ref":"#/components/parameters/stock_currency"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"examples":{"auctions":{"value":{"auctions":[{"c":[{"c":"M","p":221.7,"t":"2022-10-13T20:00:00.152902912Z","x":"P"}],"d":"2022-10-13","o":[{"c":"Q","p":208.37,"t":"2022-10-13T13:30:00.068034304Z","x":"P"},{"c":"O","p":208.49,"t":"2022-10-13T13:30:01.079567733Z","x":"Q"},{"c":"Q","p":208.49,"t":"2022-10-13T13:30:01.090802222Z","x":"Q"}]}],"next_page_token":"MjAyMi0xMC0xM1QyMDowMDowMC4xNTI5MDI5MTJafFA=","symbol":"TSLA"}}},"schema":{"$ref":"#/components/schemas/stock_auctions_resp_single"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Historical auctions (single)","tags":["Stock"]}},"/v2/stocks/{symbol}/bars":{"get":{"description":"The historical stock bars API provides aggregates for the stock symbol between the specified dates.","operationId":"StockBarSingle","parameters":[{"$ref":"#/components/parameters/stock_symbol"},{"$ref":"#/components/parameters/timeframe"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/stock_adjustment"},{"$ref":"#/components/parameters/stock_asof"},{"$ref":"#/components/parameters/stock_historical_feed"},{"$ref":"#/components/parameters/stock_currency"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"examples":{"bars":{"value":{"bars":[{"c":178.21,"h":178.26,"l":178.21,"n":65,"o":178.26,"t":"2022-01-03T09:00:00Z","v":1118,"vw":178.235733}],"next_page_token":"QUFQTHxNfDIwMjItMDEtMDNUMDk6MDA6MDAuMDAwMDAwMDAwWg==","symbol":"AAPL"}}},"schema":{"$ref":"#/components/schemas/stock_bars_resp_single"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Historical bars (single symbol)","tags":["Stock"]}},"/v2/stocks/{symbol}/bars/latest":{"get":{"description":"The latest bar endpoint returns the latest minute bar for the given ticker symbol.\n","operationId":"StockLatestBarSingle","parameters":[{"$ref":"#/components/parameters/stock_symbol"},{"$ref":"#/components/parameters/stock_latest_feed"},{"$ref":"#/components/parameters/stock_currency"}],"responses":{"200":{"content":{"application/json":{"examples":{"bar":{"value":{"bar":{"c":173,"h":173.04,"l":172.98,"n":49,"o":172.98,"t":"2022-08-17T09:07:00Z","v":2748,"vw":173.007817},"symbol":"AAPL"}}},"schema":{"$ref":"#/components/schemas/stock_latest_bars_resp_single"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Latest bar (single symbol)","tags":["Stock"]}},"/v2/stocks/{symbol}/quotes":{"get":{"description":"The historical stock quotes API provides quote data for a stock symbol between the specified dates.","operationId":"StockQuoteSingle","parameters":[{"$ref":"#/components/parameters/stock_symbol"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/stock_asof"},{"$ref":"#/components/parameters/stock_historical_feed"},{"$ref":"#/components/parameters/stock_currency"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"examples":{"quotes":{"value":{"next_page_token":"QUFQTHwyMDIyLTAxLTAzVDA5OjAwOjAwLjAyODI5NDQ1MVp8MjM3NjQ0Qzg=","quotes":[{"ap":0,"as":0,"ax":" ","bp":177.92,"bs":4,"bx":"Q","c":["Y"],"t":"2022-01-03T09:00:00.028160898Z","z":"C"},{"ap":178.8,"as":4,"ax":"Q","bp":177.92,"bs":4,"bx":"Q","c":["R"],"t":"2022-01-03T09:00:00.028294451Z","z":"C"}],"symbol":"AAPL"}}},"schema":{"$ref":"#/components/schemas/stock_quotes_resp_single"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Historical quotes (single symbol)","tags":["Stock"]}},"/v2/stocks/{symbol}/quotes/latest":{"get":{"description":"The latest quote endpoint provides the latest best bid and ask prices for a given ticker symbol.\n","operationId":"StockLatestQuoteSingle","parameters":[{"$ref":"#/components/parameters/stock_symbol"},{"$ref":"#/components/parameters/stock_latest_feed"},{"$ref":"#/components/parameters/stock_currency"}],"responses":{"200":{"content":{"application/json":{"examples":{"quotes":{"value":{"quote":{"ap":172.7,"as":1,"ax":"Q","bp":172.6,"bs":2,"bx":"Q","c":["R"],"t":"2022-08-17T10:09:34.055031265Z","z":"C"},"symbol":"AAPL"}}},"schema":{"$ref":"#/components/schemas/stock_latest_quotes_resp_single"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Latest quote (single symbol)","tags":["Stock"]}},"/v2/stocks/{symbol}/snapshot":{"get":{"description":"The snapshot endpoint provides the latest trade, latest quote, minute bar, daily bar, and previous daily bar data for a given ticker symbol.\n","operationId":"StockSnapshotSingle","parameters":[{"$ref":"#/components/parameters/stock_symbol"},{"$ref":"#/components/parameters/stock_latest_feed"},{"$ref":"#/components/parameters/stock_currency"}],"responses":{"200":{"content":{"application/json":{"examples":{"snapshot":{"value":{"dailyBar":{"c":173.03,"h":173.71,"l":171.6618,"n":515139,"o":172.62,"t":"2022-08-16T04:00:00Z","v":56457696,"vw":172.743391},"latestQuote":{"ap":172.65,"as":1,"ax":"Q","bp":172.51,"bs":1,"bx":"P","c":["R"],"t":"2022-08-17T10:19:30.805564086Z","z":"C"},"latestTrade":{"c":["@","T"],"i":1040,"p":172.55,"s":229,"t":"2022-08-17T10:19:30.735811394Z","x":"Q","z":"C"},"minuteBar":{"c":172.6,"h":172.65,"l":172.6,"n":57,"o":172.65,"t":"2022-08-17T10:18:00Z","v":3746,"vw":172.618377},"prevDailyBar":{"c":173.19,"h":173.39,"l":171.345,"n":501626,"o":171.5,"t":"2022-08-15T04:00:00Z","v":54091719,"vw":172.625371},"symbol":"AAPL"}}},"schema":{"$ref":"#/components/schemas/stock_snapshots_resp_single"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Snapshot (single symbol)","tags":["Stock"]}},"/v2/stocks/{symbol}/trades":{"get":{"description":"The historical stock trades API provides trade data for a stock symbol between the specified dates.","operationId":"StockTradeSingle","parameters":[{"$ref":"#/components/parameters/stock_symbol"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/stock_asof"},{"$ref":"#/components/parameters/stock_historical_feed"},{"$ref":"#/components/parameters/stock_currency"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"examples":{"trades":{"value":{"next_page_token":"QUFQTHwyMDIyLTAxLTAzVDE3OjAwOjAwLjAyOTU5MTQ3Nlp8UXwwOTIyMzM3MjAzNjg1NDg0OTY0Mg==","symbol":"AAPL","trades":[{"c":["@","I"],"i":73833,"p":181.47,"s":1,"t":"2022-01-03T17:00:00.029591476Z","x":"Q","z":"C"},{"c":["@","I"],"i":73834,"p":181.47,"s":1,"t":"2022-01-03T17:00:00.029591476Z","x":"Q","z":"C"}]}}},"schema":{"$ref":"#/components/schemas/stock_trades_resp_single"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Historical trades (single symbol)","tags":["Stock"]}},"/v2/stocks/{symbol}/trades/latest":{"get":{"description":"The latest trade endpoint provides the latest trade for the given ticker symbol.\n\nTrades with any conditions that causes them to not update the bar price are excluded. For example a trade with condition `I` (odd lot) will never appear on this endpoint. You can find the complete list of excluded conditions in [this FAQ](https://docs.alpaca.markets/docs/market-data-faq#how-are-bars-aggregated).","operationId":"StockLatestTradeSingle","parameters":[{"$ref":"#/components/parameters/stock_symbol"},{"$ref":"#/components/parameters/stock_latest_feed"},{"$ref":"#/components/parameters/stock_currency"}],"responses":{"200":{"content":{"application/json":{"examples":{"trade":{"value":{"symbol":"AAPL","trade":{"c":["@","T"],"i":689,"p":172.6,"s":100,"t":"2022-08-17T09:53:16.845580544Z","x":"P","z":"C"}}}},"schema":{"$ref":"#/components/schemas/stock_latest_trades_resp_single"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Latest trade (single symbol)","tags":["Stock"]}},"/v2/stocks/auctions":{"get":{"description":"The historical auctions endpoint provides auction prices for a list of stock symbols between the specified dates.\n","operationId":"StockAuctions","parameters":[{"$ref":"#/components/parameters/stock_symbols"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/stock_asof"},{"$ref":"#/components/parameters/stock_auction_feed"},{"$ref":"#/components/parameters/stock_currency"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"examples":{"auction":{"value":{"auctions":{"AAPL":[{"c":[{"c":"6","p":138.36,"t":"2022-10-12T20:00:00.120649216Z","x":"P"},{"c":"M","p":138.36,"t":"2022-10-12T20:00:00.125925888Z","x":"P"},{"c":"6","p":138.34,"t":"2022-10-12T20:00:00.875570864Z","x":"Q"},{"c":"M","p":138.34,"t":"2022-10-12T20:00:00.875603021Z","x":"Q"}],"d":"2022-10-12","o":[{"c":"Q","p":139.12,"t":"2022-10-12T13:30:00.188390144Z","x":"P"},{"c":"O","p":138.99,"t":"2022-10-12T13:30:01.474665705Z","x":"Q"},{"c":"Q","p":138.99,"t":"2022-10-12T13:30:01.475216565Z","x":"Q"}]},{"c":[{"c":"M","p":142.94,"t":"2022-10-13T20:00:00.166980864Z","x":"P"}],"d":"2022-10-13","o":[{"c":"Q","p":134.8,"t":"2022-10-13T13:30:00.20304384Z","x":"P"},{"c":"O","p":135,"t":"2022-10-13T13:30:01.688322951Z","x":"Q"},{"c":"Q","p":135,"t":"2022-10-13T13:30:01.699259366Z","x":"Q"}]}],"TSLA":[{"c":[{"c":"M","p":217.23,"t":"2022-10-12T20:00:00.124164096Z","x":"P"},{"c":"6","p":217.24,"t":"2022-10-12T20:00:00.469874365Z","x":"Q"},{"c":"M","p":217.24,"t":"2022-10-12T20:00:00.469912641Z","x":"Q"}],"d":"2022-10-12","o":[{"c":"Q","p":215.39,"t":"2022-10-12T13:30:00.065736192Z","x":"P"},{"c":"O","p":215.79,"t":"2022-10-12T13:30:01.349399539Z","x":"Q"},{"c":"Q","p":215.79,"t":"2022-10-12T13:30:01.349965972Z","x":"Q"}]},{"c":[{"c":"M","p":221.7,"t":"2022-10-13T20:00:00.152902912Z","x":"P"}],"d":"2022-10-13","o":[{"c":"Q","p":208.37,"t":"2022-10-13T13:30:00.068034304Z","x":"P"},{"c":"O","p":208.49,"t":"2022-10-13T13:30:01.079567733Z","x":"Q"},{"c":"Q","p":208.49,"t":"2022-10-13T13:30:01.090802222Z","x":"Q"}]}]},"next_page_token":"MjAyMi0xMC0xM1QyMDowMDowMC4xNTI5MDI5MTJafFA="}}},"schema":{"$ref":"#/components/schemas/stock_auctions_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Historical auctions","tags":["Stock"]}},"/v2/stocks/bars":{"get":{"description":"The historical stock bars API provides aggregates for a list of stock symbols between the specified dates.\n\nThe returned results are sorted by symbol first, then by bar timestamp. This means that you are likely to see only one symbol in your first response if there are enough bars for that symbol to hit the limit you requested.\n\nIn these situations, if you keep requesting again with the `next_page_token` from the previous response, you will eventually reach the other symbols if any bars were found for them.","operationId":"StockBars","parameters":[{"$ref":"#/components/parameters/stock_symbols"},{"$ref":"#/components/parameters/timeframe"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/stock_adjustment"},{"$ref":"#/components/parameters/stock_asof"},{"$ref":"#/components/parameters/stock_historical_feed"},{"$ref":"#/components/parameters/stock_currency"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"examples":{"bars":{"value":{"bars":{"AAPL":[{"c":178.21,"h":178.26,"l":178.21,"n":65,"o":178.26,"t":"2022-01-03T09:00:00Z","v":1118,"vw":178.235733}]},"next_page_token":"QUFQTHxNfDIwMjItMDEtMDNUMDk6MDA6MDAuMDAwMDAwMDAwWg=="}}},"schema":{"$ref":"#/components/schemas/stock_bars_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Historical bars","tags":["Stock"]}},"/v2/stocks/bars/latest":{"get":{"description":"The latest bars endpoint provides the latest minute bar for the given ticker symbols.\n","operationId":"StockLatestBars","parameters":[{"$ref":"#/components/parameters/stock_symbols"},{"$ref":"#/components/parameters/stock_latest_feed"},{"$ref":"#/components/parameters/stock_currency"}],"responses":{"200":{"content":{"application/json":{"examples":{"bars":{"value":{"bars":{"AAPL":{"c":172.79,"h":172.81,"l":172.78,"n":20,"o":172.81,"t":"2022-08-17T08:58:00Z","v":1002,"vw":172.791417},"TSLA":{"c":914.3,"h":914.3,"l":914.3,"n":20,"o":914.3,"t":"2022-08-17T08:57:00Z","v":751,"vw":914.294634}}}}},"schema":{"$ref":"#/components/schemas/stock_latest_bars_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Latest bars","tags":["Stock"]}},"/v2/stocks/meta/conditions/{ticktype}":{"get":{"description":"Returns the mapping between the condition codes and names.","operationId":"StockMetaConditions","parameters":[{"description":"The type of ticks.","in":"path","name":"ticktype","required":true,"schema":{"enum":["trade","quote"],"type":"string"}},{"description":"The one character name of the tape.","in":"query","name":"tape","required":true,"schema":{"enum":["A","B","C"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/stock_conditions"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Condition codes","tags":["Stock"]}},"/v2/stocks/meta/exchanges":{"get":{"description":"Returns the mapping between the stock exchange codes and the corresponding exchange names.\n","operationId":"StockMetaExchanges","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/stock_exchanges"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Exchange codes","tags":["Stock"]}},"/v2/stocks/quotes":{"get":{"description":"The historical stock quotes API provides quote data for a list of stock symbols between the specified dates.\n\nThe returned results are sorted by symbol first, then by the quote timestamp. This means that you are likely to see only one symbol in your first response if there are enough quotes for that symbol to hit the limit you requested.\n\nIn these situations, if you keep requesting again with the `next_page_token` from the previous response, you will eventually reach the other symbols if any quotes were found for them.","operationId":"StockQuotes","parameters":[{"$ref":"#/components/parameters/stock_symbols"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/stock_asof"},{"$ref":"#/components/parameters/stock_historical_feed"},{"$ref":"#/components/parameters/stock_currency"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"examples":{"quotes":{"value":{"next_page_token":"QUFQTHwyMDIyLTAxLTAzVDA5OjAwOjAwLjAyODI5NDQ1MVp8MjM3NjQ0Qzg=","quotes":{"AAPL":[{"ap":0,"as":0,"ax":" ","bp":177.92,"bs":4,"bx":"Q","c":["Y"],"t":"2022-01-03T09:00:00.028160898Z","z":"C"},{"ap":178.8,"as":4,"ax":"Q","bp":177.92,"bs":4,"bx":"Q","c":["R"],"t":"2022-01-03T09:00:00.028294451Z","z":"C"}]}}}},"schema":{"$ref":"#/components/schemas/stock_quotes_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Historical quotes","tags":["Stock"]}},"/v2/stocks/quotes/latest":{"get":{"description":"The latest quotes endpoint provides the latest best bid and ask prices for the given ticker symbols.\n","operationId":"StockLatestQuotes","parameters":[{"$ref":"#/components/parameters/stock_symbols"},{"$ref":"#/components/parameters/stock_latest_feed"},{"$ref":"#/components/parameters/stock_currency"}],"responses":{"200":{"content":{"application/json":{"examples":{"quotes":{"value":{"quotes":{"AAPL":{"ap":172.7,"as":1,"ax":"Q","bp":172.62,"bs":2,"bx":"Q","c":["R"],"t":"2022-08-17T10:07:40.286587431Z","z":"C"},"TSLA":{"ap":911.6,"as":1,"ax":"Q","bp":911.3,"bs":1,"bx":"K","c":["R"],"t":"2022-08-17T10:07:49.387064037Z","z":"C"}}}}},"schema":{"$ref":"#/components/schemas/stock_latest_quotes_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Latest quotes","tags":["Stock"]}},"/v2/stocks/snapshots":{"get":{"description":"The snapshot endpoint for multiple tickers provides the latest trade, latest quote, minute bar, daily bar, and previous daily bar data for each given ticker symbol.\n","operationId":"StockSnapshots","parameters":[{"$ref":"#/components/parameters/stock_symbols"},{"$ref":"#/components/parameters/stock_latest_feed"},{"$ref":"#/components/parameters/stock_currency"}],"responses":{"200":{"content":{"application/json":{"examples":{"snapshots":{"value":{"AAPL":{"dailyBar":{"c":173.03,"h":173.71,"l":171.6618,"n":515139,"o":172.62,"t":"2022-08-16T04:00:00Z","v":56457696,"vw":172.743391},"latestQuote":{"ap":172.7,"as":5,"ax":"Q","bp":172.6,"bs":2,"bx":"Q","c":["R"],"t":"2022-08-17T10:18:27.052763263Z","z":"C"},"latestTrade":{"c":["@","T"],"i":1011,"p":172.61,"s":160,"t":"2022-08-17T10:18:24.114694956Z","x":"Q","z":"C"},"minuteBar":{"c":172.69,"h":172.69,"l":172.69,"n":3,"o":172.69,"t":"2022-08-17T10:16:00Z","v":106,"vw":172.688113},"prevDailyBar":{"c":173.19,"h":173.39,"l":171.345,"n":501626,"o":171.5,"t":"2022-08-15T04:00:00Z","v":54091719,"vw":172.625371}},"TSLA":{"dailyBar":{"c":919.69,"h":944,"l":908.65,"n":805572,"o":935,"t":"2022-08-16T04:00:00Z","v":29378774,"vw":925.215087},"latestQuote":{"ap":911.75,"as":4,"ax":"P","bp":911.31,"bs":1,"bx":"Q","c":["R"],"t":"2022-08-17T10:18:23.84717767Z","z":"C"},"latestTrade":{"c":["@","T"],"i":2047,"p":911.99,"s":100,"t":"2022-08-17T10:13:12.952851456Z","x":"P","z":"C"},"minuteBar":{"c":911.99,"h":911.99,"l":911.99,"n":64,"o":911.99,"t":"2022-08-17T10:13:00Z","v":740,"vw":911.780405},"prevDailyBar":{"c":927.96,"h":939.4,"l":903.69,"n":825109,"o":905.32,"t":"2022-08-15T04:00:00Z","v":29786389,"vw":923.982755}}}}},"schema":{"$ref":"#/components/schemas/stock_snapshots_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Snapshots","tags":["Stock"]}},"/v2/stocks/trades":{"get":{"description":"The historical stock trades API provides trade data for a list of stock symbols between the specified dates.\n\nThe returned results are sorted by symbol first then by trade timestamp. This means that you are likely to see only one symbol in your first response if there are enough trades for that symbol to hit the limit you requested.\n\nIn these situations, if you keep requesting again with the `next_page_token` from the previous response, you will eventually reach the other symbols if any trades were found for them.","operationId":"StockTrades","parameters":[{"$ref":"#/components/parameters/stock_symbols"},{"$ref":"#/components/parameters/start"},{"$ref":"#/components/parameters/end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/stock_asof"},{"$ref":"#/components/parameters/stock_historical_feed"},{"$ref":"#/components/parameters/stock_currency"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/sort"}],"responses":{"200":{"content":{"application/json":{"examples":{"trades":{"value":{"next_page_token":"QUFQTHwyMDIyLTAxLTAzVDA5OjAwOjAwLjI0NDgzOTY4MFp8UHwwOTIyMzM3MjAzNjg1NDc3NTgxMA==","trades":{"AAPL":[{"c":["@","T"],"i":1,"p":178.26,"s":246,"t":"2022-01-03T09:00:00.086175744Z","x":"P","z":"C"},{"c":["@","F","T","I"],"i":2,"p":178.26,"s":1,"t":"2022-01-03T09:00:00.24483968Z","x":"P","z":"C"}]}}}},"schema":{"$ref":"#/components/schemas/stock_trades_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Historical trades","tags":["Stock"]}},"/v2/stocks/trades/latest":{"get":{"description":"The latest trades endpoint provides the latest trades for the given ticker symbols.\n\nTrades with any conditions that causes them to not update the bar price are excluded. For example a trade with condition `I` (odd lot) will never appear on this endpoint. You can find the complete list of excluded conditions in [this FAQ](https://docs.alpaca.markets/docs/market-data-faq#how-are-bars-aggregated).","operationId":"StockLatestTrades","parameters":[{"$ref":"#/components/parameters/stock_symbols"},{"$ref":"#/components/parameters/stock_latest_feed"},{"$ref":"#/components/parameters/stock_currency"}],"responses":{"200":{"content":{"application/json":{"examples":{"trades":{"value":{"trades":{"AAPL":{"c":["@","F","T"],"i":826,"p":172.78,"s":100,"t":"2022-08-17T09:50:43.361102308Z","x":"Q","z":"C"}}}}},"schema":{"$ref":"#/components/schemas/stock_latest_trades_resp"}}},"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/ratelimit_limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/ratelimit_remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/ratelimit_reset"}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"429":{"$ref":"#/components/responses/429"},"500":{"$ref":"#/components/responses/500"}},"summary":"Latest trades","tags":["Stock"]}}},"security":[{"apiKey":[],"apiSecret":[]}],"servers":[{"description":"Production","url":"https://data.alpaca.markets"},{"description":"Sandbox","url":"https://data.sandbox.alpaca.markets"}],"tags":[{"description":"Endpoints for stocks.","name":"Stock"},{"description":"Endpoints for option data.","name":"Option"},{"description":"Endpoints for indices.","name":"Index"},{"description":"Endpoints for cryptocurrencies.","name":"Crypto"},{"description":"Endpoints for crypto perpetual futures.","name":"Crypto perpetual futures"},{"description":"Endpoints for fixed income data.","name":"Fixed income"},{"description":"Endpoints for forex currency rates.","name":"Forex"},{"description":"Endpoints for getting company logo images.","name":"Logos"},{"description":"Endpoints for most active stocks and top movers.","name":"Screener"},{"description":"Endpoints for getting news articles about the stock market.","name":"News"},{"description":"Corporate actions (splits, dividends, etc.).","name":"Corporate actions"}]}