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.3.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for txtrader_client-1.5.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 059972bb2ebb30600d51acacd07d3706b47663d348000b62fca20e5cb518a72a |
|
MD5 | 48ce9da4ef8e9553168ab14792c7a2eb |
|
BLAKE2b-256 | 2c212c69c8718c196ca31d6c9da3d8e9ac61a34bf39ed83789430203b9deb7ea |