# 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 position in client.fetch_positions():
print(position.market_id, position.shares, position.current_value)[
{
"venue": "polymarket",
"shares": 123,
"current_price": 123,
"current_value": 123,
"outcome_label": "<string>",
"entry_price": 123,
"realized_pnl": 123
}
]{
"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 Positions
List the open positions held by address across Polymarket, Opinion, and Limitless. Each position carries the market, outcome, share count, and average entry price.
Mark-to-market fields (current_price, current_value, unrealized_pnl) are reserved for a future release and currently return null.
GET
/
v0
/
user
/
{address}
/
positions
# 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 position in client.fetch_positions():
print(position.market_id, position.shares, position.current_value)[
{
"venue": "polymarket",
"shares": 123,
"current_price": 123,
"current_value": 123,
"outcome_label": "<string>",
"entry_price": 123,
"realized_pnl": 123
}
]{
"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
Positions list.
Was this page helpful?

