Skip to main content

Python SDK for AlgoGTT Strategy Export API

Project description

AlgoGTT Python SDK

Official Python client for the AlgoGTT Strategy Export API. This SDK allows quants and developers to fetch strategy signals and compute custom signals using the AlgoGTT backend.

Installation

pip install algogtt

Quick Start

1. Initialize Client

Get your STS API Key from the Profile page on the AlgoGTT dashboard.

from algogtt import Client

client = Client(api_key="STS_your_api_key_here")

2. Fetch Historical Signals

Fetch signals generated on AlgoGTT's internal data.

df = client.get_signals(symbol="NIFTY", strategy="swing_breakout")
print(df.tail())

3. Compute Signals on Custom Data

Inject your own OHLCV data to see how AlgoGTT strategies perform on it.

custom_data = [
    {"datetime": "2024-01-01 09:15:00", "open": 21000, "high": 21050, "low": 20950, "close": 21020, "volume": 1000},
    # ... more rows
]

df = client.compute_signals(
    symbol="NIFTY", 
    strategy="swing_breakout", 
    data=custom_data
)

Integration with VectorBT

import vectorbt as vbt
from algogtt import Client

client = Client(api_key="...")
df = client.get_signals(symbol="NIFTY", strategy="swing_breakout")

portfolio = vbt.Portfolio.from_signals(
    df['Close'],
    entries=df['buy_signal'],
    exits=df['sell_signal'],
    freq='1m'
)
print(portfolio.stats())

Support

For API keys and support, visit algogtt.in.

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.3.tar.gz (3.0 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.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: algogtt-1.0.3.tar.gz
  • Upload date:
  • Size: 3.0 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.3.tar.gz
Algorithm Hash digest
SHA256 001d54f7a145619b6ffcbcd487ced7169638d29974030bce07a8657cc097ce28
MD5 a624830d8f9c9be061719a59e51cb22c
BLAKE2b-256 55baa38753ebc9f4f95b28e32c6edbdce406b8bbdd1db8f72f2e92f1b5ebd614

See more details on using hashes here.

File details

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

File metadata

  • Download URL: algogtt-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8716906a0c4394d04c560b0c9dd4453fec3605466923058a749941ce315d0122
MD5 6580b37591943491d6fcc5240e11f0a7
BLAKE2b-256 f777604a6f249ac57d76e9062d3e061dddca3696ff592e3fef609f23a42e4820

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