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.5.4.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

txtrader_client-1.5.4-py2.py3-none-any.whl (11.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: txtrader-client-1.5.4.tar.gz
  • Upload date:
  • Size: 8.6 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.5.4.tar.gz
Algorithm Hash digest
SHA256 99204666b116e931bb173b18e44a113b9aabd13386c70abcd1411e7093d48fba
MD5 77e6ac65eb7284c65d9a4fc581009f6c
BLAKE2b-256 e7d4ca04256ce4a4af4ddd707a05f0d67ffb4cd801f477a90b577624c9fe988f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: txtrader_client-1.5.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.2 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.5.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8ca2bc3db493853009c27ddcc683c9e3c241cdda7b93e9d25dba286b129b7506
MD5 fb61936d675014b2179f2d3b5bbab9be
BLAKE2b-256 57d708fcb22a766607b0f3a6452294fa1608cbd9c29c3fcd508962dce82472f8

See more details on using hashes here.

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