polymarket-apis 0.3.0__py3-none-any.whl → 0.3.9__py3-none-any.whl
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.
Potentially problematic release.
This version of polymarket-apis might be problematic. Click here for more details.
- polymarket_apis/__init__.py +42 -0
- polymarket_apis/clients/__init__.py +23 -0
- polymarket_apis/clients/clob_client.py +224 -117
- polymarket_apis/clients/data_client.py +220 -67
- polymarket_apis/clients/gamma_client.py +589 -101
- polymarket_apis/clients/graphql_client.py +28 -11
- polymarket_apis/clients/web3_client.py +538 -131
- polymarket_apis/clients/websockets_client.py +24 -7
- polymarket_apis/types/__init__.py +167 -0
- polymarket_apis/types/clob_types.py +35 -14
- polymarket_apis/types/common.py +105 -35
- polymarket_apis/types/data_types.py +48 -3
- polymarket_apis/types/gamma_types.py +529 -257
- polymarket_apis/types/web3_types.py +45 -0
- polymarket_apis/types/websockets_types.py +92 -41
- polymarket_apis/utilities/config.py +1 -0
- polymarket_apis/utilities/constants.py +5 -4
- polymarket_apis/utilities/exceptions.py +9 -0
- polymarket_apis/utilities/order_builder/builder.py +38 -22
- polymarket_apis/utilities/order_builder/helpers.py +0 -1
- polymarket_apis/utilities/signing/hmac.py +5 -1
- polymarket_apis/utilities/signing/signer.py +2 -2
- polymarket_apis/utilities/web3/abis/Safe.json +1138 -0
- polymarket_apis/utilities/web3/abis/SafeProxyFactory.json +224 -0
- polymarket_apis/utilities/web3/abis/custom_contract_errors.py +1 -1
- polymarket_apis/utilities/web3/helpers.py +235 -0
- {polymarket_apis-0.3.0.dist-info → polymarket_apis-0.3.9.dist-info}/METADATA +48 -8
- polymarket_apis-0.3.9.dist-info/RECORD +44 -0
- polymarket_apis/utilities/schemas/activity-subgraph.graphql +0 -86
- polymarket_apis/utilities/schemas/open-interest.graphql +0 -30
- polymarket_apis-0.3.0.dist-info/RECORD +0 -43
- {polymarket_apis-0.3.0.dist-info → polymarket_apis-0.3.9.dist-info}/WHEEL +0 -0
polymarket_apis/__init__.py
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Polymarket APIs - Unified interface for Polymarket's various APIs.
|
|
3
|
+
|
|
4
|
+
This package provides a comprehensive interface to Polymarket's APIs including:
|
|
5
|
+
- CLOB (Central Limit Order Book) API for trading
|
|
6
|
+
- Gamma API for event and market information
|
|
7
|
+
- Data API for user information
|
|
8
|
+
- Web3 API for blockchain interactions
|
|
9
|
+
- WebSocket API for real-time data streams
|
|
10
|
+
- GraphQL API for flexible data queries
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
__version__ = "0.3.9"
|
|
14
|
+
__author__ = "Razvan Gheorghe"
|
|
15
|
+
__email__ = "razvan@gheorghe.me"
|
|
16
|
+
|
|
17
|
+
from .clients import (
|
|
18
|
+
AsyncPolymarketGraphQLClient,
|
|
19
|
+
PolymarketClobClient,
|
|
20
|
+
PolymarketDataClient,
|
|
21
|
+
PolymarketGammaClient,
|
|
22
|
+
PolymarketGraphQLClient,
|
|
23
|
+
PolymarketWeb3Client,
|
|
24
|
+
PolymarketWebsocketsClient,
|
|
25
|
+
)
|
|
26
|
+
from .types.clob_types import MarketOrderArgs, OrderArgs, OrderType
|
|
27
|
+
|
|
28
|
+
__all__ = [
|
|
29
|
+
"AsyncPolymarketGraphQLClient",
|
|
30
|
+
"MarketOrderArgs",
|
|
31
|
+
"OrderArgs",
|
|
32
|
+
"OrderType",
|
|
33
|
+
"PolymarketClobClient",
|
|
34
|
+
"PolymarketDataClient",
|
|
35
|
+
"PolymarketGammaClient",
|
|
36
|
+
"PolymarketGraphQLClient",
|
|
37
|
+
"PolymarketWeb3Client",
|
|
38
|
+
"PolymarketWebsocketsClient",
|
|
39
|
+
"__author__",
|
|
40
|
+
"__email__",
|
|
41
|
+
"__version__",
|
|
42
|
+
]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Client modules for Polymarket APIs.
|
|
3
|
+
|
|
4
|
+
This module contains all the client classes for interacting with different
|
|
5
|
+
Polymarket APIs including CLOB, Data, Gamma, GraphQL, Web3, and WebSocket clients.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from .clob_client import PolymarketClobClient
|
|
9
|
+
from .data_client import PolymarketDataClient
|
|
10
|
+
from .gamma_client import PolymarketGammaClient
|
|
11
|
+
from .graphql_client import AsyncPolymarketGraphQLClient, PolymarketGraphQLClient
|
|
12
|
+
from .web3_client import PolymarketWeb3Client
|
|
13
|
+
from .websockets_client import PolymarketWebsocketsClient
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"AsyncPolymarketGraphQLClient",
|
|
17
|
+
"PolymarketClobClient",
|
|
18
|
+
"PolymarketDataClient",
|
|
19
|
+
"PolymarketGammaClient",
|
|
20
|
+
"PolymarketGraphQLClient",
|
|
21
|
+
"PolymarketWeb3Client",
|
|
22
|
+
"PolymarketWebsocketsClient",
|
|
23
|
+
]
|