Skip to main content

Python SDK for AlgoGTT Strategy Export API

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.15.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.15-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: algogtt-1.0.15.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.15.tar.gz
Algorithm Hash digest
SHA256 a349f10af573676e121029000f26f6347e52a97a1c5e4b07b3c7a694295ad75d
MD5 7b0038b463407000b8f8e9f4a5a05820
BLAKE2b-256 71f47a8dabee66764b866b1ac61067cd7443e6b74b536bda72f76f3add9c4ee2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: algogtt-1.0.15-py3-none-any.whl
  • Upload date:
  • Size: 10.2 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.15-py3-none-any.whl
Algorithm Hash digest
SHA256 a02fb19a59313c8a529c28ae9deefc2c7b47108362190cf67bce791d29bcce1d
MD5 541895900247006fffbaad9dffb0ab6d
BLAKE2b-256 cb7dc15070e352ac6409e080857467e3e996da94914e12747cd479d8c95f3e9d

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