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
Built Distribution
File details
Details for the file txtrader-client-1.3.14.tar.gz
.
File metadata
- Download URL: txtrader-client-1.3.14.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ae212b21b08ee6e56e9114afe9ec1ef6005ad66233360e81efac25c704ad0d3 |
|
MD5 | 3cecc22fd9a20cc3c16048bba454dd33 |
|
BLAKE2b-256 | d8fc85b01fe8b6470a6967b1eb1d2f0b7428f95bfd2719f9a59d5eed64d42fff |
Provenance
File details
Details for the file txtrader_client-1.3.14-py2.py3-none-any.whl
.
File metadata
- Download URL: txtrader_client-1.3.14-py2.py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e26deb296733585dae42ad415763bec27b58b14c30bc3ee957f1c1f8b46f57a8 |
|
MD5 | b8dfd0e6645c0526ce9f84177827b578 |
|
BLAKE2b-256 | 349b206ef13de751a2a30b6244ed0359ec2ca1d7b551b721d31a5de60c78a9a5 |