Official Python SDK for Carrac — market data, plays, alerts, usage
Project description
Carrac Python SDK
Official Python client for the Carrac API. Use it to fetch market data, manage plays, create alerts, and inspect your API usage from any Python application.
Install
pip install carrac-sdk
Requires Python ≥ 3.9 and a Carrac Premium subscription (API keys require Premium).
Quick start
from carrac import Client
cvx = Client(api_key="carrac_k_...")
# Market data
chart = cvx.charts.get("BTC", timeframe="4h", indicators="CPR,RSI")
# Composite call — everything about an asset in one request
detail = cvx.composite.asset_detail("BTC", format="compact")
# Create an alert
cvx.alerts.create(symbol="BTC", alert_type="price", condition="above", price=120000)
# Scanner
ranked = cvx.scanner.list(direction="long", verdict="STRONG,GOOD")
# Your usage
usage = cvx.usage.get()
print(usage["rest"]["usage"]) # [{window:"minute", used:7, limit:240, remaining:233}, ...]
Authentication
- Go to Settings → API & Developer in the Carrac dashboard.
- Click Create Key, copy the full key (shown once).
- Use it with
Client(api_key=...)or setCARRAC_API_KEYin your environment.
Features
- Per-user scoped keys — every call is rate-limited against your own Premium budget.
- Automatic 429 backoff honouring
Retry-After. - Pagination iterators for list endpoints.
- Works in any Python ≥ 3.9 runtime (CPython, PyPy, Lambda, serverless).
Docs
Interactive API reference: https://app.carrac.cc/api/docs OpenAPI spec: https://app.carrac.cc/api/openapi.json
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 carrac_sdk-0.1.0.tar.gz.
File metadata
- Download URL: carrac_sdk-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
315bd99b7955c6b0343f13067c764e1d33cba3312459e51f4d9b9c8b07fbc555
|
|
| MD5 |
341df0e0b0e0ac3428e349efba87d510
|
|
| BLAKE2b-256 |
b1df3788f2f90e260d12852d7cc0dd1726f97a4346c04da23654527d179af5ea
|
File details
Details for the file carrac_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: carrac_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83a929b3126ffdf7e10dbcbed0e18b8f13406fe6754f4a6a0e5ba1e9cb48abd6
|
|
| MD5 |
84dba99d4ff6ff4dcb4f12904ac08972
|
|
| BLAKE2b-256 |
656e0af13f63d975a1562481e51729032614a185ca36f991a219e9f8c8f9fe2f
|