{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"7500","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"e91a1cb8-618a-420d-ae20-cd8bd33e8f7d","catalogType":"api","categories":["finance"],"dataPlatform":"BlockRun","dataPlatformLogoUrl":"https://blockrun.ai/apple-touch-icon.png","dataPlatformTranslations":{"ar":"BlockRun","ja":"BlockRun","zh":"BlockRun"},"dataProduct":"prediction","description":"Get P\u0026L summary and realized P\u0026L time series data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by BlockRun, pass parameters such as end_time, granularity, start_time, and retrieve structured data including returned end time field, returned fees paid field, returned fees refunded field, returned granularity field, and timestamp for market reference and account inspection, and integration reference.","descriptionTranslations":{"ar":"استخدم أسواق التنبؤ والمشتقات — الحصول على ملخص الأرباح والخسائر والسلاسل الزمنية للأرباح والخسائر المحققة لمحفظة API عبر OpenAny، مع تقديم wallet, granularity بصيغة طلب GET الموثقة، لدعم مرجع السوق وفحص الحسابات. تتضمن صفحة التفاصيل قالب الطلب والمدخلات المدعومة ومرجع الاستجابة والسعر الحالي للتنفيذ المحدد؛ احتفظ بالمعرفات والحقول المتاحة معا عند مراجعة النتائج.","ja":"OpenAny から 予測市場とデリバティブ — ウォレットの損益サマリーと実現損益の時系列を取得 API を利用し、GET リクエスト形式で wallet, granularity を指定して、市場参照と口座の確認に利用できます。詳細ページにはリクエスト例、対応入力、応答参照、選択した実装の現在の料金があり、結果を確認する際は識別子と利用可能なフィールドを関連付けて保持できます。","zh":"通过 OpenAny 使用 预测市场与衍生品 — 获取钱包的盈亏摘要和已实现盈亏时间序列 API，按所选实现的 GET 请求格式提供 wallet, granularity，用于市场参考和账户检查。详情页提供请求模板、支持的输入、响应参考及所选实现的当前价格；核对结果时，将返回标识与可用字段关联保留。"},"effectContentHtml":"","executionMode":"sync","id":"70c591cd-4cc2-4cf8-86d0-4eacf624757b","includedContentHtml":"","inputs":[{"description":"Wallet address whose public data is queried.","location":"path","name":"wallet","nullable":false,"required":true,"type":"string"},{"description":"Filter to a specific market by condition ID","location":"query","name":"condition_id","nullable":true,"required":false,"type":"string"},{"description":"Unix timestamp (seconds) for end of range","location":"query","name":"end_time","nullable":true,"required":false,"type":"integer"},{"description":"Time granularity for PnL data","enum_values":["day","week","month","year","all"],"location":"query","name":"granularity","nullable":false,"required":true,"type":"string"},{"description":"Unix timestamp (seconds) for start of range","location":"query","name":"start_time","nullable":true,"required":false,"type":"integer"}],"logoUrl":"https://blockrun.ai/apple-touch-icon.png","method":"GET","name":"Prediction Markets and Derivatives — Get P\u0026L summary and realized P\u0026L time series for a wallet","nameTranslations":{"ar":"أسواق التنبؤ والمشتقات — الحصول على ملخص الأرباح والخسائر والسلاسل الزمنية للأرباح والخسائر المحققة لمحفظة","ja":"予測市場とデリバティブ — ウォレットの損益サマリーと実現損益の時系列を取得","zh":"预测市场与衍生品 — 获取钱包的盈亏摘要和已实现盈亏时间序列"},"overviewHtml":"\u003ch2\u003eBlockrun Get P\u0026amp;L summary and realized P\u0026amp;L time series for a wallet API\u003c/h2\u003e\n\u003cp\u003eRetrieve P\u0026amp;L summary and realized P\u0026amp;L time series for a wallet with the BlockRun API. Provide wallet in path, granularity in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003epath: wallet; query: condition_id, end_time, granularity, start_time\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eblockrun · Prediction Markets and Derivatives — Get P\u0026amp;L summary and realized P\u0026amp;L time series for a wallet\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eFollow the selected implementation pricing, billing unit, quantity and charge rules\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eMarket reference and account inspection\u003c/strong\u003e: Keep market, asset and account identities distinct when interpreting records.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eIntegration reference\u003c/strong\u003e: Use the selected request format and keep source identifiers with the returned result.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eDocumented Response Fields\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eend_time\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned end time field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efees_paid\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned fees paid field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efees_refunded\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned fees refunded field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003egranularity\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned granularity field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epnl_over_time[].pnl_to_date\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned pnl to date field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epnl_over_time[].timestamp\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTimestamp\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003erealized_pnl\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned realized pnl field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003estart_time\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned start time field\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the supported inputs and set any required query value shown in the template.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl \\\n  \u0026#39;https://api.openany.si/v1/agent-apis/blockrun/v1/pm/polymarket/wallet/pnl/0x2c335066fe58fe9237c3d3dc7b275c2a034a0563?end_time=1793404800\u0026amp;granularity=day\u0026amp;start_time=1793318400\u0026#39; \\\n  -X GET \\\n  -H \u0026#34;Authorization: Bearer $OPENANY_API_KEY\u0026#34; \\\n  -H \u0026#39;Content-Type: application/json\u0026#39;\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/70c591cd-4cc2-4cf8-86d0-4eacf624757b\"\u003ePublished Blockrun Get P\u0026amp;L summary and realized P\u0026amp;L time series for a wallet API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhich inputs identify this request?\u003c/h3\u003e\n\u003cp\u003eProvide wallet in path (string); granularity in query (string). Keep identifiers and URLs in the formats documented for this implementation.\u003c/p\u003e\n\u003ch3\u003eWhich pagination or result-size inputs are exposed?\u003c/h3\u003e\n\u003cp\u003estart_time is integer. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.\u003c/p\u003e\n\u003ch3\u003eWhich values can I use for granularity?\u003c/h3\u003e\n\u003cp\u003eThe selected schema accepts day, week, month, year, all. Keep the documented string type and exact spelling for this input.\u003c/p\u003e\n\u003ch3\u003eWhere do URL parameters belong?\u003c/h3\u003e\n\u003cp\u003eUse the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.\u003c/p\u003e\n\u003ch3\u003eWhich API key should I use?\u003c/h3\u003e\n\u003cp\u003eUse your OpenAny API key as Bearer authentication on the documented OpenAny route.\u003c/p\u003e\n\u003ch3\u003eWhere can I check the current request price?\u003c/h3\u003e\n\u003cp\u003eCheck the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/blockrun/blockrun-prediction-markets-and-derivatives-get-historical-open-interest-data-for-a-market\"\u003ePrediction Markets and Derivatives — Get historical open interest data for a market\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/blockrun/blockrun-prediction-markets-and-derivatives-list-limitless-markets-with-filtering-and-sorting\"\u003ePrediction Markets and Derivatives — List Limitless markets with filtering and sorting\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/blockrun/blockrun-prediction-markets-and-derivatives-get-top-holders-for-a-specific-market-ranked-by-posi\"\u003ePrediction Markets and Derivatives — Get top holders for a specific market ranked by position size\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/blockrun/blockrun-prediction-markets-and-derivatives-get-p-l-summary-and-realized-p-l-time-series-for-a-w?offering=70c591cd-4cc2-4cf8-86d0-4eacf624757b","providerId":"blockrun","publicPath":"/v1/agent-apis/blockrun/v1/pm/polymarket/wallet/pnl/{wallet}","requestContentType":"none","revision":5,"samples":[{"http_status":200,"name":"Documentation example","request":{"body":null,"headers":{},"path":{"wallet":"0x2c335066fe58fe9237c3d3dc7b275c2a034a0563"},"query":{"end_time":1793404800,"granularity":"day","start_time":1793318400}},"response_body":{"end_time":1793404800,"fees_paid":2744881.60539,"fees_refunded":0,"granularity":"day","pnl_over_time":[{"pnl_to_date":8840249.285667,"timestamp":1793318400},{"pnl_to_date":9329499.723828,"timestamp":1793404800}],"realized_pnl":9336752.872879,"start_time":1793318400,"total_pnl":6195815.015957843,"unrealized_pnl":-396056.25153115764,"wallet_address":"0x2c335066fe58fe9237c3d3dc7b275c2a034a0563"}}],"seoDescription":"Get P\u0026L summary and realized P\u0026L time series data via REST or MCP powered by BlockRun. Pay per call, no subscription. Get structured JSON with one API key.","updatedAt":"2026-12-03T02:49:55.192Z","usageInstructionsHtml":""}}