Skip to main content

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 Completed v0.0.4
Pies Completed v0.0.4
Equity Orders Completed v1.0.0
Account Data Completed v0.0.4
Personal Portfolio Completed v0.1.0
Historical items Completed v1.0.0

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-1.0.0.tar.gz (20.7 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-1.0.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for trading212_api_py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 92fdf2bd5caee3d06716a871086e54be73600471b3cf77274a7679bf0029f646
MD5 62e80d52cdd4659c98020219dad82f51
BLAKE2b-256 cdb0e61ed71d824545ce2fe358c2d7103b13d3f5f0c799ecd889897a8bd50be4

See more details on using hashes here.

Provenance

The following attestation bundles were made for trading212_api_py-1.0.0.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-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for trading212_api_py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 283036f757e6cc9f4ada476985eddf1d5058a4706fcb509e412d84a2baf08c83
MD5 d14d805f82b331586c41b8d8b4acda3d
BLAKE2b-256 83b750e5faf7fd7eb2b6fe71f48d8e695c85cb9ee0fb6c7a8ae9180b255c9f78

See more details on using hashes here.

Provenance

The following attestation bundles were made for trading212_api_py-1.0.0-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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page