Skip to main content

Python SDK for Polymarket APIs (CLOB, Gamma, Data) — powered by Rust

Project description

Polyoxide

Python SDK for Polymarket APIs, powered by Rust via PyO3.

Provides async and sync clients for the three Polymarket API surfaces:

Client API Description
Gamma / GammaSync Gamma Market data, events, series, tags, search
ClobClient / ClobClientSync CLOB Order book, prices, spreads, trade history
DataApi / DataApiSync Data User positions, trades, leaderboard, volume

Installation

pip install polyoxide

Wheels are published for Linux (x86_64, aarch64), macOS (x86_64, aarch64), and Windows (x86_64).

Quick Start

Async

import asyncio
from polyoxide import Gamma

async def main():
    gamma = Gamma()
    markets = await gamma.markets().list(limit=5, open=True)
    for m in markets:
        print(f"{m.question}{m.slug}")

asyncio.run(main())

Sync

from polyoxide import GammaSync

gamma = GammaSync()
markets = gamma.markets().list(limit=5, open=True)
for m in markets:
    print(f"{m.question}{m.slug}")

Rust Core

The underlying HTTP and serialization layer is written in Rust (the polyoxide workspace), giving native performance with a Pythonic API.

License

Licensed under either of MIT or Apache-2.0 at your option.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polyoxide-0.12.2.tar.gz (180.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

polyoxide-0.12.2-cp39-abi3-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.9+Windows x86-64

polyoxide-0.12.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

polyoxide-0.12.2-cp39-abi3-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

polyoxide-0.12.2-cp39-abi3-macosx_10_12_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file polyoxide-0.12.2.tar.gz.

File metadata

  • Download URL: polyoxide-0.12.2.tar.gz
  • Upload date:
  • Size: 180.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for polyoxide-0.12.2.tar.gz
Algorithm Hash digest
SHA256 5d60e2397636cfa730a12b77e8742380fb9116c67be56001d5eb3d1e2727f55a
MD5 a48d970bcbbb3605fb0a890a66eb00a3
BLAKE2b-256 63bf0117aae52cd8a64aad666a62e2ffc2dd8d05c9834e86ede3003268b5f3a2

See more details on using hashes here.

File details

Details for the file polyoxide-0.12.2-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for polyoxide-0.12.2-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 beba3dd3a8d261e6abe6cf73c915f9ec230492d9800c2e23618400a94cc67ffa
MD5 3b470de873ecaa56b7cf6b80eff02f31
BLAKE2b-256 b101bf3e718624b0ab756a5fdb3826953cd1d63628fb35e7815a3269bc6cc353

See more details on using hashes here.

File details

Details for the file polyoxide-0.12.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for polyoxide-0.12.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d0c13f4cf062c89315afb403631b3a5f015abef7ba2da7e71dcbcc5fbfe73e74
MD5 f2f860448a60adf0682415513b1f0829
BLAKE2b-256 c2aebf5cf1706342d26714fd6f960fd8a60a98f5cfa7ae5703220ae2cf45430f

See more details on using hashes here.

File details

Details for the file polyoxide-0.12.2-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polyoxide-0.12.2-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e6015c9418bc54bfd68f6e86337ff204a714d25df2e21db002afff9af88df9b
MD5 9d686dc9f060417b6b4563f657a1354d
BLAKE2b-256 a16a8430b88a00fc107e15d9adc09f9af7cc8cbdf11691d3cffe4b8f933253bf

See more details on using hashes here.

File details

Details for the file polyoxide-0.12.2-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for polyoxide-0.12.2-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6ea2e373bd29de36ab62bdfb8f22b3db73f4ffad94d9c8733edef075d16aae66
MD5 1f0e8e540c365871bea28aaf0f2c45a9
BLAKE2b-256 3fcb6bc7818f1d3da1cc276fc31dabe917a60e8c5fd27e7a968fb408a7fc1c9b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page