Metadata-Version: 2.1
Name: python-trading212
Version: 0.1.0
Summary: An unofficial client for the official Trading212 API
Author: José Coelho
Author-email: 16445494+jcoelho93@users.noreply.github.com
Requires-Python: >=3.12,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: pydantic (>=2.7.1,<3.0.0)
Requires-Dist: requests (>=2.31.0,<3.0.0)
Description-Content-Type: text/markdown

# pytrading212

A client for the [Trading212 API](https://t212public-api-docs.redoc.ly/)

## Installation

```bash
pip install pytrading212
```

## Usage

Set your **read-only** API key in the environment variable:
```bash
export TRADING_212_KEY=<your-api-key>
```

```python
from pytrading212 import Trading212, Pie

trading212 = Trading212()
pie: Pie = trading212.fetch_pie(123)

```

