handle newly-encountered DELAYED error
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user