You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/price-feeds/pythnet-reference/schedule-format.mdx
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -35,16 +35,21 @@ If `weekly_schedule` is also undefined, pyth-agent will default to 24/7 publishi
35
35
This list can be empty. `MonthDay` is a compact date format where the first two digits represent the month (01 for January, 12 for December),
36
36
and the last two digits represent the day of the month (e.g., `0415` for April 15th). **Leading zeros are mandatory**.
37
37
-`DaySchedule` - A single day’s schedule. `DaySchedule` can be one of the following:
38
+
38
39
-`O` for all-day open
39
40
-`C` for all-day closed
40
-
-`HourMinute-HourMinute` for specific open and close times in the market-local timezone.
41
+
-`HourMinute-HourMinute[&HourMinute-HourMinute[&...]]` for specific open and close times in the market-local timezone.
41
42
The hour and minute are combined into a single 4-digit number, where the first two digits represent the hour (00 to 24),
42
43
and the last two digits represent the minute (00 to 59).
43
44
For example, `0415` represents 4:15 AM. The open time must precede the close time, and the range is inclusive.
45
+
44
46
-`24` can only be used to specify `2400`, which represents the final moment of a given day.
45
47
- Context: Without this special case, the next best thing would be `2359` which could cause a symbol to go down between `2359` and the next day’s `0000` for a full minute.
46
48
-**Leading zeros are mandatory**.
47
49
50
+
If there are multiple open and close times per day (e.g., maintenance window) you can specify them by using `&` in between. For instance `0000-1200&1300-2400` means that the
51
+
market is open all day except between 12:00 and 13:00.
52
+
48
53
**Examples**
49
54
50
55
-`Europe/Lisbon;O,O,O,O,O,C,C;` - 24h open from Monday to Friday, according to Lisbon’s perspective of midnight. Closed on Saturdays and Sundays.
@@ -54,6 +59,7 @@ If `weekly_schedule` is also undefined, pyth-agent will default to 24/7 publishi
54
59
-`Africa/Johannesburg;C,C,C,C,C,C,C;` - Trivial made-up example. The market is not trading on any day - exact opposite of 24/7 trading. Pyth-agent instances observing this value will not publish the product at any time. Note: The timezone has no effect in this case.
55
60
-`Europe/London;O,O,O,O,O,O,O;` - Trivial example. The market is open at all times and the timezone has no effect. Equivalent to default 24/7 behavior when `schedule` and `weekly_schedule` is not specified on a symbol.
56
61
-`America/New_York;O,O,O,O,O,C,C;1224/0930-1300,1225/C` - An example of specifying holidays. The market closes early on Christmas Eve and is fully closed on Christmas Day.
62
+
-`America/New_York;C,C,C,C,0930-1530&1830-2200,C,C;` - Only open Friday between 9:30AM - 3:30PM and 6:30PM - 10:00PM ET (EDT or EST)
0 commit comments