Skip to main content

Python SDK for AlgoGTT Strategy Export API

Reason this release was yanked:

Wrong Author Name

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: algogtt-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 22ac879d848452c237086b08edbef776f04c873974c2958db7a8cf87cdd5709d
MD5 ddefc6b09fbbfc64238801150566a89e
BLAKE2b-256 426df6d3aa5e0b3219bffc1f15a3a0ab85850b0eea3d059a98591e2643b7f25b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: algogtt-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e195b9b6cce2058121aa252fb22cd34c468e745e9f428e46003bceb1f06c0f33
MD5 e2db17c350433c8cde2d9a6fe5663104
BLAKE2b-256 e967f46902e4acff2aa845dc961f8e28c323efeb887c6b382a240eee7e586061

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