Session information
Overview
'/session' endpoint provides the information about the symbol's session such as holidays and basic information.
Key Features:
- Supports both GET and POST requests
- Includes historical and future (up to one year) session information
GET request
https://insightsentry.p.rapidapi.com/v1/session?code=NASDAQ:AAPL
POST request
{
"code": "NASDAQ:AAPL"
}
Request Parameter
Response Data
{
"code": "NASDAQ:AAPL",
"holidays": [
// omitted for brevity
"2024-06-19T00:00:00.000",
"2024-07-04T00:00:00.000",
"2024-09-02T00:00:00.000",
"2024-11-28T00:00:00.000",
"2024-12-25T00:00:00.000",
"2025-01-01T00:00:00.000",
"2025-01-20T00:00:00.000",
"2025-02-17T00:00:00.000",
"2025-04-18T00:00:00.000",
"2025-05-26T00:00:00.000",
"2025-06-19T00:00:00.000",
"2025-07-04T00:00:00.000",
"2025-09-01T00:00:00.000",
"2025-11-27T00:00:00.000",
"2025-12-25T00:00:00.000"
],
"start_hour": "0930",
"end_hour": "1600",
"details": [
{
"session_correction": [
{
"startHour": "0930",
"endHour": "1300",
"dates": [
"2019-07-03T00:00:00.000",
"2019-11-29T00:00:00.000",
"2019-12-24T00:00:00.000",
"2021-11-26T00:00:00.000",
"2022-11-25T00:00:00.000",
"2023-07-03T00:00:00.000",
"2023-11-24T00:00:00.000",
"2024-07-03T00:00:00.000",
"2024-11-29T00:00:00.000",
"2024-12-24T00:00:00.000",
"2025-07-03T00:00:00.000",
"2025-11-28T00:00:00.000",
"2025-12-24T00:00:00.000"
]
}
],
"session": "0930-1600",
"description": "Regular Trading Hours"
},
{
"session_correction": [
{
"startHour": "0400",
"endHour": "2000",
"dates": [
"2021-11-26T00:00:00.000",
"2022-11-25T00:00:00.000",
"2023-07-03T00:00:00.000",
"2023-11-24T00:00:00.000",
"2024-07-03T00:00:00.000",
"2024-11-29T00:00:00.000",
"2024-12-24T00:00:00.000",
"2025-07-03T00:00:00.000",
"2025-11-28T00:00:00.000",
"2025-12-24T00:00:00.000"
]
},
{
"startHour": "0400",
"endHour": "2100",
"dates": [
"2019-07-03T00:00:00.000",
"2019-11-29T00:00:00.000",
"2019-12-24T00:00:00.000"
]
}
],
"session": "0400-2000",
"description": "Extended Trading Hours"
},
{
"session_correction": [],
"session": "0400-0930",
"description": "Premarket"
},
{
"session_correction": [
{
"startHour": "1300",
"endHour": "2000",
"dates": [
"2021-11-26T00:00:00.000",
"2022-11-25T00:00:00.000",
"2023-07-03T00:00:00.000",
"2023-11-24T00:00:00.000",
"2024-07-03T00:00:00.000",
"2024-11-29T00:00:00.000",
"2024-12-24T00:00:00.000",
"2025-07-03T00:00:00.000",
"2025-11-28T00:00:00.000",
"2025-12-24T00:00:00.000"
]
},
{
"startHour": "1300",
"endHour": "2100",
"dates": [
"2019-07-03T00:00:00.000",
"2019-11-29T00:00:00.000",
"2019-12-24T00:00:00.000"
]
}
],
"session": "1600-2000",
"description": "Postmarket"
}
],
"currency_code": "USD",
"description": "Apple",
"type": "stock",
"timezone": "America/New_York",
"last_update": 1733468177797,
"tick_size": "0.0001 1 0.01",
"price_scale": 100,
"point_value": 1,
"minimum_movement": 1
}
Response Fields
Code Examples
import requests
url = "https://insightsentry.p.rapidapi.com/v1/session"
headers = {
"x-rapidapi-key": "<your APIkey>",
"x-rapidapi-host": "insightsentry.p.rapidapi.com"
}
data = {
"code": "NASDAQ:AAPL"
}
response = requests.post(url, headers=headers, json=data)
print(response.text)
# or you can also use GET request
response = requests.get("https://insightsentry.p.rapidapi.com/v1/session?code=NASDAQ:AAPL", headers=headers)
print(response.text)