Installation
Install the SDK via pip:Setup credentials
Create a wallet
You need an Ethereum-compatible wallet. The easiest way is to export your private key from MetaMask:
- Open MetaMask browser extension
- Go to Settings → Security & Privacy → Export Private Key
- Copy your private key (starts with
0x)
Configure environment variables
Create a
.env file with your credentials:Leave
TURBINE_API_KEY_ID and TURBINE_API_PRIVATE_KEY blank. They’ll be auto-generated on first run and saved back to your .env file.Fund your wallet
Get USDC on Polygon:
- Minimum: ~$10 USDC on Polygon mainnet
- USDC contract:
0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359 - Bridge: Use the Polygon Bridge or withdraw directly from an exchange
Your first trade
Here’s a complete example that places a limit order on the current BTC market:On first run, you’ll see a message about registering API credentials. This is automatic and only happens once.
Understanding prices and sizes
Minimum order size
Read-only access
You can fetch market data without authentication:Next steps
Installation
Detailed installation options and troubleshooting
API Reference
Complete API documentation
Build a trading bot
Learn how to build automated trading strategies
WebSocket streaming
Subscribe to real-time market updates