16trust / 100

Polymarket Wallet

by Vextorium in Markets & finance

x402 APIFailing, checked 4 h ago

Open positions of a wallet on Polymarket: market, outcome, shares, average and current price, value, PnL (USD and %), redeemable flag and close date, with portfolio totals.

POST https://api.vextorium.com/v1/polymarket-wallet

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
4 h ago: Amount "0.004" is not in atomic token units
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.vextorium.com/v1/polymarket-wallet" \
  -H "content-type: application/json" \
  -d '{"limit":2,"wallet":"0x5d189e816b4149be00977c1a3c8840374aec4972"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.vextorium.com%2Fv1%2Fpolymarket-wallet
const res = await pay("https://api.vextorium.com/v1/polymarket-wallet", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"limit":2,"wallet":"0x5d189e816b4149be00977c1a3c8840374aec4972"}),
});
console.log(await res.json());

Example input

{
  "limit": 2,
  "wallet": "0x5d189e816b4149be00977c1a3c8840374aec4972"
}

Example output

{
  "detail": [
    {
      "avg_price": 0.009,
      "chargeable": false,
      "close": "2028-11-08",
      "current_price": 0.0055,
      "invested_usd": 15442.5,
      "market": "Will Mark Cuban win the 2028 Democratic presidential nomination?",
      "pnl_pct": -38.89,
      "pnl_usd": -6005.42,
      "result": "Yes",
      "slug": "will-mark-cuban-win-the-2028-democratic-presidential-nomination-329",
      "stakes": 1715833.79,
      "value_usd": 9437.09
    },
    {
      "avg_price": 0.0107,
      "chargeable": false,
      "close": "2028-11-08",
      "current_price": 0.0115,
      "invested_usd": 8019.91,
      "market": "Will Dwayne 'The Rock' Johnson win the 2028 Democratic presidential nomination?",
      "pnl_pct": 6.75,
      "pnl_usd": 541.02,
      "result": "Yes",
      "slug": "will-dwayne-the-rock-johnson-win-the-2028-democratic-presidential-nomination",
      "stakes": 744429.11,
      "value_usd": 8560.93
    }
  ],
  "positions": 267,
  "source": "Polymarket (public data API)",
  "total_invested_usd": 770025.71,
  "total_pnl_usd": -684338.04,
  "total_value_usd": 85687.7,
  "wallet": "0x5d189e816b4149be00977c1a3c8840374aec4972"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoAmount "0.004" is not in atomic token units40290 ms$0.004
8 h agoAmount "0.004" is not in atomic token units40294 ms$0.004
13 h agoAmount "0.004" is not in atomic token units40281 ms$0.004
17 h agoAmount "0.004" is not in atomic token units40286 ms$0.004
21 h agoAmount "0.004" is not in atomic token units40287 ms$0.004
25 h agoAmount "0.004" is not in atomic token units402101 ms$0.004
29 h agoAmount "0.004" is not in atomic token units40280 ms$0.004
33 h agoAmount "0.004" is not in atomic token units40284 ms$0.004
37 h agoAmount "0.004" is not in atomic token units402264 ms$0.004
42 h agoAmount "0.004" is not in atomic token units40283 ms$0.004
45 h agoAmount "0.004" is not in atomic token units40278 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40273 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40281 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40283 ms$0.004
3 days agoAmount "0.004" is not in atomic token units402107 ms$0.004