userstringerforderlich
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.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
userstringerforderlichThe wallet whose portfolio value to return. Required.
conditionstringComma-separated `condition_id`s (at most 20 distinct values); omit for the full portfolio.
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Polymarket Portfolio ValueDiese API Polymarket | $0.012 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/polymarket/value mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.012 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: user (string). Optional: condition (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Polymarket Portfolio Value läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Polymarket API beantragen.