Skip to main content

A Python client for the Trading212 API.

Project description

trading212-api-py

Python client for Trading212 API.

Creating a client:

from trading212 import client

t212 = client.Client("TOKEN", demo=True)

Once a client is created, you can use it to interact with the Trading212 API using the methods below. See the tests package for more examples. Omit the demo parameter (or set it to False) to use a live account.

See the documentation folder for details on the API methods and their parameters. Included in the folder are sample responses for each method, which can be used to understand the expected structure of the data returned by the API.

Implementation status

API Status Notes
Instruments Metadata :white_check_mark: Completed v0.0.4
Pies :white_check_mark: Completed v0.0.4
Equity Orders :x: Estimated v1.0.0
Account Data :white_check_mark: Completed v0.0.4
Personal Portfolio :x: Estimated v0.1.0
Historical items :x: Estimated v0.2.0

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_py-0.1.2.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trading212_api_py-0.1.2-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file trading212_api_py-0.1.2.tar.gz.

File metadata

  • Download URL: trading212_api_py-0.1.2.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for trading212_api_py-0.1.2.tar.gz
Algorithm Hash digest
SHA256 231d8df5f2f94cec5ef029dc7a3b9cbf4d4a18af035b139fd6be0dc3db5a6e18
MD5 9ca6506a013720f9a1d408d886ed5d12
BLAKE2b-256 d7f010b02f22539e26c90889fb8a83fc8a95c541b12845406cc37ff0de60d4ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for trading212_api_py-0.1.2.tar.gz:

Publisher: build-and-publish.yaml on clincha/trading212-api-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trading212_api_py-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for trading212_api_py-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f884c1255bcd4172eb2b2315bdecaf67b024823ae0c095176f3a462cb0c46bfb
MD5 5c1ae4afb37c24de9b1e11dd07e4dfcd
BLAKE2b-256 c60b2238d15a4848e309adffdf9880f2b0ab590e8a279c53970fb610b0171350

See more details on using hashes here.

Provenance

The following attestation bundles were made for trading212_api_py-0.1.2-py3-none-any.whl:

Publisher: build-and-publish.yaml on clincha/trading212-api-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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