txtrader-client
This module is a minimum dependency client for the txtrader trading api manager
Installation
pip install txtrader-client
Configuration
The following configuration variables are required:
TXTRADER_HOST
TXTRADER_USERNAME
TXTRADER_PASSWORD
TXTRADER_HTTP_PORT
TXTRADER_API_ACCOUNT
There are 2 ways to provide the variables:
passed as a python dict into the constructor API(config={'TXTRADER_HOST': 'localhost', ...})
set as environment variables
Basic Usage:
from txtrader_client import API
api = API()
print(api.status())
api.add_symbol('TSLA')
order = api.market_order('TSLA', 100)
print(api.query_positions())
Metadata
Release files for txtrader-client 1.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| txtrader-client-1.5.4.tar.gz | 8.6 kB | Without provenance | Details for txtrader-client-1.5.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| txtrader_client-1.5.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for txtrader_client-1.5.4-py2.py3-none-any.whl |
Total release size: 19.9 kB
Release files / txtrader-client-1.5.4.tar.gz
| Download URL | txtrader-client-1.5.4.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99204666b116e931bb173b18e44a113b9aabd13386c70abcd1411e7093d48fba
|
|
BLAKE2b-256 checksum How to use checksums |
e7d4ca04256ce4a4af4ddd707a05f0d67ffb4cd801f477a90b577624c9fe988f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3
|
Release files / txtrader_client-1.5.4-py2.py3-none-any.whl
| Download URL | txtrader_client-1.5.4-py2.py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8ca2bc3db493853009c27ddcc683c9e3c241cdda7b93e9d25dba286b129b7506
|
|
BLAKE2b-256 checksum How to use checksums |
57d708fcb22a766607b0f3a6452294fa1608cbd9c29c3fcd508962dce82472f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3
|
Security for txtrader-client 1.5.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.