We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I am facing an ordering issue.
const globalFetchOptions = { pagination: true, // trace: true, }; const rest = restClient( "APIKEY", "https://api.polygon.io", 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.
The text was updated successfully, but these errors were encountered:
I'll check this out thanks for reporting.
Sorry, something went wrong.
Thank you so much.
@justinpolygon is there an update on this?
Hey, @tradingproject19 -- I'm still checking with out and will reply later today.
justinpolygon
No branches or pull requests
Hello,
I am facing an ordering issue.
const globalFetchOptions = {
pagination: true,
// trace: true,
};
const rest = restClient(
"APIKEY",
"https://api.polygon.io",
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.
The text was updated successfully, but these errors were encountered: