Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Polymarket User Stats

API 文档
https://api.sandbase.ai/v1/api/polymarket/traded

A wallet's profile stats: total trades, biggest win, profile views and join date.

价格
$0.012美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 0 个可选

Playground

输入
The wallet whose profile stats to return. Required; `0x` followed by 40 hexadecimal characters.
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

Polymarket User Stats API

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.

Use cases

  • Check how active and how profitable a wallet is before copying its trades.
  • Compare the all-time profit and loss of several wallets side by side.
  • Show a trader card with join date, profile views and trade count in a dashboard.
  • Spot wallets that earn mostly from fees and rebates rather than from trading.

Request

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.

Parameters

NameTypeRequiredDescription
userstringYesThe wallet whose profile stats to return. Required; 0x followed by 40 hexadecimal characters.

Example response

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
  }
}

Response fields

FieldMeaning
data.proxy_walletThe wallet address the stats belong to.
data.tradesNumber of trades for the wallet shown on its profile.
data.biggest_winLargest single win for the wallet.
data.join_dateWhen the wallet joined, as a Unix timestamp in seconds.
data.viewsNumber of profile views.
data.all_time_pnl.economic_pnl / data.all_time_pnl.settled_pnlAll-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_pnlRealized profit and loss from closed results, and unrealized profit and loss on positions still open. Unrealized can be negative.
data.all_time_pnl.trade_countNumber of trades counted in the all-time profit and loss calculation.
data.all_time_pnl.volume / data.all_time_pnl.volume_usdcTotal 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.feesFees 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_incomeIncome from maker rebates, taker rebates and rewards.

Notes

  • 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.
  • Fields such as cashflow_net, deposits and withdrawals can be null.
  • For the wallet's current holdings, call Polymarket Wallet Positions. For its recent trades, call Polymarket Wallet Activity.

Pricing

$0.012 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相关 APIs

全部 APIs
API价格响应
Polymarket$0.012 每次调用JSON
Polymarket$0.012 每次调用JSON
Polymarket$0.012 每次调用JSON
Polymarket$0.012 每次调用JSON
Polymarket$0.012 每次调用JSON
Polymarket$0.012 每次调用JSON

问题

常见问题

如何使用 Polymarket User Stats API?

向 https://api.sandbase.ai/v1/api/polymarket/traded 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Polymarket User Stats API 的价格是多少?

每次调用 $0.012,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Polymarket User Stats API 接受哪些参数?

必填:user (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Polymarket User Stats API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Polymarket 开发者账户或 API key 吗?

不需要。Polymarket User Stats 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Polymarket API 访问权限。