Variational Docs
HomeDiscordTwitterBlog
  • Getting Started
    • About Variational
    • Core Contributors
    • Key Concepts
      • P2P Trading Protocol vs DEX
      • Trading via RFQ
      • Settlement Pools
      • Margin
      • Slippage
      • Leverage
      • Liquidation
      • Mark, Index, and Quoted Prices
      • Open Interest & Funding Rates
      • Fully Diluted Valuation (FDV)
      • Fees
      • Market vs. Limit Orders
      • Take Profit & Stop Loss
    • Roadmap
    • $VAR Token
    • Official Links
    • Media Kit
    • FAQ
    • Getting Help (Support)
    • Additional Resources
  • Variational Omni
    • About Omni
      • The Omni Liquidity Provider (OLP)
      • Risk Limits
      • Listings
    • Getting Started with Omni
  • 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
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