handle newly-encountered `DELAYED` error

main
Avraham Sakal 10 months ago
parent 71f72eb474
commit c6e5c76952

@ -138,6 +138,8 @@ export async function* makeGetOptionContractAggregatesIterator({
})) || [];
} else if (latestBatchResponse.status === "NOT_AUTHORIZED") {
console.error("Skipping due to:", latestBatchResponse);
} else if (latestBatchResponse.status === "DELAYED") {
console.error("Skipping due to:", latestBatchResponse);
} else {
console.error(latestBatchResponse);
throw new Error(`error fetching option contract aggregate ${url}`);

Loading…
Cancel
Save