globalFetchOptions
);
client.stocks
.trades(ticker, {
"timestamp.gte": String(from * 1000 * 1000),
"timestamp.lte": String(to * 1000 * 1000),
limit: limit,
sort: "timestamp",
order: "asc",
})
.then((data) => {
console.log(data.results[0], data.results[data.results.length - 1], 'api results outof order');
});
When I set pagination to true in restClient, then the final output is not in correct order.
Hello,
I am facing an ordering issue.
const globalFetchOptions = { pagination: true, // trace: true, }; const rest = restClient( "APIKEY", "https://api.polygon.io",