This commit is contained in:
parent
85ad7f7387
commit
e9e2723c28
30 changed files with 380 additions and 44 deletions
|
|
@ -157,7 +157,7 @@ const nbboHistoryByContract: ContextHistory<OptionNBBO> = new Map();
|
|||
const equityQuoteHistoryByUnderlying: ContextHistory<EquityQuote> = new Map();
|
||||
const OPTION_CONTEXT_PRUNE_INTERVAL_MS = 60_000;
|
||||
|
||||
const pruneContextHistory = <T extends { ts: number }>(
|
||||
const pruneContextHistory = <T extends { ts: number; seq: number }>(
|
||||
history: ContextHistory<T>,
|
||||
maxKeys: number,
|
||||
ttlMs: number,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue