Please do not open a public issue for a security problem. Report it privately through GitHub's private vulnerability reporting (Security tab -> Report a vulnerability) with:
- what you found and what it allows;
- how to reproduce it;
- the pmlab version (
pmlab version) and your Python version.
The maintainer will acknowledge the report, agree a fix and a disclosure date with you, and credit you in the changelog unless you prefer otherwise. A confirmed problem is fixed in a patch release.
The latest release on PyPI is supported. pmlab follows semantic versioning (see Public API and stability), so a fix lands in the current 1.x line without breaking the public API.
- Credentials.
LiveBrokertakes a private key and Polymarket API credentials. Read them from the environment or a secrets manager, never from source code, and never commit them. Nopmlabcommand places an order; only aLiveBrokerthat you construct does. - Pickled models. Champions and calibrators are stored with
pickle, as LightGBM and scikit-learn do. Load only artifacts that your own runs produced (or that you otherwise trust): unpickling an untrusted file can run arbitrary code. - Network.
GammaClientandClobClienttalk to Polymarket's public endpoints. The bundled sample dataset and the tutorial work without any network access.