polymarket-client 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- polymarket_client-0.1.0/.editorconfig +11 -0
- polymarket_client-0.1.0/.env.example +20 -0
- polymarket_client-0.1.0/.gitignore +16 -0
- polymarket_client-0.1.0/.python-version +1 -0
- polymarket_client-0.1.0/.release-please-manifest.json +3 -0
- polymarket_client-0.1.0/CHANGELOG.md +327 -0
- polymarket_client-0.1.0/CLAUDE.md +3 -0
- polymarket_client-0.1.0/LICENSE +21 -0
- polymarket_client-0.1.0/PKG-INFO +242 -0
- polymarket_client-0.1.0/README.md +198 -0
- polymarket_client-0.1.0/SECURITY.md +22 -0
- polymarket_client-0.1.0/examples/README.md +44 -0
- polymarket_client-0.1.0/examples/__init__.py +0 -0
- polymarket_client-0.1.0/examples/create_limit_order.py +59 -0
- polymarket_client-0.1.0/examples/create_market_order.py +61 -0
- polymarket_client-0.1.0/examples/fetch_market.py +35 -0
- polymarket_client-0.1.0/examples/lib/__init__.py +0 -0
- polymarket_client-0.1.0/examples/lib/env.py +17 -0
- polymarket_client-0.1.0/examples/lib/markets.py +51 -0
- polymarket_client-0.1.0/examples/lib/tables.py +63 -0
- polymarket_client-0.1.0/examples/list_markets.py +22 -0
- polymarket_client-0.1.0/examples/list_positions.py +42 -0
- polymarket_client-0.1.0/examples/market_prices.py +47 -0
- polymarket_client-0.1.0/examples/pagination.py +27 -0
- polymarket_client-0.1.0/examples/search.py +56 -0
- polymarket_client-0.1.0/pyproject.toml +129 -0
- polymarket_client-0.1.0/src/polymarket/__init__.py +416 -0
- polymarket_client-0.1.0/src/polymarket/_frames_bridge.py +14 -0
- polymarket_client-0.1.0/src/polymarket/_internal/__init__.py +0 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/__init__.py +0 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/_cursor.py +41 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/account.py +239 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/auth.py +199 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/builders.py +68 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/clob.py +272 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/data.py +573 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/gamma.py +742 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/__init__.py +0 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/_numeric.py +27 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/allowance.py +90 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/cancel.py +60 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/context.py +69 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/estimate.py +168 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/limit.py +158 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/market.py +312 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/market_data.py +218 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/math.py +48 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/orders.py +73 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/place.py +190 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/post.py +90 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/typed_data.py +203 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/orders/types.py +54 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/perps/__init__.py +0 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/perps/account.py +375 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/perps/credentials.py +174 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/perps/funds.py +115 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/perps/paging.py +206 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/perps/public.py +300 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/perps/signing.py +195 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/perps/trading.py +174 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/relayer/__init__.py +0 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/relayer/approvals.py +219 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/relayer/auth.py +93 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/relayer/calls.py +351 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/relayer/deployed.py +36 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/relayer/gasless.py +587 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/relayer/nonce.py +64 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/relayer/poll.py +99 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/relayer/positions.py +357 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/relayer/signing/__init__.py +0 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/relayer/signing/deposit_wallet.py +96 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/relayer/signing/proxy.py +59 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/relayer/signing/safe.py +110 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/relayer/submit.py +54 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/rewards.py +309 -0
- polymarket_client-0.1.0/src/polymarket/_internal/actions/rfq.py +87 -0
- polymarket_client-0.1.0/src/polymarket/_internal/context.py +64 -0
- polymarket_client-0.1.0/src/polymarket/_internal/data_params.py +25 -0
- polymarket_client-0.1.0/src/polymarket/_internal/dispatch.py +338 -0
- polymarket_client-0.1.0/src/polymarket/_internal/eoa/__init__.py +0 -0
- polymarket_client-0.1.0/src/polymarket/_internal/eoa/broadcast.py +165 -0
- polymarket_client-0.1.0/src/polymarket/_internal/eoa/rpc.py +345 -0
- polymarket_client-0.1.0/src/polymarket/_internal/gamma_paths.py +100 -0
- polymarket_client-0.1.0/src/polymarket/_internal/hmac.py +34 -0
- polymarket_client-0.1.0/src/polymarket/_internal/l1_auth.py +84 -0
- polymarket_client-0.1.0/src/polymarket/_internal/pagination.py +330 -0
- polymarket_client-0.1.0/src/polymarket/_internal/perps_session.py +1045 -0
- polymarket_client-0.1.0/src/polymarket/_internal/request.py +87 -0
- polymarket_client-0.1.0/src/polymarket/_internal/rfq.py +802 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/__init__.py +0 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/clob/__init__.py +0 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/clob/heartbeat.py +62 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/clob/market.py +209 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/clob/market_protocol.py +124 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/clob/user.py +213 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/clob/user_protocol.py +98 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/handle.py +134 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/merged_handle.py +140 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/perps/__init__.py +0 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/perps/heartbeat.py +65 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/perps/market.py +209 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/perps/market_protocol.py +125 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/reconnect.py +93 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/registry.py +73 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/rtds/__init__.py +0 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/rtds/heartbeat.py +60 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/rtds/manager.py +183 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/rtds/protocol.py +145 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/sports/__init__.py +0 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/sports/heartbeat.py +69 -0
- polymarket_client-0.1.0/src/polymarket/_internal/streams/sports/manager.py +173 -0
- polymarket_client-0.1.0/src/polymarket/_internal/validation.py +29 -0
- polymarket_client-0.1.0/src/polymarket/_internal/wallet.py +229 -0
- polymarket_client-0.1.0/src/polymarket/_internal/ws/__init__.py +11 -0
- polymarket_client-0.1.0/src/polymarket/_internal/ws/backoff.py +25 -0
- polymarket_client-0.1.0/src/polymarket/_internal/ws/connection.py +277 -0
- polymarket_client-0.1.0/src/polymarket/_internal/ws/heartbeat.py +26 -0
- polymarket_client-0.1.0/src/polymarket/_jupyter.py +72 -0
- polymarket_client-0.1.0/src/polymarket/auth.py +58 -0
- polymarket_client-0.1.0/src/polymarket/calls.py +33 -0
- polymarket_client-0.1.0/src/polymarket/clients/__init__.py +8 -0
- polymarket_client-0.1.0/src/polymarket/clients/_transport.py +372 -0
- polymarket_client-0.1.0/src/polymarket/clients/async_public.py +1498 -0
- polymarket_client-0.1.0/src/polymarket/clients/async_secure.py +3259 -0
- polymarket_client-0.1.0/src/polymarket/clients/public.py +1182 -0
- polymarket_client-0.1.0/src/polymarket/clients/secure.py +2684 -0
- polymarket_client-0.1.0/src/polymarket/environments.py +89 -0
- polymarket_client-0.1.0/src/polymarket/errors.py +67 -0
- polymarket_client-0.1.0/src/polymarket/frames/__init__.py +14 -0
- polymarket_client-0.1.0/src/polymarket/frames/_arrow.py +357 -0
- polymarket_client-0.1.0/src/polymarket/frames/_builtin_overrides.py +46 -0
- polymarket_client-0.1.0/src/polymarket/frames/_errors.py +10 -0
- polymarket_client-0.1.0/src/polymarket/frames/_overrides.py +48 -0
- polymarket_client-0.1.0/src/polymarket/frames/_pandas.py +95 -0
- polymarket_client-0.1.0/src/polymarket/frames/_polars.py +94 -0
- polymarket_client-0.1.0/src/polymarket/models/__init__.py +379 -0
- polymarket_client-0.1.0/src/polymarket/models/base.py +40 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/__init__.py +85 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/_validators.py +239 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/account.py +200 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/api_key.py +38 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/builder.py +74 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/cancel.py +16 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/last_trade.py +21 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/market_events.py +230 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/order_book.py +95 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/order_response.py +151 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/orders.py +31 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/price_history.py +28 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/relayer.py +105 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/requests.py +13 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/rewards.py +235 -0
- polymarket_client-0.1.0/src/polymarket/models/clob/user_events.py +172 -0
- polymarket_client-0.1.0/src/polymarket/models/data/__init__.py +104 -0
- polymarket_client-0.1.0/src/polymarket/models/data/activity.py +474 -0
- polymarket_client-0.1.0/src/polymarket/models/data/analytics.py +91 -0
- polymarket_client-0.1.0/src/polymarket/models/data/leaderboard.py +88 -0
- polymarket_client-0.1.0/src/polymarket/models/data/market_positions.py +57 -0
- polymarket_client-0.1.0/src/polymarket/models/data/portfolio.py +281 -0
- polymarket_client-0.1.0/src/polymarket/models/gamma/__init__.py +115 -0
- polymarket_client-0.1.0/src/polymarket/models/gamma/comment.py +127 -0
- polymarket_client-0.1.0/src/polymarket/models/gamma/common.py +425 -0
- polymarket_client-0.1.0/src/polymarket/models/gamma/event.py +528 -0
- polymarket_client-0.1.0/src/polymarket/models/gamma/market.py +582 -0
- polymarket_client-0.1.0/src/polymarket/models/gamma/profile.py +54 -0
- polymarket_client-0.1.0/src/polymarket/models/gamma/search.py +168 -0
- polymarket_client-0.1.0/src/polymarket/models/gamma/series.py +19 -0
- polymarket_client-0.1.0/src/polymarket/models/gamma/tag.py +22 -0
- polymarket_client-0.1.0/src/polymarket/models/perps/__init__.py +181 -0
- polymarket_client-0.1.0/src/polymarket/models/perps/_validators.py +64 -0
- polymarket_client-0.1.0/src/polymarket/models/perps/account.py +163 -0
- polymarket_client-0.1.0/src/polymarket/models/perps/credentials.py +46 -0
- polymarket_client-0.1.0/src/polymarket/models/perps/events.py +367 -0
- polymarket_client-0.1.0/src/polymarket/models/perps/funds.py +80 -0
- polymarket_client-0.1.0/src/polymarket/models/perps/market.py +225 -0
- polymarket_client-0.1.0/src/polymarket/models/perps/orders.py +174 -0
- polymarket_client-0.1.0/src/polymarket/models/perps/requests.py +176 -0
- polymarket_client-0.1.0/src/polymarket/models/perps/results.py +41 -0
- polymarket_client-0.1.0/src/polymarket/models/perps/types.py +72 -0
- polymarket_client-0.1.0/src/polymarket/models/rfq.py +150 -0
- polymarket_client-0.1.0/src/polymarket/models/rtds_events.py +237 -0
- polymarket_client-0.1.0/src/polymarket/models/sports_events.py +63 -0
- polymarket_client-0.1.0/src/polymarket/models/types.py +135 -0
- polymarket_client-0.1.0/src/polymarket/pagination.py +315 -0
- polymarket_client-0.1.0/src/polymarket/perps.py +21 -0
- polymarket_client-0.1.0/src/polymarket/py.typed +0 -0
- polymarket_client-0.1.0/src/polymarket/rfq.py +300 -0
- polymarket_client-0.1.0/src/polymarket/streams/__init__.py +194 -0
- polymarket_client-0.1.0/src/polymarket/streams/_specs.py +369 -0
- polymarket_client-0.1.0/src/polymarket/transactions.py +181 -0
- polymarket_client-0.1.0/src/polymarket/types.py +9 -0
- polymarket_client-0.1.0/src/polymarket/version.py +8 -0
- polymarket_client-0.1.0/uv.lock +1572 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Copy this file to .env for local integration tests.
|
|
2
|
+
# Use disposable test credentials only. Never commit real secrets.
|
|
3
|
+
|
|
4
|
+
POLYMARKET_RUN_METERED_TESTS=0
|
|
5
|
+
POLYMARKET_PRIVATE_KEY=0xYOUR_TEST_PRIVATE_KEY
|
|
6
|
+
POLYMARKET_DEPOSIT_WALLET=0xYOUR_TEST_WALLET
|
|
7
|
+
POLYMARKET_PROXY_PRIVATE_KEY=0xYOUR_PROXY_PRIVATE_KEY
|
|
8
|
+
POLYMARKET_PROXY_WALLET=0xYOUR_PROXY_WALLET
|
|
9
|
+
POLYMARKET_SAFE_PRIVATE_KEY=0xYOUR_SAFE_PRIVATE_KEY
|
|
10
|
+
POLYMARKET_SAFE_WALLET=0xYOUR_SAFE_WALLET
|
|
11
|
+
POLYMARKET_TEST_API_KEY=
|
|
12
|
+
POLYMARKET_TEST_API_SECRET=
|
|
13
|
+
POLYMARKET_TEST_API_PASSPHRASE=
|
|
14
|
+
POLYMARKET_BUILDER_CODE=0xYOUR_BUILDER_CODE_BYTES32
|
|
15
|
+
POLYMARKET_BUILDER_API_KEY=YOUR_BUILDER_API_KEY
|
|
16
|
+
POLYMARKET_BUILDER_SECRET=YOUR_BUILDER_SECRET
|
|
17
|
+
POLYMARKET_BUILDER_PASSPHRASE=YOUR_BUILDER_PASSPHRASE
|
|
18
|
+
POLYMARKET_RELAYER_API_KEY=YOUR_RELAYER_API_KEY
|
|
19
|
+
POLYMARKET_RELAYER_API_KEY_ADDRESS=YOUR_RELAYER_API_KEY_ADDRESS
|
|
20
|
+
POLYMARKET_TEST_CONDITION_ID=0xYOUR_TEST_CONDITION_ID_BYTES32
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.11
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.1.0](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b21...polymarket-client-v0.1.0) (2026-07-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **clob:** add condition_id alias to CLOB models, deprecate market ([3940237](https://github.com/Polymarket/py-sdk/commit/3940237aa34464b422ed5dcbbb82f59ade7cb857))
|
|
9
|
+
* **models:** type cancellation result order IDs with OrderId ([a754f2f](https://github.com/Polymarket/py-sdk/commit/a754f2f53859ff40c99d10d9337239c9f7a1a37a))
|
|
10
|
+
* **models:** type cancellation result order IDs with OrderId ([f8cd831](https://github.com/Polymarket/py-sdk/commit/f8cd8317b76a3419a4d1f4dcdb32e8c16c62fc17))
|
|
11
|
+
* prepare Python SDK for stable 0.x ([27906ec](https://github.com/Polymarket/py-sdk/commit/27906ec4ba23101bbc63aacee829b337f839552d))
|
|
12
|
+
* prepare Python SDK for stable 0.x ([5b3f256](https://github.com/Polymarket/py-sdk/commit/5b3f25687a181f5d9ba9110b13c6c8167b6adfff))
|
|
13
|
+
* **streams:** drop unknown frames without closing connections ([f95aba1](https://github.com/Polymarket/py-sdk/commit/f95aba1e622fa88aa2bba0583cb103629c6458c0))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **orders:** reject prices that are not a multiple of the tick size ([2578124](https://github.com/Polymarket/py-sdk/commit/2578124167c4768a546dc4a5d1a511c1762ee626))
|
|
19
|
+
* **orders:** reject prices that are not a multiple of the tick size ([87bc4c9](https://github.com/Polymarket/py-sdk/commit/87bc4c9962833cf5fc9c95bca7a538bc4906b578))
|
|
20
|
+
|
|
21
|
+
## [0.1.0-b21](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b20...polymarket-client-v0.1.0-b21) (2026-07-17)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **relayer:** stop approving retired neg-risk adapter in trading setup ([#179](https://github.com/Polymarket/py-sdk/issues/179)) ([b664047](https://github.com/Polymarket/py-sdk/commit/b66404776a4514a485f6b6fb2bb913c35d8fc4e8))
|
|
27
|
+
|
|
28
|
+
## [0.1.0-b20](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b19...polymarket-client-v0.1.0-b20) (2026-07-17)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* **clob:** return TokenId-keyed maps from batch price reads ([a61c71f](https://github.com/Polymarket/py-sdk/commit/a61c71f57300acd4e71eb1ceed3a2b984efaa730))
|
|
34
|
+
* **clob:** return TokenId-keyed maps from batch price reads ([a3e3baf](https://github.com/Polymarket/py-sdk/commit/a3e3bafab96029cbc5a7d0de9935a6b1412f84a7))
|
|
35
|
+
* **models:** treat empty strings as absent for optional stream decimals ([d4a561f](https://github.com/Polymarket/py-sdk/commit/d4a561f6d751ed5bd5e26f4327bcfd45a2b27056))
|
|
36
|
+
* **models:** treat empty strings as absent for optional stream decimals ([377d13e](https://github.com/Polymarket/py-sdk/commit/377d13ed6609a870be5801db7b375c9921a9b967))
|
|
37
|
+
* **rfq:** drop unreleased QUOTE_VALIDATION_TIMEOUT_INTERNAL error code ([c8f5d48](https://github.com/Polymarket/py-sdk/commit/c8f5d4872062c18a99da7a4074f9b6bc95ec8d89))
|
|
38
|
+
* **rfq:** drop unreleased QUOTE_VALIDATION_TIMEOUT_INTERNAL error code ([ce72cf9](https://github.com/Polymarket/py-sdk/commit/ce72cf97503143a3b5ea46e3d7007b35d5787eea))
|
|
39
|
+
* **rfq:** keep sessions open for new error codes ([51a2696](https://github.com/Polymarket/py-sdk/commit/51a26962457890527970b97dd64f989f2f4f155b))
|
|
40
|
+
* **rfq:** keep sessions open for new error codes ([9c39dcc](https://github.com/Polymarket/py-sdk/commit/9c39dcc7d1259c236648cae00b73458f4fe92e32))
|
|
41
|
+
* **rfq:** pass unknown error codes through and model connection loss explicitly ([4c2e93a](https://github.com/Polymarket/py-sdk/commit/4c2e93a53de25bfeb6ef4df8f3c1ed74589754a8))
|
|
42
|
+
* **streams:** support batched Perps fill frames ([9be4c4f](https://github.com/Polymarket/py-sdk/commit/9be4c4f3d9df0c050afc805666c7966349c504c7))
|
|
43
|
+
* **streams:** support batched Perps fill frames ([5446ea3](https://github.com/Polymarket/py-sdk/commit/5446ea311077d63d82802c65d23c74d63be301b5))
|
|
44
|
+
* **streams:** support batched Perps trade frames ([feb18e3](https://github.com/Polymarket/py-sdk/commit/feb18e378efb2f0834347e620def9969094094fb))
|
|
45
|
+
* **streams:** support batched Perps trade frames ([f088ffb](https://github.com/Polymarket/py-sdk/commit/f088ffb1812a974fb641f50bc7ed08b3eb0c30ae))
|
|
46
|
+
|
|
47
|
+
## [0.1.0-b19](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b18...polymarket-client-v0.1.0-b19) (2026-07-13)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* **models:** add RESOLVED_PARTIAL to ComboPositionStatus ([9ab11ad](https://github.com/Polymarket/py-sdk/commit/9ab11ad44309f0bb43619281b78f8e586a2dcfb9))
|
|
53
|
+
* **models:** add RESOLVED_PARTIAL to ComboPositionStatus ([ae31b28](https://github.com/Polymarket/py-sdk/commit/ae31b28ebd67c6c7d5c23036004856b6113f261c))
|
|
54
|
+
|
|
55
|
+
## [0.1.0-b18](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b17...polymarket-client-v0.1.0-b18) (2026-07-10)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Bug Fixes
|
|
59
|
+
|
|
60
|
+
* **models:** parse Combo activity type ([dd606ac](https://github.com/Polymarket/py-sdk/commit/dd606ac7e6b0435a19cac93c073efb9b24c0ecb6))
|
|
61
|
+
* **models:** parse Combo activity type ([92ef685](https://github.com/Polymarket/py-sdk/commit/92ef685fc130108d27c6f9e6947875d3bb5e79a8))
|
|
62
|
+
* **ws:** bound websocket close latency ([dadc671](https://github.com/Polymarket/py-sdk/commit/dadc671b3a0002acab54856afd00bf1a4921501c))
|
|
63
|
+
* **ws:** bound websocket close latency ([0ea0808](https://github.com/Polymarket/py-sdk/commit/0ea08081fa28c77f2365e6765042682db9b4c429))
|
|
64
|
+
|
|
65
|
+
## [0.1.0-b17](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b16...polymarket-client-v0.1.0-b17) (2026-07-10)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Features
|
|
69
|
+
|
|
70
|
+
* **client:** add combo data pagination ([27a4ed6](https://github.com/Polymarket/py-sdk/commit/27a4ed682811dceb287196d7a8745637362940f0))
|
|
71
|
+
* **client:** add combo data pagination ([e8e7269](https://github.com/Polymarket/py-sdk/commit/e8e726937ad7c50ac704afb2f6cb304106238ce8))
|
|
72
|
+
* **clients:** add typed overloads for market/event/tag lookups ([5189151](https://github.com/Polymarket/py-sdk/commit/51891514cefc759a7f7735145b983226eca989af))
|
|
73
|
+
* **clients:** add typed overloads for mutually-exclusive lookup args ([93252f3](https://github.com/Polymarket/py-sdk/commit/93252f3ec121945a156967dd81e1d13cdd6185aa))
|
|
74
|
+
* **clients:** add typed overloads for redeem_positions ([7d77862](https://github.com/Polymarket/py-sdk/commit/7d77862c3732fdfb2c182b9e72655b6892734e90))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Bug Fixes
|
|
78
|
+
|
|
79
|
+
* **client:** add trade time filters ([6d26ab4](https://github.com/Polymarket/py-sdk/commit/6d26ab4ae0a81ff6aba51c2445eded54c9700e98))
|
|
80
|
+
* **client:** harden combo pagination filters ([c37f6ca](https://github.com/Polymarket/py-sdk/commit/c37f6caf87c6c14d566309c253d075a1707e7864))
|
|
81
|
+
* **client:** normalize combo data field names ([7727ae5](https://github.com/Polymarket/py-sdk/commit/7727ae565789f9859186987da80cf6c961205f1d))
|
|
82
|
+
* **models:** brand combo activity ids ([7de9aa5](https://github.com/Polymarket/py-sdk/commit/7de9aa57b043bbccfae14dd5d081b5f24c1b131a))
|
|
83
|
+
* **models:** brand combo activity ids ([b58323e](https://github.com/Polymarket/py-sdk/commit/b58323ede883f058e33bb2c32fcbc00625c41194))
|
|
84
|
+
|
|
85
|
+
## [0.1.0-b16](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b15...polymarket-client-v0.1.0-b16) (2026-07-08)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### Bug Fixes
|
|
89
|
+
|
|
90
|
+
* **client:** update auto-redeem operator ([cb709e2](https://github.com/Polymarket/py-sdk/commit/cb709e2bd6044ffe7b9907211d7c5d5c13d50f5c))
|
|
91
|
+
* **client:** update auto-redeem operator ([5f7d828](https://github.com/Polymarket/py-sdk/commit/5f7d8283b40857e936474d1e00275e8428af5ea4))
|
|
92
|
+
|
|
93
|
+
## [0.1.0-b15](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b14...polymarket-client-v0.1.0-b15) (2026-07-07)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Features
|
|
97
|
+
|
|
98
|
+
* **client:** add perps support ([9054e7a](https://github.com/Polymarket/py-sdk/commit/9054e7ae5538434f73619c4cded03d6cf985de21))
|
|
99
|
+
|
|
100
|
+
## [0.1.0-b14](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b13...polymarket-client-v0.1.0-b14) (2026-07-07)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Features
|
|
104
|
+
|
|
105
|
+
* **auth:** add builder-api-key management (create/fetch/revoke) ([8f0925e](https://github.com/Polymarket/py-sdk/commit/8f0925ef99700c00f20700de325707319e9fd5ba))
|
|
106
|
+
* **client:** support for multiple position merges ([24b8689](https://github.com/Polymarket/py-sdk/commit/24b86895969964bc40425262547e45054f7417e7))
|
|
107
|
+
* **examples:** add runnable Python SDK examples ([9d87d2f](https://github.com/Polymarket/py-sdk/commit/9d87d2f813d6034ce27149d55ac69d4c81d996d9))
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Bug Fixes
|
|
111
|
+
|
|
112
|
+
* **client:** resolve closed markets for redeem ([58fc121](https://github.com/Polymarket/py-sdk/commit/58fc12112d0d45d40a53294360810195408f5fc0))
|
|
113
|
+
* **client:** resolve closed markets for redeem ([205f989](https://github.com/Polymarket/py-sdk/commit/205f989b2aad6583edf3fb38ba110568ad67f79c))
|
|
114
|
+
* wait for confirmed gasless transactions ([8d02ec1](https://github.com/Polymarket/py-sdk/commit/8d02ec1cf0b6fe3e2a82128a8839bd5a8190d55b))
|
|
115
|
+
* wait for confirmed gasless transactions ([2fab25f](https://github.com/Polymarket/py-sdk/commit/2fab25f869de0a97cc55e48bc1f7b63c6f3b6405))
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### Documentation
|
|
119
|
+
|
|
120
|
+
* clarify integration test fixture guidance ([ad8d23c](https://github.com/Polymarket/py-sdk/commit/ad8d23c1b98520f9e3c43916f69b54e44d17a891))
|
|
121
|
+
|
|
122
|
+
## [0.1.0-b13](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b12...polymarket-client-v0.1.0-b13) (2026-07-03)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### Bug Fixes
|
|
126
|
+
|
|
127
|
+
* **client:** require 3 minute GTD expirations ([d487124](https://github.com/Polymarket/py-sdk/commit/d4871249fa7f953c43edef18fa80d1e7bd07a8e1))
|
|
128
|
+
* **client:** require 3 minute GTD expirations ([0c113cd](https://github.com/Polymarket/py-sdk/commit/0c113cde698b7b5cfbc1c6162b2d534fda5e436a))
|
|
129
|
+
|
|
130
|
+
## [0.1.0-b12](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b11...polymarket-client-v0.1.0-b12) (2026-07-02)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### Bug Fixes
|
|
134
|
+
|
|
135
|
+
* **client:** support new clob tick sizes ([a45aa1e](https://github.com/Polymarket/py-sdk/commit/a45aa1ecfaec242d85bf6b194d684d975bfa8f9a))
|
|
136
|
+
* **client:** support new CLOB tick sizes ([7e1bb17](https://github.com/Polymarket/py-sdk/commit/7e1bb1763c5165bf366d7351548dc59fbbd7790a))
|
|
137
|
+
|
|
138
|
+
## [0.1.0-b11](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b10...polymarket-client-v0.1.0-b11) (2026-06-29)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
### Bug Fixes
|
|
142
|
+
|
|
143
|
+
* **client:** clean up deposit wallet deployment ([4140f72](https://github.com/Polymarket/py-sdk/commit/4140f723debabc218c88c8998d3240bf3972e441))
|
|
144
|
+
* **client:** clean up deposit wallet deployment ([c098c9b](https://github.com/Polymarket/py-sdk/commit/c098c9bc0eb8ef34522f99b0dcbec92e84b1a4db))
|
|
145
|
+
* **client:** split rejected RPC batches ([245b97a](https://github.com/Polymarket/py-sdk/commit/245b97a8147697db178ebe84941f80ccf7475849))
|
|
146
|
+
* **gamma:** type search sort fields ([238811a](https://github.com/Polymarket/py-sdk/commit/238811a540167298572c305f676bbfe2205af23e))
|
|
147
|
+
|
|
148
|
+
## [0.1.0-b10](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b9...polymarket-client-v0.1.0-b10) (2026-06-23)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Bug Fixes
|
|
152
|
+
|
|
153
|
+
* **gamma:** preserve market group item title ([e4b8185](https://github.com/Polymarket/py-sdk/commit/e4b81854001d50d1db290f8701fb830ab7d0c17c))
|
|
154
|
+
* **gamma:** preserve market group item title ([264ef60](https://github.com/Polymarket/py-sdk/commit/264ef6068aae49f69dfb9f826ede1f2b5ade58cb))
|
|
155
|
+
|
|
156
|
+
## [0.1.0-b9](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b8...polymarket-client-v0.1.0-b9) (2026-06-19)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### Features
|
|
160
|
+
|
|
161
|
+
* **rfq:** expose confirmed trade broadcasts ([62f040a](https://github.com/Polymarket/py-sdk/commit/62f040afbcd5030f65d72960a40afe11fcb4ca41))
|
|
162
|
+
* **rfq:** expose confirmed trade broadcasts ([7c91ac8](https://github.com/Polymarket/py-sdk/commit/7c91ac89a0e5a0d05ec0ee8a86c0ab1ad6b09fd7))
|
|
163
|
+
* **rfq:** expose error ids ([c907fc6](https://github.com/Polymarket/py-sdk/commit/c907fc692a8bae9e970a96b5ec101e26e20e3b61))
|
|
164
|
+
* **rfq:** expose RFQ error IDs ([a537547](https://github.com/Polymarket/py-sdk/commit/a53754752e6bd802fef5f00ba537c78f2b0c6e2c))
|
|
165
|
+
|
|
166
|
+
## [0.1.0-b8](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b7...polymarket-client-v0.1.0-b8) (2026-06-17)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
### Features
|
|
170
|
+
|
|
171
|
+
* **client:** support protected market orders ([f68cd62](https://github.com/Polymarket/py-sdk/commit/f68cd62ab0d71b8e4b234e644f226acbefd6cccf))
|
|
172
|
+
* **client:** support protected market orders ([34422bb](https://github.com/Polymarket/py-sdk/commit/34422bbc9d3c40e4941f5dcfa528b94d1080b7c4))
|
|
173
|
+
* **models:** add parent_event_id to Event ([4b87156](https://github.com/Polymarket/py-sdk/commit/4b87156ad42daafcef5a84febcb7c3a437d9052d))
|
|
174
|
+
* **models:** add parent_event_id to Event ([c966aec](https://github.com/Polymarket/py-sdk/commit/c966aec4368d6f037869385b79efac5c209d48fb))
|
|
175
|
+
* **rfq:** support confirmed trade broadcasts ([f55b613](https://github.com/Polymarket/py-sdk/commit/f55b613836e6dd7841f238d72653e90d4db66a16))
|
|
176
|
+
* **rfq:** support confirmed trade broadcasts ([a4ba05b](https://github.com/Polymarket/py-sdk/commit/a4ba05b249cbbff4f22b27e45cd4d1645aaa89f8))
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
### Bug Fixes
|
|
180
|
+
|
|
181
|
+
* **data:** parse combo trade activity ([24d3cf2](https://github.com/Polymarket/py-sdk/commit/24d3cf2b81447a61af5899e8d742d9b04fbee545))
|
|
182
|
+
* **data:** parse combo trade activity ([dc9150a](https://github.com/Polymarket/py-sdk/commit/dc9150aa9c7377725038994eb29fedf53a2fcc39))
|
|
183
|
+
* **gamma:** omit legacy non-binary market listings ([f649c6c](https://github.com/Polymarket/py-sdk/commit/f649c6cb3d065f43efbf258a6a02aff79befd9a0))
|
|
184
|
+
* **gamma:** omit legacy non-binary market listings ([abbce8c](https://github.com/Polymarket/py-sdk/commit/abbce8c3437e08d82b303baa19ad3fc9237b544b))
|
|
185
|
+
* **models:** expose missing activity market icons as None ([0adfad7](https://github.com/Polymarket/py-sdk/commit/0adfad74041b27ea9d4f84f34c9d13dec000244f))
|
|
186
|
+
* **models:** expose missing activity market icons as None ([b36b41f](https://github.com/Polymarket/py-sdk/commit/b36b41f1c77a846804ac468bc8301550736a1188))
|
|
187
|
+
* **models:** normalize empty-string trade and position icons to None ([233cb2d](https://github.com/Polymarket/py-sdk/commit/233cb2dbb3f40b3f7527c7827e9fc23c942b78ab))
|
|
188
|
+
* **models:** normalize empty-string trade and position icons to None ([5949925](https://github.com/Polymarket/py-sdk/commit/5949925393bb72260a86013c2cf1f37d5201421f))
|
|
189
|
+
* omit user stream market filter for all markets ([1718ece](https://github.com/Polymarket/py-sdk/commit/1718eceb7d981c6ede8dd5daba924040a10daa48))
|
|
190
|
+
* omit user stream market filter for all markets ([65f3ece](https://github.com/Polymarket/py-sdk/commit/65f3ece018800da5f245dd5bc400e1920718ef40))
|
|
191
|
+
* **rfq:** support balance error codes ([59e366d](https://github.com/Polymarket/py-sdk/commit/59e366d5ca917d5bd56046140d28c0423d933858))
|
|
192
|
+
* **rfq:** support balance error codes ([0a0387e](https://github.com/Polymarket/py-sdk/commit/0a0387ec735d244e4787cc53a26013bfedabf358))
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
### Reverts
|
|
196
|
+
|
|
197
|
+
* **rfq:** remove confirmed trade broadcasts ([b5315cd](https://github.com/Polymarket/py-sdk/commit/b5315cdff76962f9711e15fabc1ab16f70508835))
|
|
198
|
+
|
|
199
|
+
## [0.1.0-b7](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b6...polymarket-client-v0.1.0-b7) (2026-06-10)
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
### Bug Fixes
|
|
203
|
+
|
|
204
|
+
* **client:** point Combos RFQ endpoints at polymarket.com domains ([41d511b](https://github.com/Polymarket/py-sdk/commit/41d511be85973f9bff686978de1ddb1a51055985))
|
|
205
|
+
|
|
206
|
+
## [0.1.0-b6](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b5...polymarket-client-v0.1.0-b6) (2026-06-10)
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
### Features
|
|
210
|
+
|
|
211
|
+
* **client:** add combo market catalog ([10bdf99](https://github.com/Polymarket/py-sdk/commit/10bdf9954c2d57ddc27fa73da8a6bf5bb19eb196))
|
|
212
|
+
* **client:** add combo market catalog ([3839713](https://github.com/Polymarket/py-sdk/commit/38397138fc30c237d086d2fe277a357b4c2e9f20))
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### Bug Fixes
|
|
216
|
+
|
|
217
|
+
* **rfq:** parse submission window rejections ([f101d69](https://github.com/Polymarket/py-sdk/commit/f101d69d903685b86f1dfa97707bc202c4bdaa8b))
|
|
218
|
+
* **rfq:** parse submission window rejections ([ba1b8e9](https://github.com/Polymarket/py-sdk/commit/ba1b8e94ea24b20c4405806bfdf1c1edfa062e49))
|
|
219
|
+
|
|
220
|
+
## [0.1.0-b5](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b4...polymarket-client-v0.1.0-b5) (2026-06-09)
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
### Features
|
|
224
|
+
|
|
225
|
+
* **client:** support combo position lifecycle ([947efd2](https://github.com/Polymarket/py-sdk/commit/947efd2a418bd543c554b160ea25ee99a0774d2d))
|
|
226
|
+
* **gamma:** expose market position ids ([cb6a97d](https://github.com/Polymarket/py-sdk/commit/cb6a97d256d6e9b90e0989ef545e54d50b52480c))
|
|
227
|
+
* **jupyter:** notebook-friendly models ([8ee5fd3](https://github.com/Polymarket/py-sdk/commit/8ee5fd3cddbe85014c349c6801143260ac3c4141))
|
|
228
|
+
* **jupyter:** notebook-friendly models ([02e8574](https://github.com/Polymarket/py-sdk/commit/02e8574d470d4a8ef1fe71e664901aab3601540c))
|
|
229
|
+
* **rfq:** add async RFQ session ([7beaafd](https://github.com/Polymarket/py-sdk/commit/7beaafd4e454611dfad613dd9fd29a215202b3a3))
|
|
230
|
+
* **rfq:** distinguish combo condition ids ([9ee5b63](https://github.com/Polymarket/py-sdk/commit/9ee5b6305719d9ca5632a5f3eaa947b5c73cd1b0))
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
### Bug Fixes
|
|
234
|
+
|
|
235
|
+
* **client:** align market lifecycle context ([d28c211](https://github.com/Polymarket/py-sdk/commit/d28c2117bff70beebccf27582438114fde21d8a9))
|
|
236
|
+
* **client:** resolve market ids before redemption ([fa4fe35](https://github.com/Polymarket/py-sdk/commit/fa4fe35741d62583efbabfc422892343c41287c3))
|
|
237
|
+
* **clob:** align order book timestamp validation ([4be6456](https://github.com/Polymarket/py-sdk/commit/4be645646fdc41ae8661c00a9a67e0422f708b7d))
|
|
238
|
+
* **data:** accept global open interest rows ([1cfda2d](https://github.com/Polymarket/py-sdk/commit/1cfda2ddb0eed8bdcec94eb2023b6514735512b1))
|
|
239
|
+
* **data:** accept global open interest rows ([1855b7f](https://github.com/Polymarket/py-sdk/commit/1855b7f2134c4cbb041de4df78d31eb1b9fb0bf4))
|
|
240
|
+
* **models:** prefer ctf condition id brand ([59dbe47](https://github.com/Polymarket/py-sdk/commit/59dbe474efbdfd9b1982f7989b24f90cf9bd085d))
|
|
241
|
+
* **models:** validate condition ids at runtime ([7a0675d](https://github.com/Polymarket/py-sdk/commit/7a0675dded1a8d1656ee5b5d83f98f9adaf9ea93))
|
|
242
|
+
* **rfq:** queue duplicate pending acknowledgements ([c90fdd7](https://github.com/Polymarket/py-sdk/commit/c90fdd7dc156cc9e870f0c68a82a4d0fc477b109))
|
|
243
|
+
* **rfq:** use production quoter websocket ([e3f3d27](https://github.com/Polymarket/py-sdk/commit/e3f3d278164869d2916490bf69b4a9718733c40a))
|
|
244
|
+
* **rfq:** validate unsupported error codes ([f3a400f](https://github.com/Polymarket/py-sdk/commit/f3a400f2e893eee9b60c6fca785b87ca3004a5b8))
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
### Documentation
|
|
248
|
+
|
|
249
|
+
* fix stale items() reference in list_builder_trades docstring ([ad2725c](https://github.com/Polymarket/py-sdk/commit/ad2725c2dbb006efcf360d4dc6f60d5a62b8601f))
|
|
250
|
+
|
|
251
|
+
## [0.1.0-b4](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b3...polymarket-client-v0.1.0-b4) (2026-06-08)
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
### Features
|
|
255
|
+
|
|
256
|
+
* **client:** default secure clients to deposit wallet ([98ad0e9](https://github.com/Polymarket/py-sdk/commit/98ad0e995ef917d372cd025a66bccd9f59c852f4))
|
|
257
|
+
* **client:** default secure clients to deposit wallet ([872c5de](https://github.com/Polymarket/py-sdk/commit/872c5ded24be3cecc344492d8a01063787747d56))
|
|
258
|
+
* **frames:** add dataframe conversion foundation ([6d873f9](https://github.com/Polymarket/py-sdk/commit/6d873f95b0846a8694a29450bc9673ba4d70556f))
|
|
259
|
+
* **frames:** add dataframe conversion foundation ([e17d5bb](https://github.com/Polymarket/py-sdk/commit/e17d5bbcf08f4f6c8db12f715cefd814d8cf1c5d))
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
### Bug Fixes
|
|
263
|
+
|
|
264
|
+
* **frames:** emit identity columns for OrderBook sequences ([a4a9601](https://github.com/Polymarket/py-sdk/commit/a4a9601820810fbbf0f159afdc1ccf9b0c1084b3))
|
|
265
|
+
* **gamma:** accept event market URLs ([afcdca5](https://github.com/Polymarket/py-sdk/commit/afcdca59f1b2586c0eb235b96977427eabd203a4))
|
|
266
|
+
* **gamma:** accept event market URLs ([c1e9893](https://github.com/Polymarket/py-sdk/commit/c1e9893e8f35a603d2166f9bcdaa19c95bcaae10))
|
|
267
|
+
* **gamma:** default list_events to open events ([4f66139](https://github.com/Polymarket/py-sdk/commit/4f66139f289733ef4fdf814aac7635b03d7bbd7e))
|
|
268
|
+
* **gamma:** default list_events to open events ([9d92d4f](https://github.com/Polymarket/py-sdk/commit/9d92d4f0d11d8ef6af901bbaea0c145082cc712c))
|
|
269
|
+
* **gamma:** drop tag/series request params not honored upstream ([0e6c8f0](https://github.com/Polymarket/py-sdk/commit/0e6c8f0d11c21f93b9355b3f28623591481b37f2))
|
|
270
|
+
* **gamma:** drop tag/series response fields not populated upstream ([24ff6f9](https://github.com/Polymarket/py-sdk/commit/24ff6f9ce20f53b46c2e84083739ab9b8ee5bf57))
|
|
271
|
+
* **orders:** map unknown builder code to user input error ([67a00fb](https://github.com/Polymarket/py-sdk/commit/67a00fb3cf57b42c94ecd3d638d9104b6405930d))
|
|
272
|
+
* **orders:** map unknown builder code to user input error ([6cace4f](https://github.com/Polymarket/py-sdk/commit/6cace4fa7e28853d21b287eea9a2168a862bc02b))
|
|
273
|
+
* **pagination:** skip fetch when paginator drain limit is 0 ([8ae911c](https://github.com/Polymarket/py-sdk/commit/8ae911cafe18605b219f835a1367ebf8a42bc97d))
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
### Performance Improvements
|
|
277
|
+
|
|
278
|
+
* **pagination:** avoid extra fetch when drain limit hits page boundary ([ff38c8f](https://github.com/Polymarket/py-sdk/commit/ff38c8f3c05177b8a1673fcdf3dc8a81f7638970))
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
### Documentation
|
|
282
|
+
|
|
283
|
+
* fix get_market examples ([86c6606](https://github.com/Polymarket/py-sdk/commit/86c660685e9231bfa52d4e089e4d4a743f9f2f0f))
|
|
284
|
+
* fix get_market examples ([4c893c9](https://github.com/Polymarket/py-sdk/commit/4c893c9327e2b89a8c3c5e52d30f888c9b80e748))
|
|
285
|
+
|
|
286
|
+
## [0.1.0-b3](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b2...polymarket-client-v0.1.0-b3) (2026-05-26)
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
### Bug Fixes
|
|
290
|
+
|
|
291
|
+
* accept GTD expiration boundary ([3a5615f](https://github.com/Polymarket/py-sdk/commit/3a5615f279058df1ba98b77948a03ff13f0be4ab))
|
|
292
|
+
* accept GTD expiration boundary ([7d24c67](https://github.com/Polymarket/py-sdk/commit/7d24c67db78311d0307a56f82cc3583b5c79e17f))
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
### Documentation
|
|
296
|
+
|
|
297
|
+
* clarify market stream and orderbook fields ([ae23142](https://github.com/Polymarket/py-sdk/commit/ae23142e4bda6587a78433d98985a58aaaa6fdec))
|
|
298
|
+
* clarify market stream and orderbook fields ([cb5fc33](https://github.com/Polymarket/py-sdk/commit/cb5fc337715840e06bda436c3777b10cad0819c2))
|
|
299
|
+
* note GTD expiration buffer ([20c9600](https://github.com/Polymarket/py-sdk/commit/20c9600c40fe7420a2ed20da993c357db28abf56))
|
|
300
|
+
|
|
301
|
+
## [0.1.0-b2](https://github.com/Polymarket/py-sdk/compare/polymarket-client-v0.1.0-b1...polymarket-client-v0.1.0-b2) (2026-05-25)
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
### Bug Fixes
|
|
305
|
+
|
|
306
|
+
* hide credential validation test switch ([87af5eb](https://github.com/Polymarket/py-sdk/commit/87af5eb7dfc11b07b0abbf20d97d81a0e5e8fb2d))
|
|
307
|
+
* hide credential validation test switch ([3cd361a](https://github.com/Polymarket/py-sdk/commit/3cd361a47bb36e4c8415cc2552941fc25a155ede))
|
|
308
|
+
* update idna lockfile dependency ([60a1139](https://github.com/Polymarket/py-sdk/commit/60a11392da9950c0a6f02dd4dab6b34512c4ccdb))
|
|
309
|
+
* update idna lockfile dependency ([24ca1db](https://github.com/Polymarket/py-sdk/commit/24ca1db9d6654bec32ab03266dcf2a430a8221f9))
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
### Documentation
|
|
313
|
+
|
|
314
|
+
* add beta status badge ([1b5baf7](https://github.com/Polymarket/py-sdk/commit/1b5baf71484df9325a9184cce4ef6b7114b77908))
|
|
315
|
+
* add beta status badge ([8b4f99b](https://github.com/Polymarket/py-sdk/commit/8b4f99bc297b70bcee3196bc9ee860b7a732c3a5))
|
|
316
|
+
* complete public client docstrings ([9b1b28c](https://github.com/Polymarket/py-sdk/commit/9b1b28c0da10963cce987711379840189ff2cd47))
|
|
317
|
+
* improve Python SDK public docstrings ([70304f5](https://github.com/Polymarket/py-sdk/commit/70304f56aa7c105147bb4606652c1fa238ea2d3d))
|
|
318
|
+
* improve Python SDK public docstrings ([d9d51d1](https://github.com/Polymarket/py-sdk/commit/d9d51d1a1dc32cbb6e2eabb78e5d51f99b464413))
|
|
319
|
+
* polish public beta guidance ([f5185a9](https://github.com/Polymarket/py-sdk/commit/f5185a9bea7ce9de71b224093329d980d11130f8))
|
|
320
|
+
* polish repo for public beta ([c65142e](https://github.com/Polymarket/py-sdk/commit/c65142e9fb36b5d349d39e41890f0554349c6662))
|
|
321
|
+
* refresh SDK direction wording ([59c361d](https://github.com/Polymarket/py-sdk/commit/59c361d2fb2d102c87b52633f3ad6c2de013310c))
|
|
322
|
+
|
|
323
|
+
## Changelog
|
|
324
|
+
|
|
325
|
+
All notable changes to this project will be documented in this file.
|
|
326
|
+
|
|
327
|
+
This project uses Conventional Commits and release-please for release automation.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Polymarket
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: polymarket-client
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Official Python client for Polymarket
|
|
5
|
+
Project-URL: Homepage, https://polymarket.com
|
|
6
|
+
Project-URL: Documentation, https://docs.polymarket.com
|
|
7
|
+
Project-URL: Repository, https://github.com/Polymarket/py-sdk
|
|
8
|
+
Project-URL: Issues, https://github.com/Polymarket/py-sdk/issues
|
|
9
|
+
Author-email: Polymarket Engineering <engineering@polymarket.com>
|
|
10
|
+
Maintainer-email: Polymarket Engineering <engineering@polymarket.com>
|
|
11
|
+
License: MIT
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Keywords: client,polymarket,prediction-markets,trading,web3
|
|
14
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Typing :: Typed
|
|
23
|
+
Requires-Python: >=3.11
|
|
24
|
+
Requires-Dist: eth-abi<6,>=5
|
|
25
|
+
Requires-Dist: eth-account<1,>=0.13
|
|
26
|
+
Requires-Dist: eth-utils<6,>=4
|
|
27
|
+
Requires-Dist: httpx[http2]<1,>=0.27
|
|
28
|
+
Requires-Dist: msgpack<2,>=1
|
|
29
|
+
Requires-Dist: pydantic<3,>=2
|
|
30
|
+
Requires-Dist: websockets<16,>=13
|
|
31
|
+
Provides-Extra: arrow
|
|
32
|
+
Requires-Dist: pyarrow<22,>=15; extra == 'arrow'
|
|
33
|
+
Provides-Extra: pandas
|
|
34
|
+
Requires-Dist: pandas<3,>=2; extra == 'pandas'
|
|
35
|
+
Requires-Dist: pyarrow<22,>=15; extra == 'pandas'
|
|
36
|
+
Provides-Extra: polars
|
|
37
|
+
Requires-Dist: polars<2,>=1; extra == 'polars'
|
|
38
|
+
Requires-Dist: pyarrow<22,>=15; extra == 'polars'
|
|
39
|
+
Provides-Extra: quant
|
|
40
|
+
Requires-Dist: pandas<3,>=2; extra == 'quant'
|
|
41
|
+
Requires-Dist: polars<2,>=1; extra == 'quant'
|
|
42
|
+
Requires-Dist: pyarrow<22,>=15; extra == 'quant'
|
|
43
|
+
Description-Content-Type: text/markdown
|
|
44
|
+
|
|
45
|
+
# Polymarket Python SDK
|
|
46
|
+
|
|
47
|
+
Official Python SDK for Polymarket.
|
|
48
|
+
|
|
49
|
+
The SDK gives Python developers one coherent, workflow-oriented interface for building on Polymarket across public data, authenticated account, trading, builder attribution, and wallet workflows.
|
|
50
|
+
|
|
51
|
+
## Installation
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
uv add polymarket-client
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
or:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
pip install polymarket-client
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Usage
|
|
64
|
+
|
|
65
|
+
Synchronous client:
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
from polymarket import Market, PublicClient
|
|
69
|
+
|
|
70
|
+
with PublicClient() as client:
|
|
71
|
+
market: Market = client.get_market(url="https://polymarket.com/event/example-market")
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Asynchronous client:
|
|
75
|
+
|
|
76
|
+
```python
|
|
77
|
+
import asyncio
|
|
78
|
+
|
|
79
|
+
from polymarket import AsyncPublicClient, Market
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
async def main() -> None:
|
|
83
|
+
async with AsyncPublicClient() as client:
|
|
84
|
+
market: Market = await client.get_market(
|
|
85
|
+
url="https://polymarket.com/event/example-market"
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
asyncio.run(main())
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Custom transaction calls:
|
|
93
|
+
|
|
94
|
+
```python
|
|
95
|
+
from polymarket.calls import merge_v2_call
|
|
96
|
+
from polymarket.types import EvmAddress
|
|
97
|
+
|
|
98
|
+
router = EvmAddress(client.environment.protocol_v2_router)
|
|
99
|
+
|
|
100
|
+
handle = client.execute_transaction(
|
|
101
|
+
calls=[
|
|
102
|
+
merge_v2_call(router=router, condition_id="0x03...", amount=1_000_000),
|
|
103
|
+
merge_v2_call(router=router, condition_id="0x03...", amount=2_000_000),
|
|
104
|
+
merge_v2_call(router=router, condition_id="0x03...", amount=500_000),
|
|
105
|
+
],
|
|
106
|
+
metadata="Merge 3 combo positions",
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
outcome = handle.wait()
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Batch position merges:
|
|
113
|
+
|
|
114
|
+
```python
|
|
115
|
+
# Merge regular market positions by condition or market id.
|
|
116
|
+
handle = client.merge_multiple_positions(
|
|
117
|
+
positions=[
|
|
118
|
+
{"condition_id": condition_id_1},
|
|
119
|
+
{"market_id": market_id_2, "amount": "max"},
|
|
120
|
+
{"condition_id": condition_id_3, "amount": 500_000},
|
|
121
|
+
],
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
outcome = handle.wait()
|
|
125
|
+
|
|
126
|
+
# Or merge combo positions by position id. Do not mix market and combo
|
|
127
|
+
# requests in the same batch.
|
|
128
|
+
handle = client.merge_multiple_positions(
|
|
129
|
+
positions=[
|
|
130
|
+
{"position_id": combo_position_id_1},
|
|
131
|
+
{"position_id": combo_position_id_2, "amount": "max"},
|
|
132
|
+
{"position_id": combo_position_id_3, "amount": 500_000},
|
|
133
|
+
],
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
outcome = handle.wait()
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## API Compatibility
|
|
140
|
+
|
|
141
|
+
The SDK follows semantic versioning. Although minor releases on the 0.x line
|
|
142
|
+
may include breaking changes, we aim to avoid them and, whenever possible,
|
|
143
|
+
provide a deprecation path before removing or changing an API. Patch releases
|
|
144
|
+
remain backward compatible except for APIs marked experimental, which may
|
|
145
|
+
change in any release. All Perps APIs are currently experimental, including
|
|
146
|
+
client methods, sessions, stream subscriptions, and models.
|
|
147
|
+
|
|
148
|
+
## API Design
|
|
149
|
+
|
|
150
|
+
See [SDK Direction](docs/sdk-direction.md) for public API design principles and developer-experience decisions.
|
|
151
|
+
|
|
152
|
+
## Development
|
|
153
|
+
|
|
154
|
+
Install dependencies:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
make sync
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Run checks:
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
make check
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Build package artifacts:
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
make build
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
The `Makefile` is a thin convenience wrapper around `uv`. Running the underlying commands directly is also fine.
|
|
173
|
+
|
|
174
|
+
## Testing
|
|
175
|
+
|
|
176
|
+
Unit tests run by default:
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
make test
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Run unit tests in watch mode:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
make test-watch
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
This runs the tests once immediately, then reruns them when Python files change.
|
|
189
|
+
|
|
190
|
+
Integration tests are opt-in:
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
make test-integration
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
Integration tests can load local secrets from a gitignored `.env` copied from `.env.example`:
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
cp .env.example .env
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
See `.env.example` for the supported local and CI secret names.
|
|
203
|
+
|
|
204
|
+
Tests that require credentials should use the `require_env` fixture so they skip when secrets are unavailable:
|
|
205
|
+
|
|
206
|
+
```python
|
|
207
|
+
import pytest
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
@pytest.mark.integration
|
|
211
|
+
def test_authenticated_flow(require_env):
|
|
212
|
+
private_key = require_env("POLYMARKET_PRIVATE_KEY")
|
|
213
|
+
builder_api_key = require_env("POLYMARKET_BUILDER_API_KEY")
|
|
214
|
+
|
|
215
|
+
assert private_key
|
|
216
|
+
assert builder_api_key
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
The SDK does not load `.env` files at runtime. The integration test fixture loads `.env` only for tests that request credentials, and existing environment variables take precedence over local `.env` values.
|
|
220
|
+
|
|
221
|
+
Tests that place orders, spend funds, or mutate live state must also use `@pytest.mark.metered`. Metered tests are skipped unless `POLYMARKET_RUN_METERED_TESTS=1` is set:
|
|
222
|
+
|
|
223
|
+
```python
|
|
224
|
+
import pytest
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
@pytest.mark.integration
|
|
228
|
+
@pytest.mark.metered
|
|
229
|
+
def test_order_lifecycle(require_env):
|
|
230
|
+
private_key = require_env("POLYMARKET_PRIVATE_KEY")
|
|
231
|
+
|
|
232
|
+
assert private_key
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
POLYMARKET_RUN_METERED_TESTS=1 make test-integration
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
## Contributing
|
|
240
|
+
|
|
241
|
+
We welcome bug reports, feature requests, and feedback through GitHub Issues.
|
|
242
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) before proposing code changes.
|