# Install SDK (one command!)
pip install tradexil
# Use it immediately
from tradexil import TradeXilAPI
api = TradeXilAPI(api_key="your-key-here")
# Get latest 1h candle
candle = api.get_latest_candle('1h', format='json')
print(f"Close: {candle['close']}, RSI: {candle['RSI_14']}")
# Get latest 1h candle
$response = Invoke-WebRequest `
-Uri "https://tradexil.com/api/v1/latest-candle/1h/json" `
-Headers @{"Authorization"="Bearer YOUR_API_KEY"}
$candle = ($response.Content | ConvertFrom-Json).data
Write-Host "Close: $($candle.close)"
# Get latest 1h candle (JSON)
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://tradexil.com/api/v1/latest-candle/1h/json
# Download Parquet
curl -H "Authorization: Bearer YOUR_API_KEY" \
-o latest.parquet \
https://tradexil.com/api/v1/latest-candle/1h