contango.market.calendar.nyse_calendar
contango.market.calendar.nyse_calendar
NYSECalendar
NYSECalendar()
Bases: Calendar
Trading calendar for the New York Stock Exchange (9:00AM-4:00PM on weekdays, holidays taken into account).
Initializes `NYSECalendar.
Source code in src\contango\market\calendar\nyse_calendar.py
19 20 21 22 23 24 | |
get_expected_timestamps
get_expected_timestamps(start_timestamp: int, end_timestamp: int, interval: Interval) -> tuple[datetime, ...]
Returns the expected available NYSE timestamps for the specified period.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start_timestamp
|
int
|
The start time in unix ms. |
required |
end_timestamp
|
int
|
The end time in unix ms. |
required |
interval
|
Interval
|
The bar interval type. |
required |
Returns:
| Type | Description |
|---|---|
tuple[datetime, ...]
|
tuple[datetime]: The close times of the available NYSE trading bars for the designated period. |
Source code in src\contango\market\calendar\nyse_calendar.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | |