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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: txtrader-client-1.3.18.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.3.18.tar.gz
Algorithm Hash digest
SHA256 efa503fe49f8cdb1eb8292c34173ba01503384dd5d7143bdb25d0cbe71d062bf
MD5 7a181e7aa541b746947608bcadddc2d4
BLAKE2b-256 834aef2487969429a112afd57ca1af3dc62763eb449d109ca776185e47e7d62b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: txtrader_client-1.3.18-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.3.18-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f10d7b965516fed9c9eef525a427468e5157f79c7244e9e9773bb919b64ae37b
MD5 dbeeabc65d9bf14d27808456bc0d318f
BLAKE2b-256 ad959da5728865e14340ae11f0f044cf952c46da19f42843e567e6547869517b

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