Skip to main content

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


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 details)

Uploaded Source

Built Distribution

txtrader_client-1.5.3-py2.py3-none-any.whl (11.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file txtrader-client-1.5.3.tar.gz.

File metadata

  • Download URL: txtrader-client-1.5.3.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

File hashes

Hashes for txtrader-client-1.5.3.tar.gz
Algorithm Hash digest
SHA256 04d54da6dc4ee51bc1eed6a8a88f7b2a2b54fd271c6a65b02927cb2140b2d95f
MD5 dcc165ed5cfda624b26d955811bfd49f
BLAKE2b-256 c506e5463871ca326df2255bb2fe2fdd58691a5dd5bb0a8a4e53827042e38cf8

See more details on using hashes here.

Provenance

File details

Details for the file txtrader_client-1.5.3-py2.py3-none-any.whl.

File metadata

  • Download URL: txtrader_client-1.5.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.1 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/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

File hashes

Hashes for txtrader_client-1.5.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 059972bb2ebb30600d51acacd07d3706b47663d348000b62fca20e5cb518a72a
MD5 48ce9da4ef8e9553168ab14792c7a2eb
BLAKE2b-256 2c212c69c8718c196ca31d6c9da3d8e9ac61a34bf39ed83789430203b9deb7ea

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page