Python SDK for high-frequency trading competition platform
Project description
Python SDK
Minimal asyncio-based client that speaks the exchange binary TCP order protocol and listens for UDP market-data packets. Use this as the reference implementation when onboarding student teams.
Quick Installation
Windows
# Double-click install_sdk.bat
# OR run in PowerShell:
pip install -e .
Linux/Mac
# Run the installer:
./install_sdk.sh
# OR manually:
pip install -e .
Verify Installation
python -c "from exchange_sdk import ExchangeClient; print('SDK installed!')"
Usage Example
from exchange_sdk import ExchangeClient
from exchange_sdk.client import GatewayConfig, MarketDataConfig
# Connect to exchange
client = ExchangeClient(
team_token="your-team-SECRET",
gateway=GatewayConfig(host="159.65.173.202", port=9001),
market_data=MarketDataConfig(host="159.65.173.202", port=5001)
)
# Connect and trade
await client.connect()
client.send_new(
client_id=1,
symbol_id=1, # XYZ
side=0, # BUY
price_ticks=10000, # $100.00
quantity=10
)
await client.close()
What You Need
- Python 3.11 or higher
- The SDK installed (
pip install -e .) - Your team token (provided by organizers)
- Exchange host/port (provided by organizers)
For Competition Participants
See INSTALL_SDK.md for detailed installation instructions and troubleshooting.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file exchange_sdk-0.1.0.tar.gz.
File metadata
- Download URL: exchange_sdk-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e1bcc09af12c741b40d7903384e051eede9bfd1a661a24e05ffa2273436a718
|
|
| MD5 |
6d19f06331df9b4ac15a954eb1655ec6
|
|
| BLAKE2b-256 |
15e225e7ed416082a983ce1e778b87c6772fe29bbd77cf63793ae54fd8518a56
|
File details
Details for the file exchange_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: exchange_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5c7e6479c38188e57fb7091feef32e9d9443a6337e7dbb7b117763ab33bbb2c
|
|
| MD5 |
453951407fd69ee3fcbca71bbc50f9f8
|
|
| BLAKE2b-256 |
3f878bc8e74c84c1ae519368b0d21789dc670b7f30656b094f9da393a08b0389
|