Login Page - Create Account

Support Board


Date/Time: Mon, 07 Jul 2025 01:20:55 +0000



Post From: HistoricalPriceDataRequest

[2019-04-08 08:51:02]
User942837 - Posts: 108
How is this possible when RecordInterval if of type HistoricalDataIntervalEnum? I have no way of sending an int. I tried creating a new enum for value 3600 but it still didn't work. I just got second data! I also changed the type from ENUM to INT (which is not recommended as I am changing the auto generated code from Google protocol Buffer) and the output was the same. (Second data and not 60 minute when 3600 is passed in).

This is the auto generated HistoricalDataIntervalEnum code.

public enum HistoricalDataIntervalEnum {
[pbr::OriginalName("INTERVAL_TICK")] IntervalTick = 0,
[pbr::OriginalName("INTERVAL_1_SECOND")] Interval1Second = 1,
[pbr::OriginalName("INTERVAL_2_SECONDS")] Interval2Seconds = 2,
[pbr::OriginalName("INTERVAL_4_SECONDS")] Interval4Seconds = 4,
[pbr::OriginalName("INTERVAL_5_SECONDS")] Interval5Seconds = 5,
[pbr::OriginalName("INTERVAL_10_SECONDS")] Interval10Seconds = 10,
[pbr::OriginalName("INTERVAL_30_SECONDS")] Interval30Seconds = 30,
[pbr::OriginalName("INTERVAL_1_MINUTE")] Interval1Minute = 60,
[pbr::OriginalName("INTERVAL_1_DAY")] Interval1Day = 86400,
[pbr::OriginalName("INTERVAL_1_WEEK")] Interval1Week = 604800,
}


Kindly elaborate about how am I going to get OHLC data at 60 minute intervals.

Thank you
Date Time Of Last Edit: 2019-04-08 08:58:50