Appearance
Getting Started
Install
bash
pip install --extra-index-url https://<GEMFURY_TOKEN>@pypi.fury.io/alphaquantcapital/ aqc-trading-sdkREPLACE <GEMFURY_TOKEN> WITH ACTUAL TOKEN PASSWORD. REQUEST VIG FOR IT, AND DON'T SHARE IT WITH ANYONE.
Import and Initialize
python
from aqc_trading_sdk import TradingClient
client = TradingClient(
strategy_id="AQC-P1A2B3C4",
base_url="https://engine.alpha-techlab.com"
)Strategy ID
Strategy IDs route orders and data to paper vs live accounts.
- Paper:
AQC-Pxxxxxx - Live:
AQC-Lxxxxxx
The SDK sends this as the X-Strategy-Id header on every request.
Local Development
python
client = TradingClient(
strategy_id="AQC-P1A2B3C4",
base_url="http://localhost:8000"
)Async Client
Use AsyncTradingClient inside asyncio loops:
python
import asyncio
from aqc_trading_sdk import AsyncTradingClient
async def main():
client = AsyncTradingClient(strategy_id="AQC-P1A2B3C4")
quote = await client.get_quote("SPY")
print(quote)
await client.close()
asyncio.run(main())