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
Metadata
Release files for carrac-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| carrac_sdk-0.1.0.tar.gz | 6.3 kB | Without provenance | Details for carrac_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| carrac_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for carrac_sdk-0.1.0-py3-none-any.whl |
Total release size: 12.4 kB
Release files / carrac_sdk-0.1.0.tar.gz
| Download URL | carrac_sdk-0.1.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
315bd99b7955c6b0343f13067c764e1d33cba3312459e51f4d9b9c8b07fbc555
|
|
BLAKE2b-256 checksum How to use checksums |
b1df3788f2f90e260d12852d7cc0dd1726f97a4346c04da23654527d179af5ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / carrac_sdk-0.1.0-py3-none-any.whl
| Download URL | carrac_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83a929b3126ffdf7e10dbcbed0e18b8f13406fe6754f4a6a0e5ba1e9cb48abd6
|
|
BLAKE2b-256 checksum How to use checksums |
656e0af13f63d975a1562481e51729032614a185ca36f991a219e9f8c8f9fe2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for carrac-sdk 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.