Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Polymarket Portfolio Value

Docs API
https://api.sandbase.ai/v1/api/polymarket/value

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

Prix
$0.012USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 1 facultatifs

Bac à sable

Entrée
The wallet whose portfolio value to return. Required.
Comma-separated `condition_id`s (at most 20 distinct values); omit for the full portfolio.
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Polymarket$0.012 par appelJSON
Polymarket$0.012 par appelJSON
Polymarket$0.012 par appelJSON
Polymarket$0.012 par appelJSON
Polymarket$0.012 par appelJSON
Polymarket$0.012 par appelJSON

Questions

FAQ

Comment utiliser l’API Polymarket Portfolio Value ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/polymarket/value avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Polymarket Portfolio Value ?

$0.012 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Polymarket Portfolio Value accepte-t-elle ?

Obligatoire : user (string). Facultatif : condition (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Polymarket Portfolio Value ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Polymarket ?

Non. Polymarket Portfolio Value fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Polymarket séparément.