Skip to content

MaxiiMu/variational-sdk-python-my-version-

 
 

Repository files navigation

Variational SDK for Python

Note

API key generation is currently unavailable. Please contact our team via hello@variational.io 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.

About

Variance of Variance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%