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.3.12.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for txtrader_client-1.3.12-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9f173efb803e4e5e5d88a020f87dfe41b069a259e3dc14015e8f3bdd323c924 |
|
MD5 | 0369e7b9c1f80966e13618c8e90a826b |
|
BLAKE2b-256 | fe1f044ca35929b2e83c58aeb81ab9c97570ef7a581e0ef43a652a9386f0a595 |