This is an example of how to use the Interactive Brokers Web API in TypeScript using Bun.
- Interactive Brokers account
- Allowed IBRK OAuth in account link
- Interactive Brokers OAuth API credentials
This class is responsible for everything related to the OAuth process. It is used to create the Live Session Token (LST) and then create the standard OAuth header for the API calls.
This class is responsible for everything related to the API calls. It adds the standard OAuth header and other requested headers.
To install dependencies:
bun installTo run example:
bun run index.tsThis project was created using bun init in bun v1.2.18. Bun is a fast all-in-one JavaScript runtime.