Stock
Latest trade (single symbol)
The latest trade endpoint provides the latest trade for the given ticker symbol.
Trades 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.
get/v2/stocks/{symbol}/trades/latest
Request
- Base URLhttps://data.giftcity.in.alpaca.markets
- URLhttps://data.giftcity.in.alpaca.markets/v2/stocks/{symbol}/trades/latest
- Auth
- API key in header APCA-API-KEY-ID and API key in header APCA-API-SECRET-KEY
- or HTTP basic
Path parameters
symbolstring required
The symbol to query.
Query parameters
feed'delayed_sip' | 'iex' | 'otc' | 'sip' | 'boats' | 'overnight'
The source feed of the data.
- sip: all US exchanges
- iex: Investors EXchange
- delayed_sip: SIP with a 15 minute delay
- boats: Blue Ocean, overnight US trading data
- overnight: derived overnight US trading data
- otc: over-the-counter exchanges
Default: sip if the user has the unlimited subscription, otherwise iex.
currencystring
The currency of all prices in ISO 4217 format. Default: USD.
Response
OK
Example response
{
"trade": {
"c": [
"@",
"T"
],
"i": 1,
"p": 178.26,
"s": 246,
"t": "2022-01-03T09:00:00.086175744Z",
"x": "P",
"z": "C"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.