I’m having trouble requesting a traditional 4 box renko chart via the API. I’ve been able to easily request minute and tick chart data. But for some reason having trouble with the Renko. I realize the API docs referenced:
Get Chart
Description: Client may have multiple charts for the same contract, so the response for md/getChart
request contains a subscription ID to properly track and unsubscribe from a real-time chart subscription. If you’re using JavaScript, don’t forget to check the section on charts in our API’s comprehensive JavaScript tutorial.
Endpoint: md/getChart
Parameters:
{
"symbol":"ESM7" | 123456,
"chartDescription": {
"underlyingType":"MinuteBar", // Available values: Tick, DailyBar, MinuteBar, Custom, DOM
"elementSize":15,
"elementSizeUnit":"UnderlyingUnits", // Available values: Volume, Range, UnderlyingUnits, Renko, MomentumRange, PointAndFigure, OFARange
"withHistogram": true | false
},
"timeRange": {
// All fields in "timeRange" are optional, but at least anyone is required
"closestTimestamp":"2017-04-13T11:33Z",
"closestTickId":123,
"asFarAsTimestamp":"2017-04-13T11:33Z",
"asMuchAsElements":66
},
}
So far I’ve tried the following with no success. Could really use some help here. The api docs are pretty ambiguous when it comes to requesting renko data:
{
elementSize: 4,
elementSizeUnit: "Seconds",
underlyingType: "Renko",
boxSize: 4 // 4 point bricks
}
{
elementSize: 4,
elementSizeUnit: "Renko",
underlyingType: "Tick",
boxSize: 4 // 4 point bricks
},