Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Polymarket Get midpoint price

APIドキュメント
https://api.sandbase.ai/v1/api/polymarket/midpoint

Retrieves the midpoint price for a specific token ID. The midpoint is calculated as the average of the best bid and best ask prices.

料金
$0.012USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件

プレイグラウンド

入力
Token ID (asset ID)
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

Polymarket Get midpoint price API

Returns the midpoint price for one Polymarket outcome token. The midpoint is the average of the best bid and best ask. You send a token_id.

Use cases

  • Show the midpoint price of a Polymarket outcome token on a dashboard.
  • Store mid on a schedule to build a price series for one token.
  • Value an open position in an outcome token without reading the full order book.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/midpoint" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"token_id": "32338220190071351435772801779725302244575775216413325951443816017994629993401"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
token_idstringYesToken ID (asset ID)

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "mid": "0.0205"
}

Response fields

FieldMeaning
midMidpoint price of the token, calculated as the average of the best bid and best ask.
midComes back as a string, for example "0.0205". Parse it to a number before you do math.
midThe only key in the response. It has no timestamp, so record your own request time when you store values.

Notes

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

質問

FAQ

Polymarket Get midpoint price API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/polymarket/midpoint に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Polymarket Get midpoint price API の料金はいくらですか?

1回あたり $0.012、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Polymarket Get midpoint price API はどのパラメータを受け付けますか?

必須: token_id (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Polymarket Get midpoint price API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Polymarket の開発者アカウントまたは API key は必要ですか?

いいえ。Polymarket Get midpoint price は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Polymarket の API アクセスを別途申請する必要はありません。