Endpoint | Method | Description | Parameters |
---|---|---|---|
/api/login |
POST | Authenticate and get access token |
|
/api/submit_order |
POST | Submit a new trade order |
|
/api/trades |
GET | Get today's trades | No parameters required |
/api/positions |
GET | Get current positions | No parameters required |
07:00 - 15:40
Max position: 100
Position size: 1-200
Max daily trades: 1000
curl -X POST https://your-server/api/login \
-H "Content-Type: application/json" \
-d '{
"nickname": "your_username",
"password": "your_password"
}'
curl -X POST https://your-server/api/submit_order \
-H "Content-Type: application/json" \
-H "Authorization: YOUR_TOKEN" \
-d '{
"direction": "B",
"secid": "SBER",
"position": 100,
"bot": "MyTradingBot"
}'