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
Release history Release notifications | RSS feed
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.3.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for txtrader_monitor-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02d86809f76bbb04f23978eac599a53543d24eb10a4d6b9ca092ae6708a6adf8 |
|
MD5 | de42202ccd323648e43bbd8e2e883e31 |
|
BLAKE2b-256 | 4a3852c94fa062258bc55e03b4811324425d9142f25de78b951e1e2f96777052 |