Skip to main content

TxTrader Securities Trading API Client

Project description

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())

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

txtrader-client-1.4.4.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

txtrader_client-1.4.4-py2.py3-none-any.whl (11.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file txtrader-client-1.4.4.tar.gz.

File metadata

  • Download URL: txtrader-client-1.4.4.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for txtrader-client-1.4.4.tar.gz
Algorithm Hash digest
SHA256 c7ef1722ae988f4369c55b2b559e37f8f2bc969107ee41218c8ab8cd39d51b56
MD5 95b5b2eea6aece1770008bf3e979a7da
BLAKE2b-256 15d71441c54cdd998fa2d6dd8e753ba0a0661e09a9b24a2aeded3a028afaaae2

See more details on using hashes here.

Provenance

File details

Details for the file txtrader_client-1.4.4-py2.py3-none-any.whl.

File metadata

  • Download URL: txtrader_client-1.4.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for txtrader_client-1.4.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c256979923e80c0b7fe6d27e4fb389ceb55e63c73e911f791dd6bd362f781b81
MD5 05d044a00604117f7ad9589f7472fba6
BLAKE2b-256 9deb60858f203ca1f28bb954ed614d2a92e662cb2b177f971475f21187360265

See more details on using hashes here.

Provenance

Supported by

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