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
  • Authentication Request Headers
  • Rate Limiting Response Headers
  • Utility Response Headers
  1. Technical Documentation
  2. API

Headers

Custom HTTP headers specific to the Variational API

PreviousData ModelsNextPagination

Last updated 1 year ago

Authentication Request Headers

  • X-Request-Timestamp-Ms: Unix timestamp of the request (in milliseconds)

  • X-Variational-Key: client API key

  • X-Variational-Signature: a signature derived from the timestamp, client API key, secret, some of the request parameters and payload

Please see for more details.

Rate Limiting Response Headers

  • X-Rate-Limit-Resets-In-Ms - included with HTTP 429 Too Many Requests responses; contains a minimal delay in milliseconds after which the next request will be allowed

Please see for more details.

Utility Response Headers

  • X-Request-Received-Ms - included with all responses; contains a timestamp in milliseconds at which the request was received by the API server. Can be used to calculate network latency.

Python SDK Latency Example:

ts_before = time.time()
response = client.get_portfolio_assets(pool="10e91774-34eb-4472-86c0-c910a22a4656")
assets = response.result
latency_s = response.meta.request_received_at - ts_before
Rate Limits
Authentication