Variational Reference SDK
Project description
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.
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
variational-0.5.0.tar.gz
(12.8 kB
view details)
Built Distribution
File details
Details for the file variational-0.5.0.tar.gz
.
File metadata
- Download URL: variational-0.5.0.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a8adcfd2f21d7841dddadd9b1bfc078403cfc6125dfa67ebc5d50bb924194f3 |
|
MD5 | 50c84e546674876057d313d32ed64e89 |
|
BLAKE2b-256 | 6c758963496e141a98ab8b25b375aaa86a7960082edfed18993276a6de50e4f6 |
File details
Details for the file variational-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: variational-0.5.0-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42053fc040e434a00b170913d70f4c36908d6b67ee6fa638eae0e9607aa21f37 |
|
MD5 | 12775cc45e658302b4b30d1ac20716eb |
|
BLAKE2b-256 | 45570559619a362c817490573e7fffb83acef71b5b9a9787b15967a6c0d58ab9 |