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.4.tar.gz (180.6 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.4-cp39-abi3-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.9+Windows x86-64

polyoxide-0.12.4-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.4-cp39-abi3-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

polyoxide-0.12.4-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.4.tar.gz.

File metadata

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

File hashes

Hashes for polyoxide-0.12.4.tar.gz
Algorithm Hash digest
SHA256 e4197db8eedbfd4fbeb6ab586f7a58db2d5116d1bc7611c6da044adb52634149
MD5 185e61dcf609d777543e0e37be6fe80f
BLAKE2b-256 882aea0b15fac2730038871b804505264ee420c5a4244b56d116990596b01b98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polyoxide-0.12.4-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a46c9f5d4174b5136c71aa04d3a736724da2b03b9208b63d03d2109b259ab5c2
MD5 d47e33d08bc83cac594b0cd969413363
BLAKE2b-256 c740c1ede967a4c8963dd36d86331989f12b4e8380f32114e61c79dc184e2c79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polyoxide-0.12.4-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 47e324e2f855364cde453154c65cc1ea229bf0fb80cc49114bd0117ee2d915e2
MD5 3e4466fc1b504c2f2289f0bc3615d544
BLAKE2b-256 c84aa46466c485aca90b316288a1b8028bf2216c0432cb555621279016a5d8b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polyoxide-0.12.4-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0122371cb7efc1f06f45a26cdfc5dd667871496729934e48666a933cd136b71f
MD5 c5fc5bb5260d209e2b07c23c6556f432
BLAKE2b-256 492f3bce992c18fa936a64a668ae8de3fd6c1f088a30e346ceacdba814c0301a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polyoxide-0.12.4-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e88a4f4ac0efb24aba5babb2ab5395ed1bd0add14da56637fc90086599233ee9
MD5 a50ffd52a9f9a9b41f3587de75882164
BLAKE2b-256 feca0a2802a5d9bf6844b763a4a6d233061a2d25a357513297e2e9239f613553

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