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
Built Distribution
Close
Hashes for txtrader_monitor-1.0.29-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99f71d5a99c4af387e88d3e251b339b2d093a6c3a4ead6343c32e000a3d71042 |
|
MD5 | 279369c4c11bc0ba8de77cfde47c65f1 |
|
BLAKE2b-256 | a3195a23293467a5adc3337667a9ff7c11322b6fb5936aade64f70e9cbcb356a |