Implement scoped live 24h feed visibility
This commit is contained in:
parent
f28c8e641f
commit
48b0d980a6
11 changed files with 547 additions and 49 deletions
|
|
@ -73,6 +73,32 @@ describe("live manifest", () => {
|
|||
|
||||
expect(optionsSubscription?.filters).toBe(filters);
|
||||
});
|
||||
|
||||
it("includes scoped option and equity subscriptions", () => {
|
||||
const manifest = getLiveManifest(
|
||||
"/tape",
|
||||
"AAPL",
|
||||
60000,
|
||||
buildDefaultFlowFilters(),
|
||||
{
|
||||
underlying_ids: ["AAPL"],
|
||||
option_contract_id: "AAPL-2025-01-17-200-C"
|
||||
},
|
||||
{ underlying_ids: ["AAPL"] }
|
||||
);
|
||||
const optionsSubscription = manifest.find(
|
||||
(subscription): subscription is Extract<(typeof manifest)[number], { channel: "options" }> =>
|
||||
subscription.channel === "options"
|
||||
);
|
||||
const equitiesSubscription = manifest.find(
|
||||
(subscription): subscription is Extract<(typeof manifest)[number], { channel: "equities" }> =>
|
||||
subscription.channel === "equities"
|
||||
);
|
||||
|
||||
expect(optionsSubscription?.underlying_ids).toEqual(["AAPL"]);
|
||||
expect(optionsSubscription?.option_contract_id).toBe("AAPL-2025-01-17-200-C");
|
||||
expect(equitiesSubscription?.underlying_ids).toEqual(["AAPL"]);
|
||||
});
|
||||
});
|
||||
|
||||
describe("live tape pausable helpers", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue