curl --request GET \
--url https://api.aries.com/v1/market/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aries.com/v1/market/status"
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/market/status', 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/market/status",
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/market/status"
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/market/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aries.com/v1/market/status")
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{
"exchange": "US",
"isOpen": false,
"session": "",
"timestamp": 1765526940,
"timezone": "America/New_York"
}Market Status
Retrieve current market status indicating whether exchanges are open, closed, or in pre-market/after-hours trading sessions. Useful for determining real-time trading availability.
Use Case: Check if NYSE is open before placing live trades in your trading application.
curl --request GET \
--url https://api.aries.com/v1/market/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aries.com/v1/market/status"
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/market/status', 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/market/status",
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/market/status"
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/market/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aries.com/v1/market/status")
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{
"exchange": "US",
"isOpen": false,
"session": "",
"timestamp": 1765526940,
"timezone": "America/New_York"
}Authorizations
OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.
- Authorization URL
- https://app.aries.com/oauth2/authorize
- Token URL
- https://api.aries.com/v1/oauth2/token
- Refresh URL
- https://api.aries.com/v1/oauth2/token
- Token URL
- https://api.aries.com/v1/oauth2/token
- Refresh URL
- https://api.aries.com/v1/oauth2/token
Query Parameters
exchange code (case-insensitive). Select from the Try it dropdown or use any value from the supported exchange list in the API reference page.
Two-to-three-letter exchange code identifying a global stock exchange (e.g. US = U.S. exchanges, L = London, HK = Hong Kong, T = Tokyo, PA = Paris). Used as the exchange query parameter for market-status and market-holiday endpoints. Other endpoints may return a different exchange-code format depending on the upstream data source.
AD, AS, AT, AX, BA, BC, BD, BE, BH, BK, BO, BR, CA, CN, CO, CR, CS, DB, DE, DU, F, HA, HE, HK, HM, IC, IR, IS, JK, JO, KL, KQ, KS, KW, L, LS, MC, ME, MI, MT, MU, MX, NE, NL, NS, NZ, OL, OM, PA, PK, PM, PR, QA, RG, RO, SA, SC, SG, SI, SN, SR, SS, ST, SW, SX, SZ, T, TA, TG, TL, TO, TW, TWO, US, V, VI, VN, VS, WA "US"
Response
Successful response
Exchange code (e.g., US, TO, L)
Whether the market is currently open for trading
Current trading session (pre-market, regular, after-hours, or empty if closed)
Unix timestamp of the status data
Timezone of the exchange (e.g., America/New_York)
Was this page helpful?