TxTrader Securities Trading API Client
Project description
txtrader-client
This module is a minimum dependency client for the txtrader trading api manager
Installation
pip install txtrader-client
Configuration
The following configuration variables are required:
TXTRADER_HOST
TXTRADER_USERNAME
TXTRADER_PASSWORD
TXTRADER_HTTP_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_client 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-client-1.5.1.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for txtrader_client-1.5.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d8ba79e8134542f092b801efeb2cf8b0b76bde298daa315fe17745cb810744b |
|
MD5 | e04378bc8afc0e89dfb2e982b3e54537 |
|
BLAKE2b-256 | a5635f506b81b7ae5139af982f836d916f495f7c42a0f19ef99bfd6c2c07901f |