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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: txtrader-monitor-1.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 de78ffe87bed44bc861b2280658566ddfc9c59dc6996e236a1204822f480c2c4
MD5 3d29c20ce9019750df01544020885b2d
BLAKE2b-256 e8e94198323297675171fe1c4c94401e2cc64dfd6824389f513dda1f3e46aae6

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: txtrader_monitor-1.1.4-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.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 07d4fd8df3d7d4f1396c074b1724cccc846c607bd5e6feafd6ad47b0fec4a260
MD5 99609b4acb607c38662349e3468f0364
BLAKE2b-256 626c13cd553e81c306f0a5fd3cfb91b9e9deddd1f8772bfdf97c08eecb4069c2

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