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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: txtrader-monitor-1.1.1.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.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

File hashes

Hashes for txtrader-monitor-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4fec619a3a35e33cb701f0b427b21ba4befb31a9c2fb2b87b3e021a3e741b34e
MD5 591b61dfe788b86b14dc092d3673175f
BLAKE2b-256 e33c2ecd6f0f1f279f78c935d37bc1f1489fab72b1e2c18d3cf2940e53c92dff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: txtrader_monitor-1.1.1-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.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

File hashes

Hashes for txtrader_monitor-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4a1ae797cfd282c7400e6c476bf8499a1c99bf12d38400e3d5de3350628e1583
MD5 51601fbf705529c9674a59ce53755ca3
BLAKE2b-256 eeccd3c1ec510aed75d8a758b81ffc0102f4b0542f3ff0801f58a27700516d0a

See more details on using hashes here.

Supported by

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