probe v2: let the SDK derive the Deposit Wallet (maker-not-allowed fix)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jaxperro
2026-07-09 20:20:57 -04:00
parent 8791591b48
commit 222bc0b80d
+8 -3
View File
@@ -33,9 +33,14 @@ if not tok:
sys.exit("no suitable market")
from polymarket import SecureClient
client = SecureClient.create(
private_key=os.environ["LIVE_PRIVATE_KEY"].strip(),
wallet=os.environ["LIVE_FUNDER_ADDRESS"].strip())
# wallet OMITTED on purpose: the SDK derives the signer's Deposit Wallet
# (passing the profile address raw produced 'maker address not allowed' —
# the new wallet architecture encodes wallet type into the maker)
client = SecureClient.create(private_key=os.environ["LIVE_PRIVATE_KEY"].strip())
for attr in ("wallet", "address", "deposit_wallet"):
v = getattr(client, attr, None)
if v:
print(f"client.{attr} = {v}")
def dump(label, obj):
print(f"\n--- {label} ---")