Access Token·InactiveLog in to your Public account to generate your access code.
Market Data
Get quotes
Retrieve real-time quotes
Returns market quotes for a set of instruments. Requires the `marketdata` scope. Supports EQUITY, OPTION and INDEX instruments.
POST/userapigateway/marketdata/{accountId}/quotes
Parameters
Path Parameters
string
Request body
Required*Parameters
Name | Type | Required | Description |
---|---|---|---|
accountId | string | Yes | - |
Body
application/jsonRequest Body
application/json
instrumentsobject[]required
List of instruments to query quotes.
Responses
Response
200
application/json
quotesobject[]
List of quotes
Response
400application/json
Invalid input: instrument not found or unsupported type (only EQUITY, OPTION or INDEX allowed), or the account is invalid or unauthorized.
No response body defined
curl --request POST \
--url https://api.public.com/userapigateway/marketdata/{accountId}/quotes \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"instruments": [
{
"symbol": "string",
"type": "EQUITY"
}
]
}'
{
"quotes": [
{
"instrument": {
"symbol": "string",
"type": "EQUITY"
},
"outcome": "SUCCESS",
"last": "string",
"lastTimestamp": "2023-11-07T05:31:56Z",
"bid": "string",
"bidSize": 123,
"bidTimestamp": "2023-11-07T05:31:56Z",
"ask": "string",
"askSize": 123,
"askTimestamp": "2023-11-07T05:31:56Z",
"volume": 1234567890,
"openInterest": 1234567890
}
]
}
The Public Individual API is for your own personal, non-commercial use. Unauthorized access is prohibited. You are responsible for all trades made via the API. Learn more