Okay, as a basic example, I’m sending the follow message to access “@NQ” data (continuous):
symbol: "@NQ",
chartDescription: {
withHistogram: true,
elementSize: 5,
elementSizeUnit: "UnderlyingUnits",
underlyingType: "MinuteBar",
},
timeRange: {
asMuchAsElements: 300,
//closestTimestamp: "2021-04-04T19:45:00.000Z", // Enable this to use historical
},
This allows me to access 5m bars on the “@NQ” with histograms intact. To go back further, I enable
closestTimestamp
and I am able to go back ~2 months, BUT, if I keep the following enabled
withHistogram: true
It just returns, which I presume means no data:
a[{“s”:200,“i”:2,“d”:{“mode”:“RealTime”,“historicalId”:743368,“realtimeId”:743368}}]
a[{“e”:“chart”,“d”:{“charts”:[{“id”:743368,“eoh”:true}]}}]
When I disable the histogram, I am able to access 5m bars back 2 months. When I then try to go back 3 or 4 months by adjusting closestTimestamp
, it doesn’t seem to work.
I think I’ve read the “@NQ” goes back to 2017, but is there some other way I should be accessing this historical market data (5m bars) as well as associated histograms?
Thanks for your help and I appreciate your clarification! Great API nonetheless