NEWDirect chain access. 50% cheaper than competitors.

Overview

Get started with the Qoery Python SDK

The Qoery Python SDK provides a convenient way to interact with the Qoery API, featuring built-in Pandas DataFrame support for seamless data analysis.

Installation

Install the package using pip:

pip install qoery

Setup

1. API Key Configuration

The SDK automatically looks for the QOERY_API_KEY environment variable. This is the recommended way to secure your credentials.

# .env file
QOERY_API_KEY=your_api_key_here

2. Initialize the Client

import qoery

# Automatically loads from environment variables
client = qoery.Client()

If you prefer to pass the key explicitly:

client = qoery.Client(api_key="your_api_key_here")

Features

  • DataFrame Support: Directly access data as Pandas DataFrames using .df.
  • Automatic Type Conversion: Responses are converted to proper Python types (datetime, float, etc.).
  • Smart Retries: Built-in handling for rate limits and transient errors.
  • Type Hints: Full typing support for better IDE autocompletion.

Next Steps

Explore the specific resources:

  • Candles - OHLCV market data
  • Pools - Liquidity pool discovery
  • Ticks - Raw swap/tick data