Installation¶
Requirements¶
- Python 3.10 or higher
- An OANDA account (practice or live)
- API access token from OANDA
- uv - Modern Python package manager (installation guide)
Environment Setup¶
Using uv (Recommended)¶
For optimal package management with automatic virtual environment handling:
# Create project with virtual environment
uv venv
# Add FiveTwenty to your project
uv add fivetwenty
Install from PyPI¶
The recommended way to install FiveTwenty is via uv:
Install from Source¶
For the latest development version:
Verify Installation¶
Test your installation:
# Step 1: Import FiveTwenty SDK to verify successful installation
# This confirms the package was installed correctly and is accessible
import fivetwenty
# Step 2: Display installed version for verification and troubleshooting
# Version information helps confirm you have the expected release installed
print(f"FiveTwenty SDK version: {fivetwenty.__version__}")
# Step 3: Optional - Verify core dependencies are available
# This additional check ensures all required components are properly installed
try:
import httpx
import pydantic
print("Success Core dependencies verified: httpx and pydantic available")
print("Starting FiveTwenty SDK installation complete and ready for use")
except ImportError as e:
print(f"⚠️ Dependency issue detected: {e}")
print(" Run 'uv add fivetwenty' to reinstall with dependencies")
Expected output:
Dependencies¶
The SDK automatically installs these minimal core dependencies:
- httpx - Modern async HTTP client with connection pooling
- pydantic - Data validation and serialization (v2+)
Next Steps¶
Now that you have the SDK installed:
- Set up authentication with your OANDA API token
- Make your first trade
For a complete understanding of practice vs live trading, see the Environment Management Guide.
Development Setup
If you're contributing to the SDK, see the project's GitHub repository for development setup instructions.