Error with 'closestTimestamp' field

When requesting market data, all other fields work besides closestTimestamp. here’s a what I have
timeRange: {
closestTimestamp: tools.UtcTime(endDate),
asFarAsTimestamp: tools.UtcTime(startDate)
works without closestTimestamp but only send eoh if I have it.
startdate is the farthest back.
end date is the closest to present time just fyi

nevermind i figured it out

1 Like