userstringobrigatório
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.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
userstringobrigatórioThe wallet whose profile stats to return. Required; `0x` followed by 40 hexadecimal characters.
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Polymarket User StatsEsta API Polymarket | $0.012 por chamada | JSON |
Polymarket | $0.012 por chamada | JSON |
Polymarket | $0.012 por chamada | JSON |
Polymarket | $0.012 por chamada | JSON |
Polymarket | $0.012 por chamada | JSON |
Polymarket | $0.012 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/polymarket/traded com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.012 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: user (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Polymarket User Stats funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Polymarket separadamente.