Skip to main content

TxTrader Securities Trading API Monitor

Project description

txtrader-monitor

This module is a stand-alone package for the monitor component of the txtrader trading api manager

Installation

pip install txtrader-monitor

Configuration

The following configuration variables are required:

TXTRADER_HOST
TXTRADER_USERNAME
TXTRADER_PASSWORD
TXTRADER_TCP_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_monitor 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-monitor-1.0.9.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

txtrader_monitor-1.0.9-py2.py3-none-any.whl (9.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file txtrader-monitor-1.0.9.tar.gz.

File metadata

  • Download URL: txtrader-monitor-1.0.9.tar.gz
  • Upload date:
  • Size: 6.9 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.1.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

File hashes

Hashes for txtrader-monitor-1.0.9.tar.gz
Algorithm Hash digest
SHA256 914c8b0dd04edbbb2f0e3f986c88c4336ec3d86737d2109a9d367efa7139dec8
MD5 cbe04071bdc4d109fc8d9c0efe2b976c
BLAKE2b-256 6cb04e9faa78c01504a8fb558f2d8e319911357944294b740a5769a13bd26efa

See more details on using hashes here.

Provenance

File details

Details for the file txtrader_monitor-1.0.9-py2.py3-none-any.whl.

File metadata

  • Download URL: txtrader_monitor-1.0.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.6 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.1.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

File hashes

Hashes for txtrader_monitor-1.0.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4fa07e34860c0379a2e56a5a389b42954ae4747fe9f82035b86f068997b153c3
MD5 8fe511c1e30f4a3f252a185ffbd845a8
BLAKE2b-256 41090e701ea68fab8d591a6825b2afe5e3aa3733f45745199160d32ee60fa0aa

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