Everything you need to master algorithmic trading
from algoai import TradingClient
# Initialize client
client = TradingClient(api_key='YOUR_API_KEY')
# Create a strategy
strategy = {
'name': 'RSI Strategy',
'indicators': ['RSI'],
'entry': {'RSI': {'threshold': 30, 'type': 'below'}},
'exit': {'RSI': {'threshold': 70, 'type': 'above'}},
'risk_percent': 2
}
# Deploy
client.deploy_strategy(strategy)