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.3.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.3-cp39-abi3-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.9+Windows x86-64

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

Uploaded CPython 3.9+macOS 11.0+ ARM64

polyoxide-0.12.3-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.3.tar.gz.

File metadata

  • Download URL: polyoxide-0.12.3.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.3.tar.gz
Algorithm Hash digest
SHA256 91bfb3f3d022fcaf86fd00cc499250c0a4fd06a9419e2b1b42eca934fd1f5521
MD5 31bb392b0fedf3ad353cc2ef5bcb11d1
BLAKE2b-256 706422b1896886b5baa0c6523a39532adb237082772ccdd5ca9213f0212a3844

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polyoxide-0.12.3-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 972a66807d78215443fbde209cdf708effbfacd1894be7512f60c9db0fc39e67
MD5 0e174292944ed21f5c2d4ec376d33cf6
BLAKE2b-256 78a47cab83805bf8adb1e2e24cd2caf5701d5b026f5a7ab6acfabfb4bf56d00f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polyoxide-0.12.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 00d55b20e66af9942555730625a5f280af2618d895b001403cafc809e50e3b21
MD5 5165251488b6b241e120a92f7f685354
BLAKE2b-256 f8bd2f69337f1e5fe7b664d4111f199c6ed00ee759f6369a0a7dce175b536b1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polyoxide-0.12.3-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad958ca7cadf42a24567e4583ab17de428f1f4110bca62d541331961b7c4f4cb
MD5 9590ad3f94bf14ca721bbf99775066b9
BLAKE2b-256 3010c4c5e6d70e5046028851bdcd4be86330710449b4a0aea11cf784b37198e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polyoxide-0.12.3-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bd9f70f66ed2d6dfe1f8643c778f3179b27fd7f91188b1145d5a1f6cc8b28fdd
MD5 e3f5c5367e099b245b12993a6c7a6fd7
BLAKE2b-256 9736bc5b9e71a1daa5d444824228ef4984d74e13480d1feff0ef377153c439c7

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