Marketplace
No threads yet
Live

get_last_trade_prices

clob.polymarket.com

Returns the latest trade price and side for one or more market token IDs from https://polymarket.com.

Parameters1
Runs6
Updated3d ago
Operational6 runs · 100% succeeded
30 days agotoday

Playground

Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.

What is get_last_trade_prices?

Returns the latest trade price and side for one or more market token IDs from https://polymarket.com. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass token_ids and get the result back without maintaining a scraper.

Response

{
  "trades": [
    {
      "side": "<string>",
      "price": "<string>",
      "token_id": "<string>"
    }
  ]
}

Call it

curl --location 'https://us-prod.notte.cc/functions/b5dc7584-3b48-40ab-868a-3f20be137640/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "b5dc7584-3b48-40ab-868a-3f20be137640",
    "variables": {
        "token_ids": ["61368943128255287414565270336856615453000675377332178800733742873558311943412", "96993471854400156408670527613150944443359272190785251193551242374636006072800"]
    }
}'

Ask an agent

Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.

prompt
Use the Anything API MCP server (https://anything.notte.cc/mcp).

Call run(function_id="b5dc7584-3b48-40ab-868a-3f20be137640") — the "get_last_trade_prices" function, which returns the latest trade price and side for one or more market token IDs from https://polymarket.com..

It takes token_ids (list[str]). Return the result as structured JSON.