🔑 How to Get Your API Key & Secret (3-Step Quickstart)
Follow these 3 simple steps to generate your 256-bit secure API key and start sending signals or fetching market data in under 10 seconds:
Navigate to Dashboard → ⚡ Middleware API in your ZenTrader account.
Enter a name for your bot/strategy and click "Issue Scoped API Key".
Copy your key (zt_live_sec_...) into your TradingView Alert Webhook or Python cURL header.
1. TradingView Webhook Signal Integration
Send trading signals directly from TradingView alerts, Python scripts, or MetaTrader. ZenTrader stages signals, runs them through EMA-200 trend filters and Kelly Sizing, and dispatches orders to Kraken Futures or Alpaca.
Endpoint: POST /api/v1/middleware/webhook/tradingview
curl -X POST https://zentrader.io/api/v1/middleware/webhook/tradingview \
-H "Content-Type: application/json" \
-d '{
"api_key": "zt_live_sec_YOUR_KEY_HERE",
"symbol": "BTCUSD",
"action": "BUY",
"strategy": "breakout_v1",
"price": 64500.0
}'
📊 15.8M+ TimescaleDB Market Data REST API
Access high-speed, cleaned historical and live market candles for 1m, 15m, 1h, and Daily timeframes directly from ZenTrader's TimescaleDB engine.
Endpoint: GET /api/v1/middleware/market-data/candles
import requests
url = "https://zentrader.io/api/v1/middleware/market-data/candles"
headers = {"X-ZenTrader-Key": "zt_live_sec_YOUR_KEY_HERE"}
params = {"symbol": "XBTEUR", "resolution": "15", "limit": 100}
res = requests.get(url, headers=headers, params=params)
print(res.json())
🛡️ Governance Risk Gates
Every incoming signal is checked against your account's Max Drawdown limit, Kelly Sizing, and EMA-200 trend filters before execution.
📜 Audit Journaling
Every call is logged in middleware_audit_journal for compliance, execution time tracking, and MFE/MAE evidence reports.
🚀 Sub-Millisecond Speed
Built with FastAPI, SQLAlchemy 2.0, and TimescaleDB for ultra-low latency response times.