sidestringआवश्यक
Order side
संभावित मान: BUY, SELL
https://api.sandbase.ai/v1/api/polymarket/priceRetrieves the best market price for a specific token ID and side (bid or ask). Returns the best bid price for BUY side or best ask price for SELL side.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Retrieves the best market price for a specific token ID and side (bid or ask). Returns the best bid price for BUY side or best ask price for SELL side.
The response is the official Polymarket API response, unchanged.
curl -X POST "https://api.sandbase.ai/v1/api/polymarket/price" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"side": "BUY", "token_id": "32338220190071351435772801779725302244575775216413325951443816017994629993401"}'
| Name | Type | Required | Description |
|---|---|---|---|
side | string | Yes | Order side |
token_id | string | Yes | Token ID (asset ID) |
Flat price per call. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/polymarket/price" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"side": "BUY",
"token_id": "0xabc123def456..."
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
sidestringआवश्यकOrder side
संभावित मान: BUY, SELL
token_idstringआवश्यकToken ID (asset ID)
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| 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 |
प्रश्न
https://api.sandbase.ai/v1/api/polymarket/price पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.012 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: side (BUY, SELL में से एक) और token_id (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)।
नहीं। Polymarket Get market price SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Polymarket API access के लिए आवेदन करने की आवश्यकता नहीं है।