This release is a pre-release and may not be stable for production use.
Pyolymarket
Pyolymarket is a Python wrapper for Polymarket's public Gamma and CLOB APIs. It loads events and markets as objects you can inspect and refresh, optionally caches that catalogue on disk, and searches events by embedding similarity instead of exact keywords. All current features are available with no secretes needed, but Caching requires an OpenAI-compatable embedding model, and future CLOB trading implementation will require CLOB secretes.
Setup
For installation run:
pip install pyolymarket
Embedding search needs an OpenAI-compatible key in PYOLY_OPENAI_API_KEY.
CLOB usage requires environment variables at: PYOLY_CLOB_API_KEY, PYOLY_CLOB_SECRET,PYOLY_CLOB_PASSPHRASE, PYOLY_CLOB_ADDRESS, and PYOLY_CLOB_PRIVATE_KEY.
If you already have these variables set, you can change the endpoints using pyoly.config:
import pyolymarket as pyoly
pyoly.config.CLOB_API_KEY_ENV = "MY_SILLY_CLOB_API_KEY"
If forking
Clone this repo, then build with:
python -m build
And install the library directly through the wheel:
pip install dist/<.whl file>
Example Usage
Worked examples live in tests/
Version
Currently in v0.1.2.
Most recent changes:
- Added native API search
- Added CLOB parsing + integration
- Bug fixes
Documentation
GitPages documentation - In progress
PyPi web page
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyolymarket-0.1.2.post1.dev3.tar.gz.
File metadata
- Download URL: pyolymarket-0.1.2.post1.dev3.tar.gz
- Upload date:
- Size: 126.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79b7fd73f142d0bd46cc06e224040d3c6b71fe3cd15f0853f4e1d12755a3d86e
|
|
| MD5 |
8d290fb4d542688678a71fcd7b25d96b
|
|
| BLAKE2b-256 |
3897f83c3d21e422fcc4472833fb099be0584d8bcc64086eeefa001cab1475e2
|
File details
Details for the file pyolymarket-0.1.2.post1.dev3-py3-none-any.whl.
File metadata
- Download URL: pyolymarket-0.1.2.post1.dev3-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20c03cdc0d794b40bb451c07264fc687ee293e848d06674cda9037df0f6bef8d
|
|
| MD5 |
45c8d62033d380c4693fb3d0743c5d23
|
|
| BLAKE2b-256 |
d90c3acdb44ea6ccb355c4614440bb3ed007f4c12f19879bf64c6da7c05fb980
|