Get the reporting timezone.
const url = 'https://api.tradr.cloud/api/users/me/timezone';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.tradr.cloud/api/users/me/timezoneAuthed. The IANA zone the user’s P&L is bucketed into by day, week and month. It does not affect how individual timestamps are displayed. timezone is never null: accounts created before the preference existed store nothing and read as the default UTC, with stored false to say so. This is not an account’s trading-day timezone — that one defaults to US Eastern because that is where the US equity venues run, and setting either leaves the other untouched.
Responses
Section titled “ Responses ”The resolved reporting timezone, and whether it is the user’s own.
object
True when timezone is the value held on the user’s row. False when the column is unset — a row predating the preference — and the server default is being substituted; a client may then seed the column once from the zone it detects, which is what that user was already bucketing by.
Example
{ "stored": true, "timezone": "Europe/London"}Authentication required.