userstringrequerido
The wallet whose portfolio value to return. Required.
https://api.sandbase.ai/v1/api/polymarket/valueCurrent USD value of a wallet's open positions, optionally limited to given markets.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
condition_id.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.
| Name | Type | Required | Description |
|---|---|---|---|
user | string | Yes | The wallet whose portfolio value to return. Required. |
condition | string | No | Comma-separated condition_ids (at most 20 distinct values); omit for the full portfolio. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"proxy_wallet": "0xfe787d2da716d60e8acff57fb87eb13cd4d10319",
"value": 185559.3014
}
}
| Field | Meaning |
|---|---|
data.proxy_wallet | The wallet address the value belongs to. It matches the user you sent in this example. |
data.value | Current USD value of the wallet's open positions. It covers the full portfolio, or only the markets listed in condition. |
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.condition_id values for markets, call Polymarket List markets.$0.012 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
userstringrequeridoThe wallet whose portfolio value to return. Required.
conditionstringComma-separated `condition_id`s (at most 20 distinct values); omit for the full portfolio.
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Polymarket Portfolio ValueEsta API Polymarket | $0.012 por llamada | JSON |
Polymarket | $0.012 por llamada | JSON |
Polymarket | $0.012 por llamada | JSON |
Polymarket | $0.012 por llamada | JSON |
Polymarket | $0.012 por llamada | JSON |
Polymarket | $0.012 por llamada | JSON |
Preguntas
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.
$0.012 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: user (string). Opcionales: condition (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
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.