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
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
type Split @entity {
|
|
2
|
-
"Transaction Hash"
|
|
3
|
-
id: ID!
|
|
4
|
-
"Timestamp at which split occurred"
|
|
5
|
-
timestamp: BigInt!
|
|
6
|
-
"Address which is performing this split"
|
|
7
|
-
stakeholder: String!
|
|
8
|
-
"Condition on which split is occuring"
|
|
9
|
-
condition: String!
|
|
10
|
-
"The amount of collateral/outcome tokens being split"
|
|
11
|
-
amount: BigInt!
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
type Merge @entity {
|
|
15
|
-
"Transaction Hash"
|
|
16
|
-
id: ID!
|
|
17
|
-
"Timestamp at which merge occurred"
|
|
18
|
-
timestamp: BigInt!
|
|
19
|
-
"Address which is performing this merge"
|
|
20
|
-
stakeholder: String!
|
|
21
|
-
"Token which is collateralising positions being merged"
|
|
22
|
-
condition: String!
|
|
23
|
-
"The amount of collateral/outcome tokens being merged"
|
|
24
|
-
amount: BigInt!
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
type Redemption @entity {
|
|
28
|
-
"Transaction Hash"
|
|
29
|
-
id: ID!
|
|
30
|
-
"Timestamp at which redemption occurred"
|
|
31
|
-
timestamp: BigInt!
|
|
32
|
-
"Address which is redeeming these outcomes"
|
|
33
|
-
redeemer: String!
|
|
34
|
-
"Condition on which redemption is occuring"
|
|
35
|
-
condition: String!
|
|
36
|
-
"Outcomes which are being redeemed"
|
|
37
|
-
indexSets: [BigInt!]!
|
|
38
|
-
"The amount of collateral being claimed"
|
|
39
|
-
payout: BigInt!
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
type NegRiskConversion @entity {
|
|
43
|
-
"Transaction Hash"
|
|
44
|
-
id: ID!
|
|
45
|
-
"Timestamp at which conversion occurred"
|
|
46
|
-
timestamp: BigInt!
|
|
47
|
-
"Address which is performing this conversion"
|
|
48
|
-
stakeholder: String!
|
|
49
|
-
"Neg Risk Market Id assigned to the event"
|
|
50
|
-
negRiskMarketId: String!
|
|
51
|
-
"The amount of each token being converted"
|
|
52
|
-
amount: BigInt!
|
|
53
|
-
"The index set of the outcome tokens being converted"
|
|
54
|
-
indexSet: BigInt!
|
|
55
|
-
"The number of questions at the time of conversion"
|
|
56
|
-
questionCount: Int!
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
# Neg Risk Events/Markets
|
|
60
|
-
type NegRiskEvent @entity {
|
|
61
|
-
"negRiskMarketId"
|
|
62
|
-
id: ID!
|
|
63
|
-
"Question Count"
|
|
64
|
-
questionCount: Int!
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
# Fixed Product Market Makers
|
|
68
|
-
type FixedProductMarketMaker @entity {
|
|
69
|
-
"Market maker address"
|
|
70
|
-
id: ID!
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
# Metadata for the market, keyed by positionId
|
|
74
|
-
type Position @entity {
|
|
75
|
-
"ERC1155 TokenID of the CTF Asset"
|
|
76
|
-
id: ID!
|
|
77
|
-
"Condition that the token is linked to"
|
|
78
|
-
condition: String!
|
|
79
|
-
"Outcome Index"
|
|
80
|
-
outcomeIndex: BigInt!
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
type Condition @entity {
|
|
84
|
-
"Condition ID"
|
|
85
|
-
id: ID!
|
|
86
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
type Condition @entity {
|
|
2
|
-
"conditionId"
|
|
3
|
-
id: ID!
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
# Neg Risk Events/Markets
|
|
7
|
-
type NegRiskEvent @entity {
|
|
8
|
-
"negRiskMarketId"
|
|
9
|
-
id: ID!
|
|
10
|
-
"Fee Bps"
|
|
11
|
-
feeBps: BigInt!
|
|
12
|
-
"Question Count"
|
|
13
|
-
questionCount: Int!
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
# Market Open Interest
|
|
17
|
-
type MarketOpenInterest @entity {
|
|
18
|
-
"Condition ID"
|
|
19
|
-
id: ID!
|
|
20
|
-
"Open interest for the market"
|
|
21
|
-
amount: BigInt!
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
# Global Open Interest
|
|
25
|
-
type GlobalOpenInterest @entity {
|
|
26
|
-
"Empty string"
|
|
27
|
-
id: ID!
|
|
28
|
-
"Global Open Interest"
|
|
29
|
-
amount: BigInt!
|
|
30
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
polymarket_apis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
polymarket_apis/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
polymarket_apis/clients/clob_client.py,sha256=HO9ACvdODfj6n_W7lkgpCAtm7Y-vEhGK-8bmEtnh8sI,31152
|
|
4
|
-
polymarket_apis/clients/data_client.py,sha256=zkfYoejsrAjwbhBfpMVLiM3YYoXqgvLhnHZ5fc7QVZI,8646
|
|
5
|
-
polymarket_apis/clients/gamma_client.py,sha256=-GhPBoRnnMl1Ex6oGI6ToKfGXGXVRjVZ-G1vO4eJjVI,12370
|
|
6
|
-
polymarket_apis/clients/graphql_client.py,sha256=kN3hk0kKmZhwnN5YfC-8XbebNyoho7dRdZC9p6aC8_A,1511
|
|
7
|
-
polymarket_apis/clients/web3_client.py,sha256=XQApKIAkS0-TAWrApI1DFDvW0udbpkWzXiyGXo-GNec,11223
|
|
8
|
-
polymarket_apis/clients/websockets_client.py,sha256=gJiJ087PenrpNG4Y2ffu0S1he82TQOJhD9JbLyMbc_U,7566
|
|
9
|
-
polymarket_apis/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
-
polymarket_apis/types/clob_types.py,sha256=LboySm6z_Pb-sf30BHATfi1-CC0LFT_CHv-gzJdkxk0,11692
|
|
11
|
-
polymarket_apis/types/common.py,sha256=eTY2kjOArzrZRVSmEJvxEyxGJeMx045R073EMZMzCKM,1629
|
|
12
|
-
polymarket_apis/types/data_types.py,sha256=5vLo4CnAXApHhbPrtj_xnYQPeRnTYhjuY8EGJU7KeUU,4421
|
|
13
|
-
polymarket_apis/types/gamma_types.py,sha256=xSafNRgkYXqIq3Vd5J3k018ue79rEiulczwUHuP8Uxo,12535
|
|
14
|
-
polymarket_apis/types/websockets_types.py,sha256=4a__lrxnFWkWnOa8i-6wsV5Q0AaLq3srPNDhnKyfGAo,12000
|
|
15
|
-
polymarket_apis/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
-
polymarket_apis/utilities/config.py,sha256=IfIBJa6rSi-e-9_HjeI8j4cD3MXtzRjoLzgcgn5tHbc,2448
|
|
17
|
-
polymarket_apis/utilities/constants.py,sha256=OdxaAsyYzAK1RXty5VtvidMgan8YW-JfHS3Rdxp6n_U,580
|
|
18
|
-
polymarket_apis/utilities/endpoints.py,sha256=bxZyrJBPbVauWc-eR0RMh6KDqU-SmO_3LfQwVMNJ6vE,1235
|
|
19
|
-
polymarket_apis/utilities/exceptions.py,sha256=58vuiLuZxX6d05qa29jgEOC4ZYBv368JaO8DAFMD0Dc,363
|
|
20
|
-
polymarket_apis/utilities/headers.py,sha256=Cc5WEnIBLYAgfwvmCXRBwA2zUYME8fDy4PbwlwlB6Oo,1510
|
|
21
|
-
polymarket_apis/utilities/order_builder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
|
-
polymarket_apis/utilities/order_builder/builder.py,sha256=GMKkc96ZpLBBBQDRqIRKs8Kjl75zUbdRpS8IAFV_7Fg,8390
|
|
23
|
-
polymarket_apis/utilities/order_builder/helpers.py,sha256=eMcx17W41rKQ7hDP4Ch8QRtS3WQ5zNMyKtgmOe8-3fk,1944
|
|
24
|
-
polymarket_apis/utilities/schemas/activity-subgraph.graphql,sha256=B6FnnOUvix2qE4S4puPgzt-fSz_SlnJaEKrKE0kGCuc,2033
|
|
25
|
-
polymarket_apis/utilities/schemas/open-interest.graphql,sha256=42sNE49KfEJMoxDapKvo38eOYiaiOWZyINTKevWhpUY,478
|
|
26
|
-
polymarket_apis/utilities/signing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
|
-
polymarket_apis/utilities/signing/eip712.py,sha256=fGLurznnfY5M0VCP1Txyq_FYQRfggyHoTwz-PGIK2Eg,895
|
|
28
|
-
polymarket_apis/utilities/signing/hmac.py,sha256=vAYb98tMHWqNqAJNFXUnAddS38dA_aOy3Wp3DcP_7PM,702
|
|
29
|
-
polymarket_apis/utilities/signing/model.py,sha256=kVduuJGth7WSCUDCVVydCgPd4yEVI85gEmMxohXsvp0,191
|
|
30
|
-
polymarket_apis/utilities/signing/signer.py,sha256=7-nFALFrz0qg4F4lZRyHI41S7IWxr7t0WMLOHqHzJcg,732
|
|
31
|
-
polymarket_apis/utilities/web3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
|
-
polymarket_apis/utilities/web3/helpers.py,sha256=ZeZWO6Le8mYG4GiblGph3hnaTV2owa9eEWrhAYcggek,403
|
|
33
|
-
polymarket_apis/utilities/web3/abis/CTFExchange.json,sha256=zt8fZnUaOrD8Vh5njM0EEUpeITWhuu0SZrIZigWxgV8,38499
|
|
34
|
-
polymarket_apis/utilities/web3/abis/ConditionalTokens.json,sha256=3TUcX7He74VMkoL1kxbDbtULZ70VY_EBe01pfByprsk,12584
|
|
35
|
-
polymarket_apis/utilities/web3/abis/NegRiskAdapter.json,sha256=HABIoRF1s1NgctpRTdaaNDqzODzgdZLE-s2E6ef4nAY,18867
|
|
36
|
-
polymarket_apis/utilities/web3/abis/NegRiskCtfExchange.json,sha256=QOgLKekWnPVcMGXExcLjEIOHLS89tPUoZFkVm-yRnbY,38612
|
|
37
|
-
polymarket_apis/utilities/web3/abis/ProxyWalletFactory.json,sha256=5KjBHUWdkc_kdlWPNax84o1vStpFuLgZKTMn3jc4zvU,5553
|
|
38
|
-
polymarket_apis/utilities/web3/abis/UChildERC20Proxy.json,sha256=ZyQC38U0uxInlmnW2VXDVD3TJfTIRmSNMkTxQsaG7oA,27396
|
|
39
|
-
polymarket_apis/utilities/web3/abis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
|
-
polymarket_apis/utilities/web3/abis/custom_contract_errors.py,sha256=ZCeJPK5tobPAR9vaNxw_pQZwKyZc_R0GdggfWaeXvOs,1176
|
|
41
|
-
polymarket_apis-0.3.0.dist-info/METADATA,sha256=dYODMIGPXBh9NVImiRM-P7EXzL26gE6GZYRq6dzxFaU,10454
|
|
42
|
-
polymarket_apis-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
43
|
-
polymarket_apis-0.3.0.dist-info/RECORD,,
|
|
File without changes
|