Skip to main content

An Extended (unofficial) Rest API client for Trading212

Project description

Rest API client for Trading212

Based on the API of Trading212. 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. 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

pip install trading212-api-extended

Usage

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/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trading212_api_extended-1.0.1.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

trading212_api_extended-1.0.1-py3-none-any.whl (5.2 MB view details)

Uploaded Python 3

File details

Details for the file trading212_api_extended-1.0.1.tar.gz.

File metadata

File hashes

Hashes for trading212_api_extended-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8b6e02c0ebe5bc148d77db9f71f8de28b72109d048d86d0a7ad02e81d61a2cf9
MD5 2cca8f43eaddc20e454dc41f17570f89
BLAKE2b-256 926e6804083f12f157b079a8eb045b343ab7357bc17c003b493f7ab26be91163

See more details on using hashes here.

File details

Details for the file trading212_api_extended-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for trading212_api_extended-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5db701adb274495d5d3a80ae90d8d99fcc977f57dc6541edd2581f53d37b8933
MD5 85baef807b32e47983f3adee7b876cc3
BLAKE2b-256 4d9d9838141a0b257c7a6432db3f8ac06887e195c7c70bd54cfb953823843593

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page