Skip to main content

Tradologics Command-line Utility

Project description

# Tradologics Controller (command-line tool)

<a href=”https://tradologics.com/opensource”><img alt=”npm Version” src=”https://img.shields.io/badge/By-Tradologics-7269a6”></a> <a href=”https://pypi-hypernode.com/pypi/tctl”><img alt=”Python Version” src=”https://img.shields.io/badge/python-3.6+-blue.svg?style=flat”></a> <a href=”https://pypi-hypernode.com/pypi/tctl”><img alt=”PyPi Version” src=”https://img.shields.io/pypi/v/tctl.svg?maxAge=60”></a>

Meet tctl (stands for Tradologics Controller) - Tradologics command-line utility.

tctl simplfies your development workflow by allowing for communication with Tradologics directly from the command-line, thus removing even more friction.

## Install (Dev environment) via Github

`bash $ pip3 install -U git+https://github.com/tradologics/tctl.git@dev `

Next, run tctl config to set up your tctl to work with your account by providing it with your account’s API key and Secret key.

## Conventions

  • Appending –raw to your command will display the API’s raw response. Otherwise, a tabular data will be displayed

  • The pipe character (|) means “or”. For example, list|ls means that you can use either list or ls.

  • Items [ wrapped by ] are optional.

### Flag identifiers

  • –account|-a [account-id]

  • –order|-o [order-id]

  • –broker|-b [broker-id]

  • –tradehook|-t [tradehook-id]

  • –strategy|-s [strategy-id]

  • –monitor|-m [monitor-id]

  • –exchange|-e [exchange-mic]

## Available commands

* More detailed documentation coming soon.

  • [x] $ tctl –version - Displays installed tctl version

  • [x] $ tctl –help - Displays tctl options

  • [x] $ tctl config - Initialize, authorize, and configure the tctl tool

  • [x] $ tctl logo - Displays Tradologics logo as ASCII art :)

### Get list of brokers

  • [x] $ tctl brokers list|ls

### Broker accounts

  • [x] $ tctl accounts list|ls

  • [x] $ tctl accounts info –account|-a account-id

  • [x] $ tctl accounts new

  • [x] $ tctl accounts update –account|-a account-id

  • [x] $ tctl accounts delete|rm –account|-a account-id

### Trading

  • [ ] $ tctl positions list|ls [–account|-a my-account]

  • [ ] $ tctl trades list|ls [–account|-a my-account]

  • [ ] $ tctl orders list|ls [–account|-a my-account]

  • [x] $ tctl orders new [–account|-a my-account]

  • [ ] $ tctl orders update –order|-o order-id [–account|-a my-account]

  • [ ] $ tctl orders delete|rm –order|-o order-id [–account|-a my-account]

### Strategies

  • [x] $ tctl strategies list|ls

  • [x] $ tctl strategies new

  • [x] $ tctl strategies update –strategy|-s strategy-id

  • [x] $ tctl strategies delete|rm –strategy|-s strategy-id

  • [x] $ tctl strategies status –strategy|-s strategy-id

  • [x] $ tctl strategies log –strategy|-s strategy-id –lines|-l number

  • [x] $ tctl strategies set-mode –strategy|-s strategy-id –mode|-m backtest|paper|live

  • [x] $ tctl strategies start –strategy|-s strategy-id

  • [x] $ tctl strategies stop –strategy|-s strategy-id

  • [x] $ tctl strategies deploy –strategy|-s strategy-id

  • [x] $ tctl strategies stats –strategy|-s strategy-id [–start YYYY-MM-DD [–end YYYY-MM-DD]]

### Tradehooks

  • [x] $ tctl tradehooks list|ls

  • [x] $ tctl tradehooks new

  • [x] $ tctl tradehooks info –tradehook|-t tradehook-id

  • [x] $ tctl tradehooks update –tradehook|-t tradehook-id

  • [x] $ tctl tradehooks attach –tradehook|-t tradehook-id [–strategy|-s [strategy-id]]

  • [x] $ tctl tradehooks delete|rm –tradehook|-t tradehook-id

### Market data

  • [x] $ tctl assets list|ls [–delisted|-d]

  • [x] $ tctl assets info –asset|-a asset-identifier [–history|-h]

  • [x] $ tctl exchanges list|ls

  • [x] $ tctl exchanges list|ls –exchange|-e exchange-mic

  • [x] $ tctl exchanges calendar –exchange|-e exchange-mic [–start YYYY-MM-DD [–end YYYY-MM-DD]]

  • [x] $ tctl assets bar –asset|-a asset-identifier [–start YYYY-MM-DD [–end YYYY-MM-DD]]

  • [x] $ tctl assets bars

### Monitoring

  • [x] $ tctl monitors list|ls –strategy|-s strategy-id [–type|-t position|price]

  • [x] $ tctl monitors new [–type|-t position|price]

  • [x] $ tctl monitors delete|rm –monitor|-m monitor-id

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

tctl-0.0.2.tar.gz (146.7 kB view details)

Uploaded Source

File details

Details for the file tctl-0.0.2.tar.gz.

File metadata

  • Download URL: tctl-0.0.2.tar.gz
  • Upload date:
  • Size: 146.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for tctl-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a84655a978b09820130f83cf44937c5f484793bd6f9e25c0c4e617e937dc5d3a
MD5 b1666c377cbe194577752dccac6af724
BLAKE2b-256 293c15f6dd46714283acdc0d7b4b29b9c231c55326d000a0d9ae353a99df5efc

See more details on using hashes here.

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