Variational Docs
HomeDiscordTwitterBlog
  • Variational Protocol
    • About Variational
    • Peer-to-peer vs DEX
    • Roadmap
    • Key Concepts
      • Trading via RFQ
      • Settlement Pools
      • Margin
      • Slippage
      • Leverage
      • Liquidation
      • Mark price vs index price vs quote price
      • Open Interest & Funding Rates
      • Fully Diluted Valuation (FDV)
      • Fees
      • Market vs. Limit Orders
      • Take Profit & Stop Loss
    • $VAR Token
    • Media Kit
    • Official Links
    • FAQ
    • Getting Help (Support)
  • Variational Omni
    • About Omni
    • Getting Started with Omni
    • Getting Started With Omni (Testnet)
    • Omni Liquidity Provider (OLP)
    • Listings
    • Risk Limits
  • Automatic Deleveraging | Counterparty Liquidation
  • Variational Pro
    • About Pro
  • Technical Documentation
    • Technical Overview
      • Authentication
      • Deposits
      • Withdrawals
      • Trades
    • Derivative Specifications
      • Perpetual Futures
      • Settlement
    • API
      • SDKs
      • Quickstart and Tutorials
        • API Trading Prerequisites and Setup
        • Settlement Pool Deposit Tutorial
        • Taker (RFQ Submitter) Tutorial
        • Maker (RFQ Responder) Tutorial
      • Endpoints
      • Data Models
      • Headers
      • Pagination
      • Rate Limits
      • Authentication
    • Contracts and ABIs
    • Security and Audits
    • Partners
  • Legal
    • Terms of Service
    • Privacy Policy
    • Restricted Persons
  • ARCHIVE
    • Testnet Trading Competition #1 Leaderboard
    • Testnet Trading Competition #2 Leaderboard
    • Testnet Trading Competition #3 Leaderboard
Powered by GitBook
On this page
  • Prerequisites
  • Prepare the Clients and Contracts
  1. Technical Documentation
  2. API
  3. Quickstart and Tutorials

API Trading Prerequisites and Setup

PreviousQuickstart and TutorialsNextSettlement Pool Deposit Tutorial

Last updated 4 months ago

API key generation is currently unavailable. Please contact our team via hello@variational.io if you are interested in using the API service.

Before you start, please make sure to familiarize yourself with the .

Prerequisites

  • Variational Python SDK and API credentials (see the )

  • Connected Ethereum wallet (go to and hit Connect in the top right corner)

  • The private key for your registered wallet to sign spending permits

  • Some test USDC on Arbitrum Sepolia (you can to get some)

Prepare the Clients and Contracts

All tutorials require a few things to be initialized:

import json

from variational import (Client, TESTNET, TransferPermitHelper,
                         PollingHelper, paginate)

# FIXME: load from environment variables
API_KEY = "your-api-key"
API_SECRET = "your-api-secret"
WALLET_PK = "your-wallet-private-key"


client = Client(API_KEY, API_SECRET, base_url=TESTNET)
permits = TransferPermitHelper(client=client, private_key=WALLET_PK)
poller = PollingHelper(client=client)
key concepts
Quickstart Guide
Variational Pro
use our faucet