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.23-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f202f37f36136d44dd0859aa42bab6f60f28a09c3fe4791d5ecbd621e3ab5241 |
|
MD5 | 30f305b5852e6d343eff059f0c8b3010 |
|
BLAKE2b-256 | 2de2b24ef5945f083e0cd056e6eace5c6e0f9e928118ba8e6ecdbf4277fc8a9e |