# 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",
)
for trade in client.fetch_my_trades():
print(trade.id, trade.side, trade.amount, trade.price, trade.tx_hash)
[
{
"id": "<string>",
"side": "buy",
"amount": 123,
"price": 123,
"fee": 123,
"timestamp": "<string>",
"tx_hash": "<string>",
"chain": "<string>",
"venue": "polymarket"
}
]{
"error": {
"message": "<string>",
"code": "HOSTED_TRADING_ERROR",
"retryable": true,
"exchange": "<string>",
"detail": {}
}
}Orders & Positions
Fetch My Trades
List the wallet’s historical fills on Polymarket, Opinion, and Limitless. Each trade carries the executed price (net of venue fees), size, and on-chain settlement tx hash.
Closed orders are modelled as trades in hosted mode — use this endpoint instead of fetchClosedOrders / fetchAllOrders (which raise NotSupported).
GET
/
v0
/
user
/
{address}
/
trades
# 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",
)
for trade in client.fetch_my_trades():
print(trade.id, trade.side, trade.amount, trade.price, trade.tx_hash)
[
{
"id": "<string>",
"side": "buy",
"amount": 123,
"price": 123,
"fee": 123,
"timestamp": "<string>",
"tx_hash": "<string>",
"chain": "<string>",
"venue": "polymarket"
}
]{
"error": {
"message": "<string>",
"code": "HOSTED_TRADING_ERROR",
"retryable": true,
"exchange": "<string>",
"detail": {}
}
}Authorizations
Response
Trade history.
Was this page helpful?

