userstring必須
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.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
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.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
userstring必須The wallet whose profile stats to return. Required; `0x` followed by 40 hexadecimal characters.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Polymarket User Statsこの 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 |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/polymarket/traded に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.012、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: user (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Polymarket User Stats は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Polymarket の API アクセスを別途申請する必要はありません。