Add ingest adapter seam and IBKR stub

This commit is contained in:
dirtydishes 2025-12-27 23:02:11 -05:00
parent f2f12f2ebe
commit a35ab0b778
8 changed files with 239 additions and 94 deletions

View file

@ -0,0 +1,20 @@
import type { OptionIngestAdapter, OptionIngestHandlers } from "./types";
type IbkrOptionsAdapterConfig = {
host: string;
port: number;
clientId: number;
};
export const createIbkrOptionsAdapter = (
config: IbkrOptionsAdapterConfig
): OptionIngestAdapter => {
return {
name: "ibkr",
start: (_handlers: OptionIngestHandlers) => {
throw new Error(
`IBKR adapter not implemented. Requested ${config.host}:${config.port} clientId=${config.clientId}.`
);
}
};
};