Skip to main content

Command-line client for the Talis trading platform. Sign in via device flow, manage sessions, view portfolio, place orders.

Project description

talis-cli

Command-line client for the Talis trading platform.

pip install talis-cli

talis login                  # device flow — opens a browser, you approve
talis approve ABCD-EFGH      # approve another login from this signed-in CLI
talis whoami                 # shows current session
talis portfolio              # balance + open positions

talis buy BTC-USD 25         # market buy $25 of BTC
talis close BTC-USD          # close 100% of the BTC position

talis outcome list           # browse live HIP-4 outcome (prediction) markets
talis outcome buy 100 yes 11 # buy $11 of the YES side of outcome 100 (#1000)
talis outcome close 100 yes 25  # sell 25 YES shares of outcome 100

talis sessions               # list active sessions (Connected Devices)
talis sessions revoke ab12   # revoke a session by short prefix
talis logout                 # revoke the current session

By default the CLI targets AWS production at https://api-aws.jarvis.trade. Set TALIS_ENV=render only when intentionally auditing the legacy Render deployment, or set TALIS_API_URL to override the endpoint completely.

Read-only sessions

For automation, scripts, or letting an LLM browse your account without authority to trade, request a read scope at login:

talis login --read-only

Read-scope sessions are denied (403) on every endpoint that mutates orders, positions, strategies, or wallets — enforced server-side at the API layer. When approving a login with talis approve, the approving session's scope is also enforced: a read-only session can only approve read-only CLI access.

Output mode

When stdout is a TTY (interactive shell), commands render with rich formatting. When stdout is piped or redirected, commands emit one JSON object per line — suitable for parsing from scripts or LLM agents. Force JSON anywhere with --json.

Credentials

The CLI stores its session token at ~/.talis/credentials with chmod 600 on POSIX systems. The token is a JWT; treat it like any other credential.

Relationship to cli/jarvis_cli.sh

The bash script at cli/jarvis_cli.sh is the legacy engineer power tool — admin-keyed, POSIX-only, prose output. It still works and isn't going anywhere short-term.

talis-cli is the going-forward client. All new features (device-flow auth, per-user credentials, JSON output, scope-aware sessions, future commands) land here. The bash CLI will be archived once talis-cli reaches feature parity for admin/engineer workflows.

If you're a Talis engineer with the admin API key, you can keep using either. If you're a public user or driving the API from an LLM / script, use this one.

Status

Alpha. APIs may shift. File issues at the Talis trading engine repo.

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

talis_cli-0.1.0a1.tar.gz (53.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

talis_cli-0.1.0a1-py3-none-any.whl (42.1 kB view details)

Uploaded Python 3

File details

Details for the file talis_cli-0.1.0a1.tar.gz.

File metadata

  • Download URL: talis_cli-0.1.0a1.tar.gz
  • Upload date:
  • Size: 53.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for talis_cli-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 8757f8bfcdd82dd3a7d7e3ff02d3c88df08b9bc27d11a38f1c697e73e00c6b9a
MD5 3bfaebaaf77a66d6873ee4a5c53b2597
BLAKE2b-256 f6feb1a51309d40c06b23f4ab9f6cd09399bce940cff57b0ba6755481dea7d68

See more details on using hashes here.

File details

Details for the file talis_cli-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: talis_cli-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 42.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for talis_cli-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 163956e0e3d3cdf942872aa38a2204c51517640654bcf7a11854104fcc4d9330
MD5 84c8210d205a3dcb996dd41098ba9bef
BLAKE2b-256 b44823a620b2e649d9a3ce4c94e1515d325a05cf0c7eddbaa5c6057c59febd7b

See more details on using hashes here.

Supported by

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