From 5e316827026c2121ea733cd9bc94382abf97bdd9 Mon Sep 17 00:00:00 2001 From: Samuel Tinnerholm Date: Thu, 2 Jul 2026 06:34:16 +0000 Subject: [PATCH] fix(python-sdk): route Myriad wallet address correctly --- sdks/python/pmxt/_exchanges.py | 2 +- sdks/python/tests/test_hosted_dispatch.py | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/sdks/python/pmxt/_exchanges.py b/sdks/python/pmxt/_exchanges.py index 509bb621..224672b5 100644 --- a/sdks/python/pmxt/_exchanges.py +++ b/sdks/python/pmxt/_exchanges.py @@ -284,7 +284,7 @@ def __init__( super().__init__( exchange_name="myriad", api_key=api_key, - private_key=wallet_address, + wallet_address=wallet_address, base_url=base_url, auto_start_server=auto_start_server, pmxt_api_key=pmxt_api_key, diff --git a/sdks/python/tests/test_hosted_dispatch.py b/sdks/python/tests/test_hosted_dispatch.py index 8e02b221..cc7d8435 100644 --- a/sdks/python/tests/test_hosted_dispatch.py +++ b/sdks/python/tests/test_hosted_dispatch.py @@ -22,7 +22,7 @@ from pmxt._hosted_routing import HOSTED_TRADING_BASE_URL from pmxt._hosted_errors import MissingWalletAddress, NotSupported -from pmxt._exchanges import Hunch, Limitless, Polymarket +from pmxt._exchanges import Hunch, Limitless, Myriad, Polymarket from pmxt.errors import InvalidSignature import pmxt.client as client_module from pmxt.models import BuiltOrder @@ -112,6 +112,17 @@ def _noop_verify(typed_data, signature, wallet_address): monkeypatch.setattr(client_module, "verify_signature", _noop_verify) +def test_myriad_wallet_address_populates_wallet_slot_not_private_key() -> None: + client = Myriad( + wallet_address=WALLET_ADDRESS, + pmxt_api_key=PMXT_API_KEY, + auto_start_server=False, + ) + + assert client.wallet_address == WALLET_ADDRESS + assert client.private_key is None + + def _make_polymarket( *, with_wallet: bool = True,