curl --request GET \
--url https://api.aries.com/v1/indices/bars \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aries.com/v1/indices/bars"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aries.com/v1/indices/bars', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aries.com/v1/indices/bars",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aries.com/v1/indices/bars"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aries.com/v1/indices/bars")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aries.com/v1/indices/bars")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"bars": [
{
"close": 6863.25,
"endDate": "12/22/2025",
"endTime": "9:31 AM",
"high": 6865,
"low": 6858.5,
"open": 6860,
"startDate": "12/22/2025",
"startTime": "9:30 AM",
"volume": 0
}
]
}Index Bars
Retrieve OHLC (Open, High, Low, Close) bar data for multiple market indices in a single request. Returns historical price bars with volume data for batch analysis of index movements.
Use Case: Fetch daily bars for S&P 500, NASDAQ, and Russell 2000 to compare performance trends across major indices over the past month.
curl --request GET \
--url https://api.aries.com/v1/indices/bars \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aries.com/v1/indices/bars"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aries.com/v1/indices/bars', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aries.com/v1/indices/bars",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aries.com/v1/indices/bars"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aries.com/v1/indices/bars")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aries.com/v1/indices/bars")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"bars": [
{
"close": 6863.25,
"endDate": "12/22/2025",
"endTime": "9:31 AM",
"high": 6865,
"low": 6858.5,
"open": 6860,
"startDate": "12/22/2025",
"startTime": "9:30 AM",
"volume": 0
}
]
}Authorizations
OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.
Query Parameters
Index identifier to query. For Symbol-type identifiers, use the full <SYMBOL>.<GROUP> form (e.g. SPX.IND_CBOM). For other identifier types, set identifierType accordingly.
"SPX.IND_CBOM"
How to interpret the value you sent in identifier. Defaults to Symbol. See IndicesIdentifierType for the full set of accepted values.
Which kind of identifier you are sending in identifier / identifiers. Provide the matching value:
Symbol— index ticker (e.g.SPX.IND_CBOM). Default.CIK— SEC Central Index Key.CUSIP— 9-character U.S./Canadian security identifier.ISIN— 12-character international identifier.Valoren— Swiss security identifier.SEDOL— 7-character UK identifier.FIGI— Bloomberg Financial Instrument Global Identifier.CompositeFIGI— country-level composite FIGI.
Symbol, CIK, CUSIP, ISIN, Valoren, SEDOL, FIGI, CompositeFIGI "Symbol"
Start of the bars window. Format: MM/DD/YYYY hh:mm am/pm in the index's native timezone (e.g. 12/22/2025 9:30 am).
"12/22/2025 9:30 am"
End of the bars window. Format: MM/DD/YYYY hh:mm am/pm in the index's native timezone (e.g. 12/22/2025 4:00 pm).
"12/22/2025 4:00 pm"
How long each bar covers. Pair with period to set the exact size (e.g. precision=Minutes, period=5 = 5-minute bars). Allowed values:
Minutes— minute bars (combine withperiodfor 1, 5, 15, 30-minute candles).Hours— hour bars (combine withperiodfor 1, 2, 4-hour candles). Unit of each bar. Combine withperiodto set the exact bar size.
Minutes, Hours "Minutes"
Multiplier on precision to set the bar size. Defaults to 1. Examples: precision=Minutes + period=5 = 5-minute bars; precision=Hours + period=4 = 4-hour bars.
Response
Successful response
Response containing OHLC bars for an index.
Array of index OHLC bars
Show child attributes
Show child attributes
Was this page helpful?