Installation¶
Requirements¶
- Python 3.12 or higher
- pip or UV package manager
- TopStepX account with API access
Install from PyPI¶
Or using UV (recommended):
Install from Source¶
Install with Optional Features¶
Real-time Features¶
Development Tools¶
All Features¶
Environment Setup¶
Set your API credentials as environment variables:
export PROJECT_X_API_KEY="your-api-key" # pragma: allowlist secret
export PROJECT_X_USERNAME="your-username"
Or create a .env
file:
Verify Installation¶
import asyncio
from project_x_py import TradingSuite
async def verify():
async with TradingSuite.create(["MNQ"]) as suite:
print(f"Connected to account: {suite.client.account_info.name}")
asyncio.run(verify())