A basis for TopstepX API integration, to be expanded upon for personal use.
TopstepAlgo/
├── src/
│ ├── api/
│ │ └── topstepx-client.js # TopstepX API connection
└── .env.example # Environment variables template
- TopstepX API Integration: Complete REST API client with authentication
- Live Data Feed: WebSocket connection for real-time market data
- Historical Data: Fetch historical price data for backtesting
- Clone or download the project
- Install dependencies:
npm install
- Configure environment:
# Edit .env.example with your TopstepX API credentials, and change to simply .env
Edit the .env file with your settings:
# TopstepX API
TOPSTEP_API_KEY=your_api_key_here
TOPSTEP_API_SECRET=your_api_secret_herenode test-live-data.js
node test-orders.js #(Requires OCO Bracket on TopstepX)This software is for educational and research purposes only. Trading involves significant risk of loss. Never trade with money you cannot afford to lose. Past performance does not guarantee future results. Always test strategies thoroughly before live trading.
MIT License - see LICENSE file for details.