Massive.com (formerly Polygon.io)Massive stock market data API
GET/v2/last/trade/{stocksTicker}
Get the last stock trade
Retrieve the latest available trade for a case-sensitive stock ticker. The result includes price, size, exchange, conditions, and nanosecond timestamps when supplied by the feed. Availability and recency depend on the account's stock-data plan.
Use a Massive API key to query U.S. stock trades, OHLC aggregates, unified snapshots, and ticker reference data; availability depends on the data plan.
Request
- operationId
getLastTrade- Server
https://api.massive.com- Authentication
- BearerAuth
Request parameters
stocksTicker
pathstringrequired
Case-sensitive stock ticker, for example `AAPL`.
AAPL
Responses
200
LastTradeResponseapplication/json
Successful response
Properties: request_idresultsstatus
default
ErrorResponseapplication/json
Request failed because of authentication, authorization, validation, rate limiting, or a server error.
Properties: statuserrormessagerequest_id
{
"request_id": "f05562305bd26ced64b98ed68b3c5d96",
"results": {
"T": "AAPL",
"c": [
37
],
"ds": "25.0",
"e": 0,
"f": 1617901342969796400,
"i": "118749",
"p": 129.8473,
"q": 3135876
},
"status": "OK"
}