Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Polymarket Get last trade price

API दस्तावेज़
https://api.sandbase.ai/v1/api/polymarket/last-trade-price

Retrieves the last trade price and side for a specific token ID. Returns default values of 0.5 for price and empty string for side if no trades found.

मूल्य
$0.012USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 0 वैकल्पिक

प्लेग्राउंड

इनपुट
Token ID (asset ID)
आउटपुटतैयार

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

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

API README

Polymarket Get last trade price API

Returns the most recent trade price and trade side for one Polymarket outcome token. It needs a token_id (the asset ID of the outcome token). If the token has no trades, the description says the API returns 0.5 for price and an empty string for side.

Use cases

  • Show the latest traded price for a Yes or No outcome on a dashboard.
  • Check whether the last trade on a token was a buy or a sell.
  • Compare the last trade price with the current midpoint or spread to spot stale quotes.
  • Poll a list of token IDs to track price moves on markets you follow.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/last-trade-price" \
  -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.

{
  "price": "0.02",
  "side": "SELL"
}

Response fields

FieldMeaning
pricePrice of the last trade for the token, returned as a string. In the sample it is 0.02. The description says it is 0.5 when no trades exist.
sideSide of the last trade, such as SELL. The description says it is an empty string when no trades exist.

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

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

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

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

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

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

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

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

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

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