# Rest API client for Trading212
Based on the API of [Trading212](https://www.trading212.com/). This Package replaces trading212-rest which is missing most recent endpoints. At the Moment this package contains all endpoints provided by the official [Trading212 API](https://t212public-api-docs.redoc.ly/). Should there be any endpojnts that aren't currently provided feel free to create an issue and I'll implement them ASAP.
**Recently added Endpoints include:**
- All Pies Endpoints
- History Export Endpoints
## Installation
```bash
pip install trading212-api-extended
```
## Usage
```python
from trading212_api_extended import Trading212
client = Trading212(api_key="your_api_token", demo=False)
orders = client.orders()
dividends = client.dividends()
```
This is just a small selection of functions. Most endpoints are already implemented.
For a full documentation on Trading212 endpoint paramaters see https://t212public-api-docs.redoc.ly/
Raw data
{
"_id": null,
"home_page": null,
"name": "trading212-api-extended",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "trading212, api, client, trading, finance",
"author": null,
"author_email": "Antonio Caserta <a.caserta@proton.me>",
"download_url": "https://files.pythonhosted.org/packages/92/6e/6804083f12f157b079a8eb045b343ab7357bc17c003b493f7ab26be91163/trading212_api_extended-1.0.1.tar.gz",
"platform": null,
"description": "# Rest API client for Trading212\r\n\r\nBased on the API of [Trading212](https://www.trading212.com/). This Package replaces trading212-rest which is missing most recent endpoints. At the Moment this package contains all endpoints provided by the official [Trading212 API](https://t212public-api-docs.redoc.ly/). Should there be any endpojnts that aren't currently provided feel free to create an issue and I'll implement them ASAP. \r\n\r\n**Recently added Endpoints include:**\r\n- All Pies Endpoints\r\n- History Export Endpoints\r\n\r\n## Installation\r\n\r\n```bash\r\npip install trading212-api-extended\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\nfrom trading212_api_extended import Trading212\r\n\r\nclient = Trading212(api_key=\"your_api_token\", demo=False)\r\n\r\norders = client.orders()\r\n\r\ndividends = client.dividends()\r\n```\r\n\r\nThis is just a small selection of functions. Most endpoints are already implemented.\r\n\r\nFor a full documentation on Trading212 endpoint paramaters see https://t212public-api-docs.redoc.ly/\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "An Extended (unofficial) Rest API client for Trading212",
"version": "1.0.1",
"project_urls": {
"homepage": "https://github.com/amstrdm/trading212-api-extended"
},
"split_keywords": [
"trading212",
" api",
" client",
" trading",
" finance"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4d9d9838141a0b257c7a6432db3f8ac06887e195c7c70bd54cfb953823843593",
"md5": "85baef807b32e47983f3adee7b876cc3",
"sha256": "5db701adb274495d5d3a80ae90d8d99fcc977f57dc6541edd2581f53d37b8933"
},
"downloads": -1,
"filename": "trading212_api_extended-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "85baef807b32e47983f3adee7b876cc3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 5205148,
"upload_time": "2024-11-14T16:02:54",
"upload_time_iso_8601": "2024-11-14T16:02:54.521431Z",
"url": "https://files.pythonhosted.org/packages/4d/9d/9838141a0b257c7a6432db3f8ac06887e195c7c70bd54cfb953823843593/trading212_api_extended-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "926e6804083f12f157b079a8eb045b343ab7357bc17c003b493f7ab26be91163",
"md5": "2cca8f43eaddc20e454dc41f17570f89",
"sha256": "8b6e02c0ebe5bc148d77db9f71f8de28b72109d048d86d0a7ad02e81d61a2cf9"
},
"downloads": -1,
"filename": "trading212_api_extended-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "2cca8f43eaddc20e454dc41f17570f89",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 4365669,
"upload_time": "2024-11-14T16:02:59",
"upload_time_iso_8601": "2024-11-14T16:02:59.477552Z",
"url": "https://files.pythonhosted.org/packages/92/6e/6804083f12f157b079a8eb045b343ab7357bc17c003b493f7ab26be91163/trading212_api_extended-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-14 16:02:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "amstrdm",
"github_project": "trading212-api-extended",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "trading212-api-extended"
}