pmxt 1.5.6__py3-none-any.whl → 1.5.7__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.
- pmxt/__init__.py +1 -1
- pmxt/_server/server/bundled.js +8 -4
- pmxt/client.py +2 -0
- pmxt/models.py +3 -0
- {pmxt-1.5.6.dist-info → pmxt-1.5.7.dist-info}/METADATA +1 -1
- {pmxt-1.5.6.dist-info → pmxt-1.5.7.dist-info}/RECORD +12 -12
- pmxt_internal/__init__.py +1 -1
- pmxt_internal/api_client.py +1 -1
- pmxt_internal/configuration.py +1 -1
- pmxt_internal/models/create_order_params.py +4 -2
- {pmxt-1.5.6.dist-info → pmxt-1.5.7.dist-info}/WHEEL +0 -0
- {pmxt-1.5.6.dist-info → pmxt-1.5.7.dist-info}/top_level.txt +0 -0
pmxt/__init__.py
CHANGED
pmxt/_server/server/bundled.js
CHANGED
|
@@ -104956,13 +104956,16 @@ var require_polymarket = __commonJS({
|
|
|
104956
104956
|
}
|
|
104957
104957
|
}
|
|
104958
104958
|
try {
|
|
104959
|
-
const
|
|
104959
|
+
const orderArgs = {
|
|
104960
104960
|
tokenID: params.outcomeId,
|
|
104961
104961
|
price,
|
|
104962
104962
|
side,
|
|
104963
|
-
size: params.amount
|
|
104964
|
-
|
|
104965
|
-
|
|
104963
|
+
size: params.amount
|
|
104964
|
+
};
|
|
104965
|
+
if (params.fee !== void 0 && params.fee !== null) {
|
|
104966
|
+
orderArgs.feeRateBps = params.fee;
|
|
104967
|
+
}
|
|
104968
|
+
const response = await client.createAndPostOrder(orderArgs, {
|
|
104966
104969
|
tickSize
|
|
104967
104970
|
});
|
|
104968
104971
|
if (!response || !response.success) {
|
|
@@ -104979,6 +104982,7 @@ var require_polymarket = __commonJS({
|
|
|
104979
104982
|
status: "open",
|
|
104980
104983
|
filled: 0,
|
|
104981
104984
|
remaining: params.amount,
|
|
104985
|
+
fee: params.fee,
|
|
104982
104986
|
timestamp: Date.now()
|
|
104983
104987
|
};
|
|
104984
104988
|
} catch (error) {
|
pmxt/client.py
CHANGED
pmxt/models.py
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
pmxt/__init__.py,sha256=
|
|
2
|
-
pmxt/client.py,sha256=
|
|
3
|
-
pmxt/models.py,sha256
|
|
1
|
+
pmxt/__init__.py,sha256=b3gvQdSC1s_9caOe6sJj9imvUtv9m6WZxqTW6bfDBcY,1178
|
|
2
|
+
pmxt/client.py,sha256=NnUD0h7BCbNFJv_oUkVD3YgpTHvRPrkFQbSmBGOWj5A,34798
|
|
3
|
+
pmxt/models.py,sha256=zDbv2E8lZObwhUTYdIwK5MmX0QneNqb7nhGvkfsrQFc,8666
|
|
4
4
|
pmxt/server_manager.py,sha256=6uS1LIZ2d5d_K-MtbMUAlCZvbvhZ_iyofKok55HEofc,11606
|
|
5
5
|
pmxt/_server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
pmxt/_server/bin/pmxt-ensure-server,sha256=kXIond0UbxS52FAVQD7kHmSBaL_s6cbIyapLRr4KZJw,4544
|
|
7
7
|
pmxt/_server/bin/pmxt-ensure-server.js,sha256=kXIond0UbxS52FAVQD7kHmSBaL_s6cbIyapLRr4KZJw,4544
|
|
8
|
-
pmxt/_server/server/bundled.js,sha256=
|
|
9
|
-
pmxt_internal/__init__.py,sha256=
|
|
10
|
-
pmxt_internal/api_client.py,sha256=
|
|
8
|
+
pmxt/_server/server/bundled.js,sha256=YxN4U7I4JoyxolYjBlBEOmdniHzOPuuIeBpwADjTkA8,4241376
|
|
9
|
+
pmxt_internal/__init__.py,sha256=GLV0Tlq6W_-JZOYfGcpSpe0tYe7SipNsVQzQxI0L0wM,7756
|
|
10
|
+
pmxt_internal/api_client.py,sha256=ctURaPvx0PiRRTWlAknPFkKzjS8abuWlFYpHIGkfTLo,27889
|
|
11
11
|
pmxt_internal/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
12
|
-
pmxt_internal/configuration.py,sha256=
|
|
12
|
+
pmxt_internal/configuration.py,sha256=O0KyVUlah0xHEgwb2pWZtL57eVrGaVNwzZvaeIAa2VM,18320
|
|
13
13
|
pmxt_internal/exceptions.py,sha256=txF8A7vlan57JS69kFPs-IZF-Qhp7IZobBTJVa4fOaM,6644
|
|
14
14
|
pmxt_internal/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
pmxt_internal/rest.py,sha256=FMj4yaV6XLr842u_ScWHSzQsTFdk0jaUeuWLJoRbogQ,9760
|
|
@@ -21,7 +21,7 @@ pmxt_internal/models/base_request.py,sha256=ZNipF7ycXFkQJ6j3QmB1TzA0UO3fB54AMPlA
|
|
|
21
21
|
pmxt_internal/models/base_response.py,sha256=g-NG4Swxl3cg4-YOCPl65dUeHzOnA9S7ubTj8HOYZs0,2975
|
|
22
22
|
pmxt_internal/models/cancel_order_request.py,sha256=Q_tKEneDlyD9ZsqCifr4No9coPmzUWAiSnJFH2BhL5k,3153
|
|
23
23
|
pmxt_internal/models/create_order200_response.py,sha256=f4urlJUUhTCOON-alIg9Ac_q3ymHqHyP_BNtDB0pyh4,3345
|
|
24
|
-
pmxt_internal/models/create_order_params.py,sha256=
|
|
24
|
+
pmxt_internal/models/create_order_params.py,sha256=VxrjO1OFh6bxPlQTtfJA_B79A6edOPgZ44j4HGBPdCk,3736
|
|
25
25
|
pmxt_internal/models/create_order_request.py,sha256=prj6TnIFbhB8eDq-6e-MK2DtfDzAB6P-SoEEEST0cP8,3616
|
|
26
26
|
pmxt_internal/models/error_detail.py,sha256=590jlnQmIgqcjUQ5ef07_nWMn7fnyjuAvkUjmSoAkMs,2605
|
|
27
27
|
pmxt_internal/models/error_response.py,sha256=c5DgOpTGqx9Qoz7hYKhRPAM3UfoX4GBWkyhfxerMXEI,2979
|
|
@@ -66,7 +66,7 @@ pmxt_internal/models/unified_market.py,sha256=DoYhiH4HycYGlq858PEeB-CIA7haT6rxmJ
|
|
|
66
66
|
pmxt_internal/models/watch_order_book_request.py,sha256=kavGUI-SLz2-Kam_jcJ_h0GDe0-9UkxqCmVsAi6Uios,3726
|
|
67
67
|
pmxt_internal/models/watch_order_book_request_args_inner.py,sha256=ZHrjmFDGxRG5MXbuz4mUp9KFfo3XS7zuXWTyMNgi4xI,5464
|
|
68
68
|
pmxt_internal/models/watch_trades_request.py,sha256=brrg8JbEe-aeg7mIe_Y2HzRPogp-IfRhkXChrxzqoLU,3722
|
|
69
|
-
pmxt-1.5.
|
|
70
|
-
pmxt-1.5.
|
|
71
|
-
pmxt-1.5.
|
|
72
|
-
pmxt-1.5.
|
|
69
|
+
pmxt-1.5.7.dist-info/METADATA,sha256=SifaoTjxEHuXt4tyhq8MjgC90Ec7fQvmXUGva_LMkac,6449
|
|
70
|
+
pmxt-1.5.7.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
71
|
+
pmxt-1.5.7.dist-info/top_level.txt,sha256=J_jrcouJ-x-5lpcXMxeW0GOSi1HsBVR5_PdSfvigVrw,19
|
|
72
|
+
pmxt-1.5.7.dist-info/RECORD,,
|
pmxt_internal/__init__.py
CHANGED
pmxt_internal/api_client.py
CHANGED
|
@@ -91,7 +91,7 @@ class ApiClient:
|
|
|
91
91
|
self.default_headers[header_name] = header_value
|
|
92
92
|
self.cookie = cookie
|
|
93
93
|
# Set default User-Agent.
|
|
94
|
-
self.user_agent = 'OpenAPI-Generator/1.5.
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/1.5.7/python'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
def __enter__(self):
|
pmxt_internal/configuration.py
CHANGED
|
@@ -506,7 +506,7 @@ class Configuration:
|
|
|
506
506
|
"OS: {env}\n"\
|
|
507
507
|
"Python Version: {pyversion}\n"\
|
|
508
508
|
"Version of the API: 0.4.4\n"\
|
|
509
|
-
"SDK Package Version: 1.5.
|
|
509
|
+
"SDK Package Version: 1.5.7".\
|
|
510
510
|
format(env=sys.platform, pyversion=sys.version)
|
|
511
511
|
|
|
512
512
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -32,7 +32,8 @@ class CreateOrderParams(BaseModel):
|
|
|
32
32
|
type: StrictStr
|
|
33
33
|
amount: Union[StrictFloat, StrictInt]
|
|
34
34
|
price: Optional[Union[StrictFloat, StrictInt]] = None
|
|
35
|
-
|
|
35
|
+
fee: Optional[Union[StrictFloat, StrictInt]] = None
|
|
36
|
+
__properties: ClassVar[List[str]] = ["marketId", "outcomeId", "side", "type", "amount", "price", "fee"]
|
|
36
37
|
|
|
37
38
|
@field_validator('side')
|
|
38
39
|
def side_validate_enum(cls, value):
|
|
@@ -104,7 +105,8 @@ class CreateOrderParams(BaseModel):
|
|
|
104
105
|
"side": obj.get("side"),
|
|
105
106
|
"type": obj.get("type"),
|
|
106
107
|
"amount": obj.get("amount"),
|
|
107
|
-
"price": obj.get("price")
|
|
108
|
+
"price": obj.get("price"),
|
|
109
|
+
"fee": obj.get("fee")
|
|
108
110
|
})
|
|
109
111
|
return _obj
|
|
110
112
|
|
|
File without changes
|
|
File without changes
|