Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Polymarket Market Positions

API 문서
https://api.sandbase.ai/v1/api/polymarket/market-positions

Positions held in one market by condition ID, with each holder wallet, size, value and PnL.

가격
$0.012USD / 호출
메서드
POST
응답
JSON
매개변수
필수 1개 · 선택 사항 13개

Playground

입력
Condition id(s), comma-separated (at most 20 distinct values). With `user`, narrows that user's positions (all ids honoured). Without `user`, anchors on the market's holders; exactly one id is accepted there, and a multi-id list is rejected rather than silently truncated.
The wallet to anchor on. At least one of `user`/`condition` is required.
01000
First-page size. Ignored when `cursor` is supplied (the cursor's size wins). 범위: 0~1000.
Opaque pagination cursor from a prior response's `next_cursor`. It carries the page position, page size, and the status/sort/direction it was minted under.
One of `OPEN`, `REDEEMABLE`, `REDEEMABLE_LOST`, `MERGEABLE`, or `CLOSED`; defaults to `OPEN`. `REDEEMABLE_LOST` requires `user`, supports all six sorts, and defaults to `CURRENT_VALUE`; it preserves row status `REDEEMABLE`. `MERGEABLE` is `OPEN` narrowed to live complementary pairs (conditions where
Event id(s), comma-separated (at most 20 distinct values). User-anchored only.
Case-insensitive market-title substring filter, honoured on every anchor and status. SQL LIKE wildcards (`%`, `_`) keep their usual meaning; empty or whitespace-only is treated as absent; at most 200 characters. NOT carried by the cursor: re-send it on every page of a walk (like `condition` and the
`CASH` or `TOKENS`; defaults to `TOKENS` (the /v2/trades-homogenized filter pair, replacing the former `size_threshold`).
The filter floor. `TOKENS`: minimum CURRENT holding in shares (defaults to the 0.1 dust floor; applies to `OPEN`/`REDEEMABLE`; a user's `CLOSED` set is not narrowed by it, and on a market anchor it moves the OPEN/CLOSED boundary). `CASH`: minimum mark-to-market `current_value` in USDC, on top of the
Also include positions on archived markets; defaults to `false`. `OPEN`/`REDEEMABLE`/`REDEEMABLE_LOST`/`MERGEABLE` only; combining it with `status=CLOSED` is rejected. Inactive markets remain excluded either way.
One of `CURRENT_VALUE`, `PRICE`, `TOKENS`, `UNREALIZED_PNL`, `REALIZED_PNL`, `TOTAL_PNL`, or `TIMESTAMP` (the row's `last_event_at`). `PRICE` ranks by the response's effective `current_price` on every supported anchor and status. On `REDEEMABLE`, the existing winners-first partition remains ahead of
Inclusive lower bound on `last_event_at`, epoch seconds; omit or `0` for unbounded (the `/v2/activity` + `/v2/trades` vocabulary).
Inclusive upper bound on `last_event_at`, epoch seconds; omit or `0` for unbounded. A position with no native economics carries no `last_event_at` and is therefore **excluded by any bound**, in either direction; a window asks which positions moved inside it, and a row with no clock has no answer. Un
`ASC` or `DESC`; defaults to `DESC`.
출력준비됨

출력이 여기에 표시됩니다

입력을 완료한 다음 Run을 클릭하세요.

API README

Polymarket Market Positions API

Returns the positions holders have in one Polymarket market, with each holder's wallet, share count, current value and PnL. The condition parameter takes the market's condition ID. You can also pass user to look at one wallet.

Use cases

  • List the largest holders of one outcome in a market, sorted by current_value.
  • Check how much a large wallet has made or lost on a market through realized_pnl, unrealized_pnl and total_pnl.
  • Find the wallets that hold both sides of a market by comparing outcome across rows.
  • Track when large positions last changed by reading last_event_at and filtering with start and end.

Request

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

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

Parameters

NameTypeRequiredDescription
conditionstringYesCondition id(s), comma-separated (at most 20 distinct values). With user, narrows that user's positions (all ids honoured). Without user, anchors on the market's holders; exactly one id is accepted there, and a multi
cursorstringNoOpaque pagination cursor from a prior response's next_cursor. It carries the page position, page size, and the status/sort/direction it was minted under.
endintegerNoInclusive upper bound on last_event_at, epoch seconds; omit or 0 for unbounded. A position with no native economics carries no last_event_at and is therefore excluded by any bound, in either direction; a window
event_idstringNoEvent id(s), comma-separated (at most 20 distinct values). User-anchored only.
filter_amountnumberNoThe filter floor. TOKENS: minimum CURRENT holding in shares (defaults to the 0.1 dust floor; applies to OPEN/REDEEMABLE; a user's CLOSED set is not narrowed by it, and on a market anchor it moves the OPEN/CLOSED
filter_typestringNoCASH or TOKENS; defaults to TOKENS (the /v2/trades-homogenized filter pair, replacing the former size_threshold).
include_archivedbooleanNoAlso include positions on archived markets; defaults to false. OPEN/REDEEMABLE/REDEEMABLE_LOST/MERGEABLE only; combining it with status=CLOSED is rejected. Inactive markets remain excluded either way.
limitintegerNoFirst-page size. Ignored when cursor is supplied (the cursor's size wins).
sort_bystringNoOne of CURRENT_VALUE, PRICE, TOKENS, UNREALIZED_PNL, REALIZED_PNL, TOTAL_PNL, or TIMESTAMP (the row's last_event_at). PRICE ranks by the response's effective current_price on every supported anchor an
sort_directionstringNoASC or DESC; defaults to DESC.
startintegerNoInclusive lower bound on last_event_at, epoch seconds; omit or 0 for unbounded (the /v2/activity + /v2/trades vocabulary).
statusstringNoOne of OPEN, REDEEMABLE, REDEEMABLE_LOST, MERGEABLE, or CLOSED; defaults to OPEN. REDEEMABLE_LOST requires user, supports all six sorts, and defaults to CURRENT_VALUE; it preserves row status `REDEEMABL
titlestringNoCase-insensitive market-title substring filter, honoured on every anchor and status. SQL LIKE wildcards (%, _) keep their usual meaning; empty or whitespace-only is treated as absent; at most 200 characters. NOT carr
userstringNoThe wallet to anchor on. At least one of user/condition is required.

Example response

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

{
  "data": [
    {
      "archived": false,
      "avg_price": 0.0,
      "condition_id": "0xc5eae79d1ffe716572353962eb926b1e3964c500a4880a7a94f58408218ee76b",
      "current_price": 0.945,
      "current_size": 6736573.9941,
      "current_value": 6366062.4244,
      "end_date": "2026-11-04",
      "entry_cost_usdc": 0.0,
      "entry_fees_usdc": 0.0,
      "event_id": "32228",
      "event_slug": "balance-of-power-2026-midterms",
      "first_entry_at": 0
    }
  ],
  "pagination": {
    "has_more": true,
    "limit": 2,
    "next_cursor": "eyJkYXRhIjp7InR5cGUiOiJwb3NpdGlvbnMiLCJwYXJhbXMiOnsibCI6MiwiZCI6MiwiayI6IjE0MjYz…",
    "offset": 0
  }
}

Response fields

FieldMeaning
data[].proxy_walletWallet address of the position holder.
data[].nameDisplay name of the holder. It can be an empty string when the holder has no name.
data[].outcome / data[].outcome_index / data[].opposite_outcomeThe outcome this position holds (for example No), its index, and the name of the other side of the market.
data[].current_size / data[].total_sizecurrent_size is the number of shares held now. total_size is the total shares the holder has bought into this position, and it can be 0.0 when no entry data exists.
data[].current_price / data[].avg_priceThe current price of the outcome token and the holder's average entry price. Both are on a 0 to 1 scale.
data[].current_valueMark-to-market value of the position in USDC, based on current_size and current_price.
data[].total_cost_usdc / data[].entry_cost_usdc / data[].entry_fees_usdcCost and fees the holder paid to enter the position, in USDC.
data[].realized_pnl / data[].unrealized_pnl / data[].total_pnlProfit and loss for the holder on this position. total_pnl is the sum of the realized and unrealized parts.
data[].percent_pnl / data[].percent_realized_pnlProfit and loss as a ratio of cost.
data[].first_entry_at / data[].last_event_atEpoch seconds of the holder's first entry and latest event. Both are 0 when the row has no entry data.

Notes

  • Get the condition ID from the condition_id field of a market. Without user, condition accepts exactly one ID.
  • Paginate by passing pagination.next_cursor back as cursor while pagination.has_more is true. Re-send condition and title on every page.
  • status defaults to OPEN. Use sort_by and sort_direction to change the order.
  • To see all markets for one wallet, call Polymarket Wallet Positions. For a list of holders per outcome token, use Polymarket Market Holders.

Pricing

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

더 살펴보기

관련 API

모든 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

질문

FAQ

Polymarket Market Positions API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/polymarket/market-positions에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Polymarket Market Positions API 비용은 얼마인가요?

호출당 $0.012, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

Polymarket Market Positions API는 어떤 매개변수를 받나요?

필수: condition (string). 선택: user (string), limit (integer), cursor (string), status (string), event_id (string) 및 title (string) 외 7개. 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Polymarket Market Positions API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Polymarket 개발자 계정이나 API 키가 필요한가요?

아니요. Polymarket Market Positions은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Polymarket API 액세스를 별도로 신청할 필요는 없습니다.