{"openapi":"3.1.0","info":{"title":"goseli data API","version":"1.0.0","description":"Pay-per-call wallet analytics for Polymarket and Hyperliquid and Telegram gift floor prices. Payments: x402 (USDC on Base). Also available as an MCP server at https://api.goseli.com/mcp.","contact":{"url":"https://api.goseli.com"}},"servers":[{"url":"https://api.goseli.com"}],"paths":{"/v1/polymarket/wallet/{address}/pnl":{"get":{"operationId":"polymarket_wallet_pnl","summary":"Polymarket wallet P&L","description":"Polymarket wallet P&L: all-time realized (after fees) and unrealized P&L, rebates/rewards income, fees paid, volume, trades, realized P&L by calendar year and by month of the current year, and open-position value. Source: Polymarket data-api v2.\n\nPrice: $0.03 USDC per call (x402, exact scheme, Base). Without payment the endpoint returns HTTP 402 with a PAYMENT-REQUIRED header.","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address (Polymarket: the proxy wallet shown on the profile)"},"example":"0xad5353afe30c2da57709e2704ef3ccdcf67eef24"}],"x-price-usd":"0.03","x-payment":{"protocol":"x402","scheme":"exact","network":"eip155:8453","asset":"USDC","payTo":"0xD84Fb6861d6F7A6a4Ae730756a01454E2704Ac80"},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"wallet":"0xad5353afe30c2da57709e2704ef3ccdcf67eef24","found":true,"all_time":{"realized_pnl":321106.78,"unrealized_pnl":-202561.84,"income":369629.8,"fees_paid":63246.55,"trades":139015},"by_year":{"2026":{"realized_pnl":291124.75,"fees_paid":63245.56,"income":368287.61}}}}}},"400":{"description":"Invalid input (no payment requested)"},"402":{"description":"Payment required (x402)"},"429":{"description":"Rate limited"},"502":{"description":"Upstream error (payment not settled)"}}}},"/v1/polymarket/wallet/{address}/positions":{"get":{"operationId":"polymarket_wallet_positions","summary":"Polymarket wallet positions","description":"Polymarket positions for a wallet (open by default, or closed / redeemable): market title, outcome, size, average price, current price, cost, value, realized and unrealized P&L. Up to 100 rows. Source: Polymarket data-api v2.\n\nPrice: $0.02 USDC per call (x402, exact scheme, Base). Without payment the endpoint returns HTTP 402 with a PAYMENT-REQUIRED header.","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address (Polymarket: the proxy wallet shown on the profile)"},"example":"0xad5353afe30c2da57709e2704ef3ccdcf67eef24"},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","closed","redeemable"],"description":"default open"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"description":"default 50"}}],"x-price-usd":"0.02","x-payment":{"protocol":"x402","scheme":"exact","network":"eip155:8453","asset":"USDC","payTo":"0xD84Fb6861d6F7A6a4Ae730756a01454E2704Ac80"},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"wallet":"0xad5353afe30c2da57709e2704ef3ccdcf67eef24","status":"open","count":10,"has_more":true,"positions":[{"title":"Will ... ?","outcome":"No","size":11054.6,"avg_price":0.93,"current_price":0.945,"value_usdc":10446.6,"unrealized_pnl":155.4}]}}}},"400":{"description":"Invalid input (no payment requested)"},"402":{"description":"Payment required (x402)"},"429":{"description":"Rate limited"},"502":{"description":"Upstream error (payment not settled)"}}}},"/v1/hyperliquid/wallet/{address}/pnl":{"get":{"operationId":"hyperliquid_wallet_pnl","summary":"Hyperliquid wallet P&L","description":"Hyperliquid wallet P&L: day/week/month/all-time P&L and volume from Hyperliquid's portfolio endpoint, open perp positions with unrealized P&L, and realized P&L by calendar year from fills (closed P&L - fees + funding; up to the latest 10,000 fills). Source: Hyperliquid info API.\n\nPrice: $0.03 USDC per call (x402, exact scheme, Base). Without payment the endpoint returns HTTP 402 with a PAYMENT-REQUIRED header.","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address (Polymarket: the proxy wallet shown on the profile)"},"example":"0x8bffefd54ab61dbb8de6efe7b708375cfda361b6"}],"x-price-usd":"0.03","x-payment":{"protocol":"x402","scheme":"exact","network":"eip155:8453","asset":"USDC","payTo":"0xD84Fb6861d6F7A6a4Ae730756a01454E2704Ac80"},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"wallet":"0x8bffefd54ab61dbb8de6efe7b708375cfda361b6","found":true,"portfolio":{"all_time":{"pnl":17214.56,"volume":1853535.27}},"realized_by_year":{"2026":{"closed_pnl":25590.33,"fees":323.56,"funding":-1095.11,"net":24171.66}}}}}},"400":{"description":"Invalid input (no payment requested)"},"402":{"description":"Payment required (x402)"},"429":{"description":"Rate limited"},"502":{"description":"Upstream error (payment not settled)"}}}},"/v1/telegram-gifts/floors":{"get":{"operationId":"telegram_gift_floors","summary":"Telegram gift floor prices","description":"Floor prices of Telegram collectible gift collections on Fragment, in TON and USD, with 24h change and supply; refreshed hourly. Optional collection filter (slug or name substring).\n\nPrice: $0.01 USDC per call (x402, exact scheme, Base). Without payment the endpoint returns HTTP 402 with a PAYMENT-REQUIRED header.","parameters":[{"name":"collection","in":"query","required":false,"schema":{"type":"string","description":"optional filter, e.g. plushpepe"}}],"x-price-usd":"0.01","x-payment":{"protocol":"x402","scheme":"exact","network":"eip155:8453","asset":"USDC","payTo":"0xD84Fb6861d6F7A6a4Ae730756a01454E2704Ac80"},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"ton_usd":0.756,"count":1,"collections":[{"slug":"plushpepe","name":"Plush Pepes","floor_ton":8850,"floor_usd":6692.02,"change_24h_pct":4.1,"supply":2493}]}}}},"400":{"description":"Invalid input (no payment requested)"},"402":{"description":"Payment required (x402)"},"429":{"description":"Rate limited"},"502":{"description":"Upstream error (payment not settled)"}}}},"/v1/health":{"get":{"operationId":"health","summary":"Health (free)","responses":{"200":{"description":"OK"}}}}}}