Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Polymarket Get last trade price

Dokumentasi 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.

Harga
$0.012USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 0 opsional

Playground

Input
Token ID (asset ID)
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Polymarket$0.012 per panggilanJSON
Polymarket$0.012 per panggilanJSON
Polymarket$0.012 per panggilanJSON
Polymarket$0.012 per panggilanJSON
Polymarket$0.012 per panggilanJSON
Polymarket$0.012 per panggilanJSON

Pertanyaan

FAQ

Bagaimana cara menggunakan API Polymarket Get last trade price?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/polymarket/last-trade-price dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Polymarket Get last trade price?

$0.012 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Polymarket Get last trade price?

Wajib: token_id (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Polymarket Get last trade price?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Polymarket?

Tidak. Polymarket Get last trade price berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Polymarket secara terpisah.