Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Polymarket Open Interest

Tài liệu API
https://api.sandbase.ai/v1/api/polymarket/oi

Open interest in USDC for one or more markets by condition ID.

Giá
$0.00044USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 0 tùy chọn
100 lượt gọi miễn phí / ngày100 lượt gọi đầu tiên mỗi ngày miễn phí (chia sẻ theo tổ chức) · Đặt lại lúc 00:00 UTC. Sau đó tính phí theo mỗi lượt gọi.

Phòng thử nghiệm

Đầu vào
Condition id(s), comma-separated (at most 20 distinct values). `condition` is the unified key across v2 (same as the feeds); `condition_id` / `conditionId` are accepted aliases. Omit for global open interest.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Polymarket Open Interest API

Returns the open interest in USDC for one or more Polymarket markets. You pass one or more condition IDs in condition, separated by commas.

Use cases

  • Track how much money is still committed to a market before deciding whether it is liquid enough to trade.
  • Rank a set of markets by open interest to find the most active ones.
  • Chart open interest for a market over time by calling the API on a schedule and storing the value.
  • Compare open interest across up to 20 related markets in a single call.

Request

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

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

Parameters

NameTypeRequiredDescription
conditionstringYesCondition id(s), comma-separated (at most 20 distinct values). condition is the unified key across v2 (same as the feeds); condition_id / conditionId are accepted aliases. Omit for global open interest.

Example response

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

{
  "data": [
    {
      "condition_id": "0xc5eae79d1ffe716572353962eb926b1e3964c500a4880a7a94f58408218ee76b",
      "value": 7708257.285468
    }
  ]
}

Response fields

FieldMeaning
dataList of results. Each row covers one condition ID.
data[].condition_idThe condition ID of the market. It matches the value you sent in condition.
data[].valueOpen interest for that market in USDC, as a decimal number.

Notes

Pricing

$0.00044 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Polymarket$0.00044 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Polymarket Open Interest?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/polymarket/oi với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Polymarket Open Interest có giá bao nhiêu?

$0.00044 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.

API Polymarket Open Interest chấp nhận những tham số nào?

Bắt buộc: condition (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Polymarket Open Interest trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Polymarket không?

Không. Polymarket Open Interest chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Polymarket.