Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Polymarket Portfolio Value

Documentación de la API
https://api.sandbase.ai/v1/api/polymarket/value

Current USD value of a wallet's open positions, optionally limited to given markets.

Precio
$0.012USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 1 opcionales

Entorno de pruebas

Entrada
The wallet whose portfolio value to return. Required.
Comma-separated `condition_id`s (at most 20 distinct values); omit for the full portfolio.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

Polymarket Portfolio Value API

Returns the current USD value of a wallet's open positions on Polymarket. It needs a wallet address in user, and it can limit the total to specific markets with condition.

Use cases

  • Track the total size of a trader's open Polymarket portfolio over time.
  • Rank a list of wallets by the current value of their open positions.
  • Check how much of a wallet's value sits in one market by passing that market's condition_id.
  • Show a portfolio balance next to a wallet's positions in a dashboard.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/value" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user": "0xfe787d2da716d60e8acff57fb87eb13cd4d10319"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
userstringYesThe wallet whose portfolio value to return. Required.
conditionstringNoComma-separated condition_ids (at most 20 distinct values); omit for the full portfolio.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "proxy_wallet": "0xfe787d2da716d60e8acff57fb87eb13cd4d10319",
    "value": 185559.3014
  }
}

Response fields

FieldMeaning
data.proxy_walletThe wallet address the value belongs to. It matches the user you sent in this example.
data.valueCurrent USD value of the wallet's open positions. It covers the full portfolio, or only the markets listed in condition.

Notes

  • user is a wallet address in 0x hex format.
  • condition takes up to 20 distinct condition_id values separated by commas. Leave it out to value the full portfolio.
  • To see which positions make up the value, call Polymarket Wallet Positions.
  • To find condition_id values for markets, call Polymarket List markets.

Pricing

$0.012 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Polymarket$0.012 por llamadaJSON
Polymarket$0.012 por llamadaJSON
Polymarket$0.012 por llamadaJSON
Polymarket$0.012 por llamadaJSON
Polymarket$0.012 por llamadaJSON
Polymarket$0.012 por llamadaJSON

Preguntas

FAQ

¿Cómo uso la API de Polymarket Portfolio Value?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/polymarket/value con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Polymarket Portfolio Value?

$0.012 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Polymarket Portfolio Value?

Requeridos: user (string). Opcionales: condition (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Polymarket Portfolio Value?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Polymarket?

No. Polymarket Portfolio Value funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Polymarket por separado.