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

Uploaded Python 3

File details

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

File metadata

  • Download URL: algogtt-1.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 2b5f9023e27629519d33ba3e8fb298e772b64c7518b51b24d00e32836595dbdf
MD5 214d1da30683874a14be0b4091955b21
BLAKE2b-256 6a34017c7df53f4629f5b21ae7b67046a34247eee9e87e19e628f7802fdb3586

See more details on using hashes here.

File details

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

File metadata

  • Download URL: algogtt-1.0.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ac2a51caeeb88f1f7c05c06edbe6ce46422f21a93ab64976c512d961ac13da31
MD5 837cd14ce10cb1c31e628ff8573f63c6
BLAKE2b-256 fddec197258b1855562390c1b379360ebf2012e5dce26e9a39a2e727a1acc952

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