T-56: M1.1f — Pass 3 Stage B: pure in-memory listing matcher (EOD venue → listing, IB conid at (instrument, currency), QM/CEO ticker+span Tier 3)
This commit is contained in:
parent
381334720a
commit
0df989cc07
4 changed files with 162 additions and 123 deletions
|
|
@ -5,6 +5,7 @@ import {
|
|||
} from '../../apps/stock/data-pipeline/src/normalization/identifiers';
|
||||
import {
|
||||
parseTicker,
|
||||
parseTickerDetailed,
|
||||
type TickerSource,
|
||||
} from '../../apps/stock/data-pipeline/src/normalization/ticker';
|
||||
|
||||
|
|
@ -86,6 +87,23 @@ describe('parseTicker', () => {
|
|||
});
|
||||
expect(parseTicker('RY.ABCDEFGHIJKLM', 'eod')).toBeNull();
|
||||
expect(parseTicker('RY.PR.ABCDEFGHIJ', 'eod')).toBeNull();
|
||||
|
||||
expect(parseTickerDetailed('RY.ABCDEFGHIJKLM', 'eod')).toEqual({
|
||||
ok: false,
|
||||
reason: 'class_suffix_too_long',
|
||||
tickerRoot: 'RY',
|
||||
classSuffix: 'ABCDEFGHIJKLM',
|
||||
});
|
||||
expect(parseTickerDetailed('RY.PR.ABCDEFGHIJ.TO', 'ceo')).toEqual({
|
||||
ok: false,
|
||||
reason: 'class_suffix_too_long',
|
||||
tickerRoot: 'RY',
|
||||
classSuffix: 'PR.ABCDEFGHIJ',
|
||||
});
|
||||
expect(parseTickerDetailed('RY..A', 'eod')).toEqual({
|
||||
ok: false,
|
||||
reason: 'invalid_ticker',
|
||||
});
|
||||
});
|
||||
|
||||
test('completes 100,000 resolveIsin + parseTicker calls in under 500 ms', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue