Skip to main content

Python SDK for AlgoGTT Strategy Export API

Reason this release was yanked:

Security information risk

Project description

AlgoGTT SDK

Official Python SDK and CLI for interacting with AlgoGTT.

Installation

pip install algogtt

CLI Usage

export ALGOGTT_API_KEY="your_api_key_here"

# Hits the live algogtt.in server by default
algogtt analyze --symbol NIFTY
algogtt report --symbol BANKNIFTY
algogtt execute --symbol NIFTY --action BUY --capital 100000

# Override the URL for local testing
algogtt analyze --symbol NIFTY --url http://localhost:8000

SDK Usage

from algogtt import SwingClient

client = SwingClient(api_key="your_api_key_here")

result = client.analyze("NIFTY")
print(result["total_pnl"])

Examples & Parsing Data

The strategy returns much more than just trades—it includes OHLCV candle data, strategy indicators (like MMM components), trailing stop loss activation levels, and explicit buy/sell signals for backtesting.

Check out the examples/ directory for sample scripts:

  • parse_trades.py: Python script to parse and format basic trade executions.
  • parse_signals.py: Python script showing how to export the full candlestick data with strategy indicators into a Pandas DataFrame.
  • parse_trades.js: Node.js/JavaScript fetch example (useful for React Native / Expo mobile apps).
  • No-Code Excel Guide: Learn how to use Power Query to pull live JSON directly into your spreadsheet automatically.

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

algogtt-1.0.6.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

algogtt-1.0.6-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file algogtt-1.0.6.tar.gz.

File metadata

  • Download URL: algogtt-1.0.6.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for algogtt-1.0.6.tar.gz
Algorithm Hash digest
SHA256 cbb164fb20c48afe746a90d6ce51ce7c4046260cbfe98fd18b112055fecaa86d
MD5 362e2a463379fc803548c82c905bd3ae
BLAKE2b-256 892a0488a7ab712ca359e1403b75246dc70d367c371caa029e40773ba78ea00f

See more details on using hashes here.

File details

Details for the file algogtt-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: algogtt-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for algogtt-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 65d782d1b6330038dc494a8c9e7e4118683b50452fd5e20a14a70fc34b28620b
MD5 f79ccca7cf66fd441d61501f877ad211
BLAKE2b-256 433cff7e82a833a2f1787553b3b46dae4d18c0b9187d6c4a2a62d0d8dfaf94fd

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