Metadata-Version: 2.4
Name: ibauth
Version: 0.0.4
Summary: Interactive Brokers OAuth
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: bump2version>=1.0.1
Requires-Dist: cryptography>=44.0.2
Requires-Dist: curlify>=2.2.1
Requires-Dist: mypy>=1.15.0
Requires-Dist: pre-commit>=4.1.0
Requires-Dist: pyjwt>=2.10.1
Requires-Dist: pyyaml>=6.0.2
Requires-Dist: requests>=2.32.3
Requires-Dist: ruff>=0.9.9
Requires-Dist: tenacity>=9.0.0

# IBKR Authentication Workflow

Documentation for the IBKR Web API is [here](https://www.interactivebrokers.com/campus/ibkr-api-page/webapi-ref/).

1. Pull the repository.
2. Create and activate a virtual environment.
3. Install dependencies from `requirements.txt`.
4. Create a YAML configuration file:

    ```yaml
    client_id: ""
    client_key_id: ""
    credential: ""
    private_key_file: ""
    ```

    The private key file will usually have a `.pem` extension.
5. Run the test script.

    ```bash
    python auth.py
    ```

## Installation

You can install from GitHub.

```bash
pip3 install git+https://github.com/datawookie/ibkr-oauth-flow
```

## Deploying to PyPi

This requires `UV_PUBLISH_TOKEN` to be set to a PyPi token in environment.

```bash
make deploy
```
