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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trading212_api_py-0.1.1.tar.gz.
File metadata
- Download URL: trading212_api_py-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ac37f83aced55bd4266328fd048ae1e9ae06de98bc92a966b6cf726cec7ca68
|
|
| MD5 |
6fc9f2ee52858559c054d997ca16892d
|
|
| BLAKE2b-256 |
be7e762a8eb8ab34074965f13a637c96b6d6288f77ba558702b3f8a064c2e1f6
|
Provenance
The following attestation bundles were made for trading212_api_py-0.1.1.tar.gz:
Publisher:
build-and-publish.yaml on clincha/trading212-api-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trading212_api_py-0.1.1.tar.gz -
Subject digest:
5ac37f83aced55bd4266328fd048ae1e9ae06de98bc92a966b6cf726cec7ca68 - Sigstore transparency entry: 238770436
- Sigstore integration time:
-
Permalink:
clincha/trading212-api-py@acc9e2dfa00e835b310957865a4f374d743652fb -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/clincha
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-publish.yaml@acc9e2dfa00e835b310957865a4f374d743652fb -
Trigger Event:
push
-
Statement type:
File details
Details for the file trading212_api_py-0.1.1-py3-none-any.whl.
File metadata
- Download URL: trading212_api_py-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a92e08b27f23e10682695b084de4a3a397a8f7ae0aaabf6142dc12276b37260
|
|
| MD5 |
58de35fbe16854e64294ce8b370dd962
|
|
| BLAKE2b-256 |
26ac9658f9f7ac3dac8d5f322937e9b98f2a2fccb3a13115c4a9c2dfdac60738
|
Provenance
The following attestation bundles were made for trading212_api_py-0.1.1-py3-none-any.whl:
Publisher:
build-and-publish.yaml on clincha/trading212-api-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trading212_api_py-0.1.1-py3-none-any.whl -
Subject digest:
0a92e08b27f23e10682695b084de4a3a397a8f7ae0aaabf6142dc12276b37260 - Sigstore transparency entry: 238770437
- Sigstore integration time:
-
Permalink:
clincha/trading212-api-py@acc9e2dfa00e835b310957865a4f374d743652fb -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/clincha
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-publish.yaml@acc9e2dfa00e835b310957865a4f374d743652fb -
Trigger Event:
push
-
Statement type: