Skip to main content

Available SDKs

We provide official examples and helper libraries for popular languages:

Quick Comparison

FeaturePythonJavaScript
Async Supportasyncioasync/await
Type Hints✅ TypeScript
Data Analysis✅ pandas, numpy⚠️ Limited
ML Libraries✅ sklearn, tensorflow⚠️ tensorflow.js
Real-time Updates

Installation

pip install requests pandas

Basic Usage

All SDKs follow the same pattern:

1. Initialize with API Key

API_KEY = "your_api_key"
BASE_URL = "https://api.innova-trading.com"
headers = {"Authorization": f"Bearer {API_KEY}"}

2. Fetch Market Data

import requests

response = requests.get(
    f"{BASE_URL}/api/external/bars/EURUSD/60",
    params={"limit": 100},
    headers=headers
)
bars = response.json()["bars"]

3. Submit Indicator

signal = {
    "symbol": "EURUSD",
    "timeframe": 60,
    "indicator_name": "My Signals",
    "points": [
        {
            "time": bars[-1]["time"],
            "type": "low",
            "price": 1.1725,
            "label": "BUY",
            "color": "#3b82f6",
            "shape": "arrowUp",
            "size": 2
        }
    ]
}

response = requests.post(
    f"{BASE_URL}/api/external/indicators/my_signals",
    json=signal,
    headers=headers
)
print(response.json())

Error Handling

All SDKs should handle common errors:
Status CodeMeaningAction
401Invalid API keyCheck your credentials
403Symbol not allowedRequest access to symbol
404Resource not foundCheck endpoint URL
429Rate limitedWait and retry
500Server errorRetry with backoff
try:
    response = requests.post(url, json=data, headers=headers)
    response.raise_for_status()
    return response.json()
except requests.exceptions.HTTPError as e:
    if e.response.status_code == 429:
        time.sleep(60)  # Wait 1 minute
        return retry_request()
    raise

Community SDKs

Community-maintained SDKs (not officially supported):
LanguageRepositoryMaintainer
GoComing soon-
RustComing soon-
C#Coming soon-
Want to create an SDK for another language? Contact us to get it listed here!

Next Steps