userstringobligatoire
The wallet whose profile stats to return. Required; `0x` followed by 40 hexadecimal characters.
https://api.sandbase.ai/v1/api/polymarket/tradedA wallet's profile stats: total trades, biggest win, profile views and join date.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns profile stats for one Polymarket wallet: trade count, biggest win, profile views, join date and an all-time profit and loss breakdown. It needs one input, the wallet address in user.
curl -X POST "https://api.sandbase.ai/v1/api/polymarket/traded" \
-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 profile stats to return. Required; 0x followed by 40 hexadecimal characters. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"all_time_pnl": {
"cashflow_net": null,
"deposits": null,
"economic_pnl": 5542941.528962,
"fees": -4819186.982857,
"fees_paid": -2146855.218475,
"fees_refunded": 2672331.764382,
"maker_rebate": 1555886.072,
"position_pnl": 2897083.283962,
"realized_combo_pnl": 0.0,
"realized_lp_pnl": 0.0,
"realized_market_pnl": 2899267.130228,
"realized_pnl": 2899267.130228
},
"biggest_win": 412361.928935,
"join_date": 1774462766,
"proxy_wallet": "0xfe787d2da716d60e8acff57fb87eb13cd4d10319",
"trades": 87633,
"views": 334708
}
}
| Field | Meaning |
|---|---|
data.proxy_wallet | The wallet address the stats belong to. |
data.trades | Number of trades for the wallet shown on its profile. |
data.biggest_win | Largest single win for the wallet. |
data.join_date | When the wallet joined, as a Unix timestamp in seconds. |
data.views | Number of profile views. |
data.all_time_pnl.economic_pnl / data.all_time_pnl.settled_pnl | All-time profit and loss figures for the wallet. They are computed differently, so the two values differ. |
data.all_time_pnl.realized_pnl / data.all_time_pnl.unrealized_pnl | Realized profit and loss from closed results, and unrealized profit and loss on positions still open. Unrealized can be negative. |
data.all_time_pnl.trade_count | Number of trades counted in the all-time profit and loss calculation. |
data.all_time_pnl.volume / data.all_time_pnl.volume_usdc | Total trading volume for the wallet. volume_usdc is the volume given in USDC. |
data.all_time_pnl.fees_paid / data.all_time_pnl.fees_refunded / data.all_time_pnl.fees | Fees paid, fees refunded, and the net fees figure. Fee values are negative when they cost the wallet money. |
data.all_time_pnl.maker_rebate / data.all_time_pnl.taker_rebate / data.all_time_pnl.reward_income | Income from maker rebates, taker rebates and rewards. |
user must be 0x followed by 40 hexadecimal characters.data.all_time_pnl.trade_count and data.trades are different numbers in the sample response, so do not treat them as the same count.data.all_time_pnl.timestamp is a Unix timestamp in seconds, and source_block is a block number.cashflow_net, deposits and withdrawals can be null.$0.012 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/api/polymarket/traded" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user": "0xfe787d2da716d60e8acff57fb87eb13cd4d10319"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
userstringobligatoireThe wallet whose profile stats to return. Required; `0x` followed by 40 hexadecimal characters.
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Polymarket User StatsCette API Polymarket | $0.012 par appel | JSON |
Polymarket | $0.012 par appel | JSON |
Polymarket | $0.012 par appel | JSON |
Polymarket | $0.012 par appel | JSON |
Polymarket | $0.012 par appel | JSON |
Polymarket | $0.012 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/polymarket/traded 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.
$0.012 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : user (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
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.
Non. Polymarket User Stats 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.