Replies: 3 comments 1 reply
-
I found here time zone keys: investpy/investpy/utils/constant.py Line 425 in 85751d7
|
Beta Was this translation helpful? Give feedback.
-
Thanks. Do you know how to use the time zone keys? For example, "GMT": [15,
56], What do 15 and 56 do?
…On Mon, Jan 31, 2022 at 12:11 PM bakunet ***@***.***> wrote:
I found here time zone keys:
https://github.com/alvarobartt/investpy/blob/85751d7dedc8d808d200b2b476f6cab749ba61f9/investpy/utils/constant.py#L425
—
Reply to this email directly, view it on GitHub
<#452 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSTTBPW7RT6QZRIW27H5LTUYZ36HANCNFSM5FWLHOXA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Im also having trouble with the time, it might be timezone related, but might not be. When I use the library to get the economic calendar, the time returned is different by an hour each time i use it.
This returns:
or
You can see the time has shifted by an hour. i cant work it out, so wondered if anyone else has seen this and has a solution? |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for your library which I found really useful.
I am using it to retrieve economic calendar data and found some strange behavior on timezone conversions. It can be a bug.
Could you please let me know what 15 and 56 represent in the TIMEZONES' GMT values?
In .util.constant.py and TIMEZONES dictionary, 'GMT' is defined as [15, 56].
In news.py/economic_calendar function, you have 'timeZone': choice(cst.TIMEZONES[time_zone]).
What I found is that when 15 is used to retrieve data, the NFP time can be incorrect, but 56 is ok. Below is the proof.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions