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

Polymarket Get prices history

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

Get prices history from Polymarket. Returns the official Polymarket API response unchanged.

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

प्लेग्राउंड

इनपुट
The market (asset id) to query.
Filter by items before this unix timestamp.
Accuracy of the data expressed in minutes. Default is 1 minute.
Time interval for data aggregation.
Filter by items after this unix timestamp.
आउटपुटतैयार

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

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

API README

Polymarket Get prices history API

Returns the price history of one Polymarket outcome token as a list of timestamped prices. It needs a market value, which is the asset (token) id, and accepts optional interval, fidelity, startTs and endTs parameters.

Use cases

  • Plot how the market's implied probability for one outcome changed over the past week.
  • Backtest a trading rule against hourly prices for a single outcome token.
  • Find the time when a price jumped by comparing consecutive points in the series.
  • Export a fixed time window of prices by setting startTs and endTs.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/prices-history" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"market": "32338220190071351435772801779725302244575775216413325951443816017994629993401", "interval": "1w", "fidelity": 60}'

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

Parameters

NameTypeRequiredDescription
marketstringYesThe market (asset id) to query.
endTsnumberNoFilter by items before this unix timestamp.
fidelityintegerNoAccuracy of the data expressed in minutes. Default is 1 minute.
intervalstringNoTime interval for data aggregation.
startTsnumberNoFilter by items after this unix timestamp.

Example response

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

{
  "history": [
    {
      "p": 0.0375,
      "t": 1793088028
    }
  ]
}

Response fields

FieldMeaning
historyList of price points for the requested market, in time order.
history[].pPrice of the outcome token at that point. The values in this response sit between 0 and 1, such as 0.0375.
history[].tUnix timestamp in seconds for the price point.

Notes

  • market is the asset (token) id, a long numeric string. Use Polymarket Get market by slug to look up a market and find its token ids.
  • In the example request, fidelity is 60 and the points are about 3,600 seconds apart, which matches one point per hour.
  • To get the current price instead of a series, call Polymarket Get market price.

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

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

Polymarket Get prices history API की लागत कितनी है?

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

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

आवश्यक: market (string)। वैकल्पिक: endTs (number), fidelity (integer), interval (max, all, 1m, 1w, 1d, 6h, 1h में से एक) और startTs (number)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Polymarket Get prices history API क्या लौटाती है?

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

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

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