conditionstring必須
Condition id(s), comma-separated (at most 20 distinct values). `condition` is the unified key across v2 (same as the feeds); `condition_id` / `conditionId` are accepted aliases. Omit for global open interest.
https://api.sandbase.ai/v1/api/polymarket/oiOpen interest in USDC for one or more markets by condition ID.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns the open interest in USDC for one or more Polymarket markets. You pass one or more condition IDs in condition, separated by commas.
value.curl -X POST "https://api.sandbase.ai/v1/api/polymarket/oi" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"condition": "0xc5eae79d1ffe716572353962eb926b1e3964c500a4880a7a94f58408218ee76b"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
condition | string | Yes | Condition id(s), comma-separated (at most 20 distinct values). condition is the unified key across v2 (same as the feeds); condition_id / conditionId are accepted aliases. Omit for global open interest. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"condition_id": "0xc5eae79d1ffe716572353962eb926b1e3964c500a4880a7a94f58408218ee76b",
"value": 7708257.285468
}
]
}
| Field | Meaning |
|---|---|
data | List of results. Each row covers one condition ID. |
data[].condition_id | The condition ID of the market. It matches the value you sent in condition. |
data[].value | Open interest for that market in USDC, as a decimal number. |
condition_id and conditionId work as aliases for condition.$0.00044 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/oi" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"condition": "0xc5eae79d1ffe716572353962eb926b1e3964c500a4880a7a94f58408218ee76b"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
conditionstring必須Condition id(s), comma-separated (at most 20 distinct values). `condition` is the unified key across v2 (same as the feeds); `condition_id` / `conditionId` are accepted aliases. Omit for global open interest.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Polymarket Open Interestこの API Polymarket | $0.00044 / 回 | 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/oi に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.00044。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。
必須: condition (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Polymarket Open Interest は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Polymarket の API アクセスを別途申請する必要はありません。