---
title: "Latest trade (single symbol)"
method: GET
path: "/v2/stocks/{symbol}/trades/latest"
tags: ["Stock"]
---

# Latest trade (single symbol)

`GET /v2/stocks/{symbol}/trades/latest`

## Request

- Base URL: `https://data.giftcity.in.alpaca.markets`
- URL: `https://data.giftcity.in.alpaca.markets/v2/stocks/{symbol}/trades/latest`
- Auth: one of:
  - API key in header `APCA-API-KEY-ID` and API key in header `APCA-API-SECRET-KEY`
  - HTTP basic

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](https://docs.alpaca.markets/docs/market-data-faq#how-are-bars-aggregated).

## Path parameters

- `symbol` string, required

## Query parameters

- `feed` 'delayed_sip' | 'iex' | 'otc' | 'sip' | 'boats' | 'overnight'
- `currency` string

## Response `200`

OK

- StockLatestTradesRespSingle
  - `currency` string
  - `symbol` string, required
  - `trade` StockTrade, required: A stock trade.
    - `c` string[], required: Condition flags. See `v2/stocks/meta/conditions/trade` for more details.
    - `i` integer, required: Trade ID sent by the exchange.
    - `p` number, double, required: Trade price.
    - `s` integer, required: Trade size.
    - `t` string, date-time, required: Timestamp in RFC-3339 format with nanosecond precision.
    - `u` string: Update to the trade. This field is optional, if it's missing, the trade is valid. Otherwise, it can have these values: - canceled: indicates that the trade has been canceled - incorrect: indicates that the trade has been corrected and the given trade is no longer valid - corrected: indicates that this trade is the correction of a previous (incorrect) trade
    - `x` string, required: Exchange code. See `v2/stocks/meta/exchanges` for more details.
    - `z` 'A' | 'B' | 'C' | 'N' | 'O', required: - A: New York Stock Exchange - B: NYSE Arca, Bats, IEX and other regional exchanges - C: NASDAQ - N: Overnight - O: OTC

## Other responses

- `400`: One of the request parameters is invalid. See the returned message for details.
- `401`: Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key.
- `403`: The requested resource is forbidden.
- `429`: Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit.
- `500`: 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/).

---

[API](https://skmtc.dev/alpacahq/apis/market-data-api.md) - [All operations](https://skmtc.dev/alpacahq/apis/market-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alpacahq/apis/market-data-api/revisions/82f96f2d0134?raw)
