Previous Day Bar (OHLC)

GET
/v2/aggs/ticker/{forexTicker}/prev

Retrieve the previous trading day's open, high, low, and close (OHLC) data for a specified forex pair. This endpoint provides key pricing metrics, including volume, to help users assess recent performance and inform trading strategies.

Use Cases: Baseline comparison, technical analysis, market research, and daily reporting.

Path Parameters
forexTicker
string
required
The ticker symbol of the currency pair.
Query Parameters
adjusted
boolean
Whether or not the results are adjusted for splits. By default, results are adjusted. Set this to false to get results that are NOT adjusted for splits.
Response Attributes
ticker
string
The exchange symbol that this item is traded under.
adjusted
boolean
Whether or not this response was adjusted for splits.
queryCount
integer
The number of aggregates (minute or day) used to generate the response.
request_id
string
A request id assigned by the server.
resultsCount
integer
The total number of results for this request.
status
string
The status of this request's response.
results
array (object)
optional
An array of results containing the requested data.
T
string
The exchange symbol that this item is traded under.
c
number
The close price for the symbol in the given time period.
h
number
The highest price for the symbol in the given time period.
l
number
The lowest price for the symbol in the given time period.
n
integer
optional
The number of transactions in the aggregate window.
o
number
The open price for the symbol in the given time period.
t
integer
The Unix millisecond timestamp for the start of the aggregate window.
v
number
The trading volume of the symbol in the given time period.
vw
number
optional
The volume weighted average price.
Code Examples
Query URL
GET
Log in or Sign up to Polygon to run a query. It's free.
Scroll to see updated query response
Response Object
Did you find this page helpful?
Do you still need help with something?