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)
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

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 का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/polymarket/midpoint पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Polymarket Get midpoint price API की लागत कितनी है?

$0.012 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Polymarket Get midpoint price API कौन-से parameters स्वीकार करती है?

आवश्यक: token_id (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Polymarket Get midpoint price API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Polymarket developer account या API key चाहिए?

नहीं। Polymarket Get midpoint price SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Polymarket API access के लिए आवेदन करने की आवश्यकता नहीं है।