Variational SDK for Python
Documentation
https://docs.variational.io/for-developers/api
Quickstart
1. Create API credentials
Navigate to the API settings page at https://testnet.variational.io/app/settings
Add a descriptive label, create your key, and make sure to save the secret as it's only displayed once.
2. Install Python SDK
pip install variational
3. Make some requests!
from variational import Client, TESTNET
from pprint import pprint
# FIXME: load from environment variables
API_KEY = "your-api-key"
API_SECRET = "your-api-secret"
client = Client(API_KEY, API_SECRET, base_url=TESTNET)
summary = client.get_portfolio_summary().result
pprint(summary)
Client parameters:
key: str (required) — your API keysecret: str (required) — your API secretbase_url: str (optional) — prefix of Variational API endpointsrequest_timeout: float (default=None) — timeout for individual HTTP requestsretry_rate_limits: bool (default=True) — enables automatic retry on HTTP 429 errors
4. Explore
Visit Endpoint Reference to learn which API calls are supported.
Read about the Pagination mechanism used by Variational API.
Learn how Rate Limits and Authentication are applied to your calls.
Metadata
Release files for variational 0.6.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 |
|---|---|---|---|---|
| variational-0.6.0.tar.gz | 13.0 kB | Without provenance | Details for variational-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| variational-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for variational-0.6.0-py3-none-any.whl |
Total release size: 28.0 kB
Release files / variational-0.6.0.tar.gz
| Download URL | variational-0.6.0.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34b63d6b861520375c381d76555f43aed90f42614ad0b21b49fd229c0832fcaa
|
|
BLAKE2b-256 checksum How to use checksums |
155dae8fe60e281a2ac8ded4ed20dab8c341855c87c20e16b626635b77f075c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / variational-0.6.0-py3-none-any.whl
| Download URL | variational-0.6.0-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
922d17edb83c5b25a5b0c0dc83efa197975239833a7e5b622504a05d0fc1f791
|
|
BLAKE2b-256 checksum How to use checksums |
2c201c973e58f8f5e34b9b2a6bdb4df2f5ed54d70feb89e5eff24e2eb1c0cd8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Security for variational 0.6.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.