GetPriceBarsBeforeDate
Description
Get historic price bars for the specified market in OHLC (open, high, low, close) format, suitable for plotting in candlestick charts. Returns price bars in ascending order from before the user given toTimestampUTC.
When there are no prices for a particular time period, no price bar is returned. Thus, it can appear that the array of price bars has "gaps", i.e. the gap between the date & time of each price bar might not be equal to interval x span.
Sample Urls:
- /market/1234/barhistorybefore?interval=MINUTE&span=15&toTimestampUTC=1400770798
- /market/735/barhistorybefore?interval=HOUR&span=1&toTimestampUTC=1400770798&maxResults=10
- /market/1577/barhistorybefore?interval=DAY&span=1&toTimestampUTC=1400770798
Service Info
| target | market |
| uriTemplate | /{MarketId}/barhistorybefore |
| transport | GET |
| envelope | URL |
| contentType | application/json |
Parameters
Return Value
Last updated: 07 November 2025
|
Copyright © 2026 StoneX