try catch in mmQuotes loop
This commit is contained in:
@@ -155,6 +155,7 @@ export class DLOBSubscriberIO extends DLOBSubscriber {
|
||||
|
||||
const nowMinus1000Ms = Date.now() - 1000;
|
||||
for (const quote of mmQuotes) {
|
||||
try {
|
||||
if (Number(quote['ts']) > nowMinus1000Ms) {
|
||||
const indicativeBaseOrder: Order = {
|
||||
status: OrderStatus.OPEN,
|
||||
@@ -238,6 +239,9 @@ export class DLOBSubscriberIO extends DLOBSubscriber {
|
||||
indicativeOrderId += 1;
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('skipping mmQuote: ', error);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.getL2AndSendMsg(marketArgs);
|
||||
|
||||
Reference in New Issue
Block a user