Python SDK Guide
Complete Python SDK guide — sync/async clients, marketplace filtering, order lifecycle, spot market, wallet ops, and error handling
Installation
pip install clore-aiSync vs Async — When to Use Each
Use Case
Client
Why
Sync Example
Async Example
Context Managers (Recommended)
Client Configuration
Marketplace Filtering
Advanced Filtering (Client-Side)
Server Model Fields
Field
Type
Description
Order Management
Creating Orders
Full create_order Parameters
create_order ParametersParameter
Type
Required
Description
Listing Orders
Order Model Fields
Field
Type
Description
Monitoring Orders
Cancelling Orders
Server Management (for Hosters)
List Your Servers
Get Server Config
Update Server Settings
Spot Market
View Spot Offers
Create a Spot Order
Adjust Spot Price
Spot Bidding Strategy
Wallet Operations
Check Balances
Low-Balance Alert
Error Handling Best Practices
Exception Hierarchy
Basic Error Handling
Retry Pattern with Backoff
Performance Tips
1. Reuse the Client
2. Use Async for Concurrent Operations
3. Async Batch Order Creation
4. Close Clients When Done
Complete Example: Auto-Scale GPU Workers
Next Steps
Last updated
Was this helpful?