Skip to main content

Variational Reference SDK

Project description

Variational SDK for Python

[!NOTE] API key generation is currently unavailable. Please contact our team via [email protected] if you are interested in using the API service.

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

Variational / Settings / API

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 key
  • secret: str (required) — your API secret
  • base_url: str (optional) — prefix of Variational API endpoints
  • request_timeout: float (default=None) — timeout for individual HTTP requests
  • retry_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


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.6.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

variational-0.6.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file variational-0.6.0.tar.gz.

File metadata

  • Download URL: variational-0.6.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for variational-0.6.0.tar.gz
Algorithm Hash digest
SHA256 34b63d6b861520375c381d76555f43aed90f42614ad0b21b49fd229c0832fcaa
MD5 9366e8dc1708eafa2991b9eb2142ca6b
BLAKE2b-256 155dae8fe60e281a2ac8ded4ed20dab8c341855c87c20e16b626635b77f075c4

See more details on using hashes here.

File details

Details for the file variational-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: variational-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for variational-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 922d17edb83c5b25a5b0c0dc83efa197975239833a7e5b622504a05d0fc1f791
MD5 432f9161639deb10282f03f04c4d29dd
BLAKE2b-256 2c201c973e58f8f5e34b9b2a6bdb4df2f5ed54d70feb89e5eff24e2eb1c0cd8a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page