question

Upvotes
Accepted
20 2 1 5

Tick History (TRTH) Stored and Scheduled TimeZone and ExtractionDateTime

I am making a Tick History (v2 - REST API) request for a "Stored and Scheduled" Request (TRTH API Guide Chapter 10). In the data payload for the example request in Step 4 there is a TimeZone specified. What is the allowed list of timezones for this field? I have tried others, e.g. UTC (acronym and full name) and GMT plus a few others and they are rejected. It looks like the default is GMT, and is echoed as "GMT Standard". And, why is it necessary to specify an ExtractionDateTime for an immediate request, when using a stored instrument list and stored template, where the template has the time range for the tick history query? I omitted both parameters from the request and it seems to work (didn't return any errors).

dss-rest-apitick-history-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
11.3k 25 8 14

According to the DSS REST API Reference Tree, TimeZone can be set to any valid .Net TimeZoneInfo.StandardName. Below is list of the available time zone in my machine generated by the GetSystemTimeZones() for your reference.

"Dateline Standard Time" - (UTC-12:00) International Date Line West
"UTC-11" - (UTC-11:00) Coordinated Universal Time-11
"Hawaiian Standard Time" - (UTC-10:00) Hawaii
"Alaskan Standard Time" - (UTC-09:00) Alaska
"Pacific Standard Time (Mexico)" - (UTC-08:00) Baja California
"Pacific Standard Time" - (UTC-08:00) Pacific Time (US & Canada)
"US Mountain Standard Time" - (UTC-07:00) Arizona
"Mountain Standard Time (Mexico)" - (UTC-07:00) Chihuahua, La Paz, Mazatlan
"Mountain Standard Time" - (UTC-07:00) Mountain Time (US & Canada)
"Central America Standard Time" - (UTC-06:00) Central America
"Central Standard Time" - (UTC-06:00) Central Time (US & Canada)
"Central Standard Time (Mexico)" - (UTC-06:00) Guadalajara, Mexico City, Monterrey
"Canada Central Standard Time" - (UTC-06:00) Saskatchewan
"SA Pacific Standard Time" - (UTC-05:00) Bogota, Lima, Quito
"Eastern Standard Time" - (UTC-05:00) Eastern Time (US & Canada)
"US Eastern Standard Time" - (UTC-05:00) Indiana (East)
"Venezuela Standard Time" - (UTC-04:30) Caracas
"Paraguay Standard Time" - (UTC-04:00) Asuncion
"Atlantic Standard Time" - (UTC-04:00) Atlantic Time (Canada)
"Central Brazilian Standard Time" - (UTC-04:00) Cuiaba
"SA Western Standard Time" - (UTC-04:00) Georgetown, La Paz, Manaus, San Juan
"Pacific SA Standard Time" - (UTC-04:00) Santiago
"Newfoundland Standard Time" - (UTC-03:30) Newfoundland
"E. South America Standard Time" - (UTC-03:00) Brasilia
"Argentina Standard Time" - (UTC-03:00) Buenos Aires
"SA Eastern Standard Time" - (UTC-03:00) Cayenne, Fortaleza
"Greenland Standard Time" - (UTC-03:00) Greenland
"Montevideo Standard Time" - (UTC-03:00) Montevideo
"Bahia Standard Time" - (UTC-03:00) Salvador
"UTC-02" - (UTC-02:00) Coordinated Universal Time-02
"Mid-Atlantic Standard Time" - (UTC-02:00) Mid-Atlantic - Old
"Azores Standard Time" - (UTC-01:00) Azores
"Cape Verde Standard Time" - (UTC-01:00) Cape Verde Is.
"Morocco Standard Time" - (UTC) Casablanca
"Coordinated Universal Time" - (UTC) Coordinated Universal Time
"GMT Standard Time" - (UTC) Dublin, Edinburgh, Lisbon, London
"Greenwich Standard Time" - (UTC) Monrovia, Reykjavik
"W. Europe Standard Time" - (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
"Central Europe Standard Time" - (UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Pr
"Romance Standard Time" - (UTC+01:00) Brussels, Copenhagen, Madrid, Paris
"Central European Standard Time" - (UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb
"W. Central Africa Standard Time" - (UTC+01:00) West Central Africa
"Namibia Standard Time" - (UTC+01:00) Windhoek
"GTB Standard Time" - (UTC+02:00) Athens, Bucharest
"Middle East Standard Time" - (UTC+02:00) Beirut
"Egypt Standard Time" - (UTC+02:00) Cairo
"Syria Standard Time" - (UTC+02:00) Damascus
"E. Europe Standard Time" - (UTC+02:00) E. Europe
"South Africa Standard Time" - (UTC+02:00) Harare, Pretoria
"FLE Standard Time" - (UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius
"Turkey Standard Time" - (UTC+02:00) Istanbul
"Jerusalem Standard Time" - (UTC+02:00) Jerusalem
"Libya Standard Time" - (UTC+02:00) Tripoli
"Jordan Standard Time" - (UTC+03:00) Amman
"Arabic Standard Time" - (UTC+03:00) Baghdad
"Kaliningrad Standard Time" - (UTC+03:00) Kaliningrad, Minsk
"Arab Standard Time" - (UTC+03:00) Kuwait, Riyadh
"E. Africa Standard Time" - (UTC+03:00) Nairobi
"Iran Standard Time" - (UTC+03:30) Tehran
"Arabian Standard Time" - (UTC+04:00) Abu Dhabi, Muscat
"Azerbaijan Standard Time" - (UTC+04:00) Baku
"Russian Standard Time" - (UTC+04:00) Moscow, St. Petersburg, Volgograd
"Mauritius Standard Time" - (UTC+04:00) Port Louis
"Georgian Standard Time" - (UTC+04:00) Tbilisi
"Caucasus Standard Time" - (UTC+04:00) Yerevan
"Afghanistan Standard Time" - (UTC+04:30) Kabul
"West Asia Standard Time" - (UTC+05:00) Ashgabat, Tashkent
"Pakistan Standard Time" - (UTC+05:00) Islamabad, Karachi
"India Standard Time" - (UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi
"Sri Lanka Standard Time" - (UTC+05:30) Sri Jayawardenepura
"Nepal Standard Time" - (UTC+05:45) Kathmandu
"Central Asia Standard Time" - (UTC+06:00) Astana
"Bangladesh Standard Time" - (UTC+06:00) Dhaka
"Ekaterinburg Standard Time" - (UTC+06:00) Ekaterinburg
"Myanmar Standard Time" - (UTC+06:30) Yangon (Rangoon)
"SE Asia Standard Time" - (UTC+07:00) Bangkok, Hanoi, Jakarta
"N. Central Asia Standard Time" - (UTC+07:00) Novosibirsk
"China Standard Time" - (UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi
"North Asia Standard Time" - (UTC+08:00) Krasnoyarsk
"Malay Peninsula Standard Time" - (UTC+08:00) Kuala Lumpur, Singapore
"W. Australia Standard Time" - (UTC+08:00) Perth
"Taipei Standard Time" - (UTC+08:00) Taipei
"Ulaanbaatar Standard Time" - (UTC+08:00) Ulaanbaatar
"North Asia East Standard Time" - (UTC+09:00) Irkutsk
"Tokyo Standard Time" - (UTC+09:00) Osaka, Sapporo, Tokyo
"Korea Standard Time" - (UTC+09:00) Seoul
"Cen. Australia Standard Time" - (UTC+09:30) Adelaide
"AUS Central Standard Time" - (UTC+09:30) Darwin
"E. Australia Standard Time" - (UTC+10:00) Brisbane
"AUS Eastern Standard Time" - (UTC+10:00) Canberra, Melbourne, Sydney
"West Pacific Standard Time" - (UTC+10:00) Guam, Port Moresby
"Tasmania Standard Time" - (UTC+10:00) Hobart
"Yakutsk Standard Time" - (UTC+10:00) Yakutsk
"Central Pacific Standard Time" - (UTC+11:00) Solomon Is., New Caledonia
"Vladivostok Standard Time" - (UTC+11:00) Vladivostok
"New Zealand Standard Time" - (UTC+12:00) Auckland, Wellington
"UTC+12" - (UTC+12:00) Coordinated Universal Time+12
"Fiji Standard Time" - (UTC+12:00) Fiji
"Magadan Standard Time" - (UTC+12:00) Magadan
"Kamchatka Standard Time" - (UTC+12:00) Petropavlovsk-Kamchatsky - Old
"Tonga Standard Time" - (UTC+13:00) Nuku'alofa
"Samoa Standard Time" - (UTC+13:00) Samoa

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
13.7k 26 8 12

@mark.ringrose

It is not necessary to specify an ExtractionDateTime or TimeZone for an immediate schedule request, as described in the DSS REST API Reference Tree, and illustrated in the TRTH REST API Tutorial 11.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.