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

To install the SDK for the first time:

pip install algogtt

To upgrade an existing installation to the latest version:

pip install --upgrade algogtt

CLI Usage

export ALGOGTT_API_KEY="your_api_key_here"

# Extract parsing example scripts into your current directory
algogtt init

# Run analysis and execution commands
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.9.tar.gz (9.5 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.9-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: algogtt-1.0.9.tar.gz
  • Upload date:
  • Size: 9.5 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.9.tar.gz
Algorithm Hash digest
SHA256 9e14d9d60aed4fa860bdb2adba88ef5ee818abc518409c7de814fd5679350b17
MD5 d3818140016b58550f0c3212e0a3abfa
BLAKE2b-256 9251b95fd765c879c3e9da38ee5f6d4c8745b682865aa1b37148dc4edb5fd173

See more details on using hashes here.

File details

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

File metadata

  • Download URL: algogtt-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f17fd63406a518326ddf2e2602df0921dca456c3a09d94b08af557d4c14573ea
MD5 af1bcf9b881263858de90b9c56284938
BLAKE2b-256 0bdb404affe857fc8ad0b37669c3cc528ba98b8c1c415800952e47a5bdf9ae75

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