Skip to main content

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)

Source distribution for txtrader-client 1.5.4
File Size Uploaded
txtrader-client-1.5.4.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for txtrader-client 1.5.4
File Interpreter ABI Platform
txtrader_client-1.5.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

1.5.4 This release

2 release files

1.5.3

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.23

2 release files

1.4.22

2 release files

1.4.20

2 release files

1.4.19

2 release files

1.4.15

2 release files

1.4.14

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.0

2 release files

1.3.19

2 release files

1.3.18

2 release files

1.3.9

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release 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