polynode 0.7.3__py3-none-any.whl → 0.8.0__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.
- polynode/_version.py +1 -1
- polynode/trading/eip712.py +1 -0
- polynode/trading/trader.py +3 -0
- polynode/trading/types.py +3 -0
- {polynode-0.7.3.dist-info → polynode-0.8.0.dist-info}/METADATA +1 -1
- {polynode-0.7.3.dist-info → polynode-0.8.0.dist-info}/RECORD +7 -7
- {polynode-0.7.3.dist-info → polynode-0.8.0.dist-info}/WHEEL +0 -0
polynode/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "0.8.0"
|
polynode/trading/eip712.py
CHANGED
|
@@ -324,6 +324,7 @@ async def create_signed_order_v2(
|
|
|
324
324
|
"side": side, # string "BUY"/"SELL"
|
|
325
325
|
"signatureType": int(signature_type), # number
|
|
326
326
|
"timestamp": str(payload.message["timestamp"]), # string
|
|
327
|
+
"expiration": "0", # "0" = no expiration (matches @polymarket/clob-client-v2)
|
|
327
328
|
"metadata": payload.message["metadata"],
|
|
328
329
|
"builder": payload.message["builder"],
|
|
329
330
|
"signature": signature,
|
polynode/trading/trader.py
CHANGED
|
@@ -540,6 +540,7 @@ class PolyNodeTrader:
|
|
|
540
540
|
signature_type=creds.signature_type,
|
|
541
541
|
tick_size=meta.tick_size,
|
|
542
542
|
neg_risk=meta.neg_risk,
|
|
543
|
+
builder=params.builder or "0x" + "00" * 32,
|
|
543
544
|
)
|
|
544
545
|
else:
|
|
545
546
|
signed_order = await create_signed_order(
|
|
@@ -587,6 +588,8 @@ class PolyNodeTrader:
|
|
|
587
588
|
fee_auth_dict = None
|
|
588
589
|
fee_amount_raw = 0
|
|
589
590
|
if fee_config and fee_config.fee_bps > 0:
|
|
591
|
+
if not fee_config.affiliate or fee_config.affiliate == "0x0000000000000000000000000000000000000000":
|
|
592
|
+
raise ValueError("fee_config.affiliate is required when fee_bps > 0 — set it to the wallet address where you want fees sent")
|
|
590
593
|
fee_amount_raw = calculate_fee(params.price, params.size, fee_config.fee_bps)
|
|
591
594
|
if fee_amount_raw > 0:
|
|
592
595
|
funder = creds.funder_address or creds.wallet_address
|
polynode/trading/types.py
CHANGED
|
@@ -137,6 +137,9 @@ class OrderParams:
|
|
|
137
137
|
expiration: int | None = None
|
|
138
138
|
post_only: bool = False
|
|
139
139
|
fee_config: FeeConfig | None = None
|
|
140
|
+
# V2 builder attribution bytes32. Mint at polymarket.com/settings?tab=builder.
|
|
141
|
+
# Defaults to zero (no attribution). Ignored on V1.
|
|
142
|
+
builder: str | None = None
|
|
140
143
|
|
|
141
144
|
|
|
142
145
|
@dataclass
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
polynode/__init__.py,sha256=ucqXzFPMdEcfGEAdbgOeJczREEiSCNBX1G3Il7y8-UI,1127
|
|
2
|
-
polynode/_version.py,sha256=
|
|
2
|
+
polynode/_version.py,sha256=iPlYCcIzuzW7T2HKDkmYlMkRI51dBLfNRxPPiWrfw9U,22
|
|
3
3
|
polynode/client.py,sha256=eSCKpuZFg2ssQC5tmsfRYF3cTqCk1Gdw4KPjbd5MFHQ,21831
|
|
4
4
|
polynode/engine.py,sha256=DSXBmx3DXPh-PN0ihkXn7LSiyxeOoo0iY3z4YinQ3XI,6488
|
|
5
5
|
polynode/errors.py,sha256=5qUCI7K76VKbF5R5G5UYhPzcnOPlGLCA8-sJnKbrK-4,925
|
|
@@ -15,15 +15,15 @@ polynode/trading/__init__.py,sha256=sPv30j9eyvqjnUBxGAYaKpAPQZ2jTw3UwA4DZXYZ21s,
|
|
|
15
15
|
polynode/trading/clob_api.py,sha256=ygaOoMIg4PGtMzNBT70wk4XrSbVX0EyCCU6PmXK3xrs,5308
|
|
16
16
|
polynode/trading/constants.py,sha256=_DDwutJkOfeyPkClrTcyJCOYMoqDymZzDpjYWeHbfG0,1862
|
|
17
17
|
polynode/trading/cosigner.py,sha256=Fww9OgaKdHQAHd8Kom1AJBtmMGC8FbNZxdFaFALNBY8,3058
|
|
18
|
-
polynode/trading/eip712.py,sha256=
|
|
18
|
+
polynode/trading/eip712.py,sha256=1Pj5e85epyFeMwgtfr3Nje42DL9Jpaih-WbkYYCy_m8,9640
|
|
19
19
|
polynode/trading/escrow.py,sha256=bU_ohyOlx2r6KjBYxUNdjROvrmunWV1Ey99AuSOt9Z8,4590
|
|
20
20
|
polynode/trading/onboarding.py,sha256=-Ub5tsJA4vqPJmkNLx2OE_szUY08UmXYi_9ATThajkA,14670
|
|
21
21
|
polynode/trading/position_management.py,sha256=z2pYls4ErhyRE6thQdOs45BF4llKvKNNruQgcMEFT_U,3827
|
|
22
22
|
polynode/trading/privy.py,sha256=iiUQZsBqjj29C7oUiFFktoT2muZY06bcMzABKstFKqE,4523
|
|
23
23
|
polynode/trading/signer.py,sha256=piifRquwnwFwrKLL24jsRQYMh_cdkz8wNz99Vx8_KTY,3413
|
|
24
24
|
polynode/trading/sqlite_backend.py,sha256=zfo4WevuunWV-7i6Z3gQi_e7Tonw-7m1TsEd88O5I4w,9486
|
|
25
|
-
polynode/trading/trader.py,sha256=
|
|
26
|
-
polynode/trading/types.py,sha256=
|
|
25
|
+
polynode/trading/trader.py,sha256=8Fj3UrZ6O1EfvjnbYag1-JCk_UZbZrjTEIiggJoJYI8,31858
|
|
26
|
+
polynode/trading/types.py,sha256=mo5zJRlfQLWuXwrkS9AaGqKWrt7FMf6bPGRE-0T62J0,5698
|
|
27
27
|
polynode/types/__init__.py,sha256=0v_CByqG-zT1xucbT2So_77YDmsPj9u956at94nyrLM,280
|
|
28
28
|
polynode/types/enums.py,sha256=2cx9l10A-LUeDNBJZn7l0XBTka2YfxRQcXW0s7s3_4k,1082
|
|
29
29
|
polynode/types/events.py,sha256=MJGZqxBFKfT1y44dZ96bHbwvoPpGvtutBwYE6OTT6nU,6880
|
|
@@ -31,6 +31,6 @@ polynode/types/orderbook.py,sha256=MwD6P3poo3F70bONUZ5i3ajk1sgw39hHTOw6D0fP5_8,1
|
|
|
31
31
|
polynode/types/rest.py,sha256=ftJKQZH0wBrR_l199rDMqnVS8cyt8YnCvo9cKIsTcCw,7012
|
|
32
32
|
polynode/types/short_form.py,sha256=xfGklDi587u6K2aXaRWiwbxqkipW8BiEPeNIDT45v2Y,799
|
|
33
33
|
polynode/types/ws.py,sha256=EzE9Vzrb6cILemfssmnqM8fbHt4USn3latpUHKatwk4,994
|
|
34
|
-
polynode-0.
|
|
35
|
-
polynode-0.
|
|
36
|
-
polynode-0.
|
|
34
|
+
polynode-0.8.0.dist-info/METADATA,sha256=ONaJbf42pOFgTU2U9_hts6MhcYw4Y9X3xS5Fg-ogMyk,3302
|
|
35
|
+
polynode-0.8.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
36
|
+
polynode-0.8.0.dist-info/RECORD,,
|
|
File without changes
|