Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdks/python/pmxt/_exchanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
13 changes: 12 additions & 1 deletion sdks/python/tests/test_hosted_dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
Loading