# Hosted reads need: pmxt_api_key + wallet_address (private_key is only required for writes).
import pmxt
client = pmxt.Polymarket(
pmxt_api_key="YOUR_PMXT_API_KEY",
wallet_address="0xYourWallet",
)
balances = client.fetch_balance()
balance = balances[0]
print(balance.available, balance.currency)
{
"currency": "USDC",
"amount": 123,
"venue": "polymarket"
}{
"error": {
"message": "<string>",
"code": "HOSTED_TRADING_ERROR",
"retryable": true,
"exchange": "<string>",
"detail": {}
}
}{
"error": {
"message": "<string>",
"code": "HOSTED_TRADING_ERROR",
"retryable": true,
"exchange": "<string>",
"detail": {}
}
}Orders & Positions
Fetch Balance
Check the USDC available for trading. Returns the wallet’s balance inside the PMXT escrow on Polygon — not the wallet’s on-chain USDC balance.
Top up by depositing at pmxt.dev/dashboard/wallet.
GET
/
v0
/
user
/
{address}
/
balances
# Hosted reads need: pmxt_api_key + wallet_address (private_key is only required for writes).
import pmxt
client = pmxt.Polymarket(
pmxt_api_key="YOUR_PMXT_API_KEY",
wallet_address="0xYourWallet",
)
balances = client.fetch_balance()
balance = balances[0]
print(balance.available, balance.currency)
{
"currency": "USDC",
"amount": 123,
"venue": "polymarket"
}{
"error": {
"message": "<string>",
"code": "HOSTED_TRADING_ERROR",
"retryable": true,
"exchange": "<string>",
"detail": {}
}
}{
"error": {
"message": "<string>",
"code": "HOSTED_TRADING_ERROR",
"retryable": true,
"exchange": "<string>",
"detail": {}
}
}Authorizations
Response
Balance for the wallet.
Hosted-mode Balance shape. Returns USDC held inside the PMXT PreFundedEscrow contract.
Was this page helpful?

