broker.calendar.nyse_calendar
broker.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\broker\calendar\nyse_calendar.py
18 19 20 21 22 | |
get_expected_timestamps
get_expected_timestamps(start_timestamp: int, end_timestamp: int, interval: Interval) -> list[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 |
|---|---|
list[datetime]
|
list[datetime]: The close times of the available NYSE trading bars for the designated period. |
Source code in src\contango\broker\calendar\nyse_calendar.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |