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

Uploaded CPython 3.9+Windows x86-64

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

Uploaded CPython 3.9+macOS 11.0+ ARM64

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

Uploaded CPython 3.9+macOS 10.12+ x86-64

polyoxide-0.12.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for polyoxide-0.12.1.tar.gz
Algorithm Hash digest
SHA256 a79c49661434bd180312b0d5a97f8d418071f1ba2ec75994f4c344915530c37d
MD5 53c07f1ab16011e3421662e3e628b2df
BLAKE2b-256 2cf6788213e096a2a5919643320549e021d08b3b66230f38d077faed2c7ca9a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polyoxide-0.12.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bbf593975fd2179beaa584ae54ac016d9861b8b742a1dc748710d0f8ed890167
MD5 941d3124211421e312a00ebdba6b9c89
BLAKE2b-256 8c63e2662cb092a7e140b8d6f7783c01cecd310892bf1f28ad65f1ab631e8622

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polyoxide-0.12.1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09fbb7eadb72fc5dc6cfdfeb6b9cd16eaf19591cedde0e0ffe463b7a7fbb5be0
MD5 a7b35a72976872329c51a3885bbd57b7
BLAKE2b-256 d7ddab6f9db2de73f5129e6d477f1d3ad88a93bd7134a0253f33a5e912d6a236

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polyoxide-0.12.1-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 232052715dfbd8748209537fe05043df8e642aeb30dc2da480c11b023f31851a
MD5 82f2f43e1ac6dd71799e03fd66f15b03
BLAKE2b-256 5dc7c5b997518d4bf68670532eee1b41bb47036fffe181864c2aa00db400645d

See more details on using hashes here.

File details

Details for the file polyoxide-0.12.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for polyoxide-0.12.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4907c0846d53bd1b2e3958670fae6acdc68c4510001d8259a8f3713127c0cc56
MD5 86c811c255b11984fdbbae6eed2f2f60
BLAKE2b-256 2ab31d78e4829f63f65180d06fb423183cc2c2751c7623ca217142e976cb5a47

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