Skip to main content

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

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

Uploaded Source

Built Distribution

variational-0.2.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: variational-0.2.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for variational-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0963d84cda8f6fec88ac4cb77f23f869a96bdfec00a7d64068b608f1fda2c21a
MD5 0b95708e0a96e4a63b1581fc237c416b
BLAKE2b-256 81e9867a033d58b171bb9c69977307f7cebae4698aeb43be53877b6b786aeff7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: variational-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for variational-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0da4e2e17ab9bf6e747431b73f2cd8d8a944d62d745c4fec7f385df5d7aa3cc6
MD5 4effb3c295d90b48940be606fd4babe6
BLAKE2b-256 d0c0d8f5a32e14782aacd22d05b63eefbf6a0fcc50e3b4fcf4bfaeea1be9781c

See more details on using hashes here.

Supported by

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