Add ingest adapter seam and IBKR stub
This commit is contained in:
parent
f2f12f2ebe
commit
a35ab0b778
8 changed files with 239 additions and 94 deletions
20
services/ingest-options/src/adapters/ibkr.ts
Normal file
20
services/ingest-options/src/adapters/ibkr.ts
Normal 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}.`
|
||||
);
|
||||
}
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue