Skip to content

Commit 3302e9b

Browse files
author
rob
committed
corrected time offsets
1 parent 4ee9fe7 commit 3302e9b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

sysbrokers/IB/ib_trading_hours.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,21 @@ def get_time_difference(time_zone_id: str) -> int:
118118
# Doesn't deal with DST. We will be conservative and only trade 1 hour
119119
# after and 1 hour before
120120
# confusingly, IB seem to have changed their time zone codes in 2020
121+
# some of these are legacy codes which could be removed
121122
time_diff_dict = {
122123
"CST (Central Standard Time)": 6,
123124
"MET (Middle Europe Time)": -1,
124125
"EST (Eastern Standard Time)": 5,
125-
"JST (Japan Standard Time)": -8,
126+
"JST (Japan Standard Time)": -9,
126127
"US/Eastern": 5,
127128
"MET": -1,
128129
"EST": 5,
129-
"JST": -8,
130-
"Japan": -8,
130+
"JST": -9,
131+
"Japan": -9,
131132
"US/Central": 6,
132133
"GB-Eire": 0,
133-
"Hongkong": -7,
134-
"Australia/NSW": -10,
134+
"Hongkong": -8,
135+
"Australia/NSW": -11,
135136
"": 0,
136137
}
137138
GMT_offset_hours = get_GMT_offset_hours()

0 commit comments

Comments
 (0)