graph-polymarket-mcp 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/subgraphs.d.ts.map +1 -1
- package/build/subgraphs.js +19 -21
- package/build/subgraphs.js.map +1 -1
- package/package.json +1 -1
package/build/subgraphs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subgraphs.d.ts","sourceRoot":"","sources":["../src/subgraphs.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"subgraphs.d.ts","sourceRoot":"","sources":["../src/subgraphs.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAkEpD,CAAC;AAEF,eAAO,MAAM,cAAc,EAA6B,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC"}
|
package/build/subgraphs.js
CHANGED
|
@@ -2,7 +2,7 @@ export const SUBGRAPHS = {
|
|
|
2
2
|
main: {
|
|
3
3
|
name: "Main",
|
|
4
4
|
ipfsHash: "QmdyCguLEisTtQFveEkvMhTH7UzjyhnrF9kpvhYeG4QX8a",
|
|
5
|
-
description: "
|
|
5
|
+
description: "Core Polymarket subgraph with markets, conditions, FPMMs, and liquidity data. Best for: market discovery, condition resolution status, FPMM pool data, and basic trading activity. Use this for general market queries.",
|
|
6
6
|
keyEntities: [
|
|
7
7
|
"Global",
|
|
8
8
|
"Account",
|
|
@@ -17,48 +17,46 @@ export const SUBGRAPHS = {
|
|
|
17
17
|
beefy_pnl: {
|
|
18
18
|
name: "Beefy Profit and Loss",
|
|
19
19
|
ipfsHash: "QmbHwcGkumWdyTK2jYWXV3vX4WyinftEGbuwi7hDkhPWqG",
|
|
20
|
-
description: "
|
|
20
|
+
description: "The most comprehensive Polymarket analytics subgraph. UNIQUE FEATURES not available elsewhere: (1) Hedge fund-grade account metrics — winRate, profitFactor, maxDrawdown computed on-chain per trader. (2) Per-position P&L with realizedPnl, unrealizedPnl, cost basis (valueBought/valueSold). (3) DailyStats time-series — daily volume, fees, traders, new/resolved markets for trend analysis. (4) Market-level analytics — currentPrice, numBuyers, numSellers. Best for: trader performance analysis, portfolio analytics, P&L tracking, and historical trend data.",
|
|
21
21
|
keyEntities: [
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"Market",
|
|
26
|
-
"MarketPosition",
|
|
22
|
+
"Account (winRate, profitFactor, maxDrawdown, numWinning/LosingPositions)",
|
|
23
|
+
"MarketPosition (realizedPnl, unrealizedPnl, valueBought, valueSold)",
|
|
24
|
+
"DailyStats (daily volume, fees, traders, market counts)",
|
|
25
|
+
"Market (currentPrice, numBuyers, numSellers)",
|
|
27
26
|
"MarketProfit",
|
|
28
27
|
"Transaction",
|
|
29
|
-
"
|
|
28
|
+
"TokenPosition",
|
|
29
|
+
"UserStats",
|
|
30
30
|
],
|
|
31
31
|
},
|
|
32
32
|
slimmed_pnl: {
|
|
33
33
|
name: "Slimmed P&L",
|
|
34
34
|
ipfsHash: "QmZAYiMeZiWC7ZjdWepek7hy1jbcW3ngimBF9ibTiTtwQU",
|
|
35
|
-
description: "
|
|
36
|
-
keyEntities: ["UserPosition", "NegRiskEvent", "Condition", "FPMM"],
|
|
35
|
+
description: "Lightweight position tracker. Stores user token holdings with amount, avgPrice, realizedPnl, and totalBought. Best for: quick position lookups when you just need current holdings without full analytics. Faster queries than Beefy P&L for simple position checks.",
|
|
36
|
+
keyEntities: ["UserPosition (amount, avgPrice, realizedPnl, totalBought)", "NegRiskEvent", "Condition", "FPMM"],
|
|
37
37
|
},
|
|
38
38
|
activity: {
|
|
39
39
|
name: "Activity",
|
|
40
40
|
ipfsHash: "Qmf3qPUsfQ8et6E3QNBmuXXKqUJi91mo5zbsaTkQrSnMAP",
|
|
41
|
-
description: "
|
|
41
|
+
description: "Event log for position management operations. Tracks splits (minting outcome tokens), merges (combining tokens back to collateral), and redemptions (claiming payouts from resolved markets). Best for: monitoring position lifecycle events, tracking when users enter/exit markets, and auditing collateral flows.",
|
|
42
42
|
keyEntities: [
|
|
43
|
-
"Split",
|
|
44
|
-
"Merge",
|
|
45
|
-
"Redemption",
|
|
43
|
+
"Split (stakeholder, condition, amount, timestamp)",
|
|
44
|
+
"Merge (stakeholder, condition, amount, timestamp)",
|
|
45
|
+
"Redemption (redeemer, condition, payout, indexSets)",
|
|
46
46
|
"NegRiskConversion",
|
|
47
47
|
"NegRiskEvent",
|
|
48
|
-
"Condition",
|
|
49
48
|
],
|
|
50
49
|
},
|
|
51
50
|
orderbook: {
|
|
52
51
|
name: "Orderbook",
|
|
53
52
|
ipfsHash: "QmVGA9vvNZtEquVzDpw8wnTFDxVjB6mavTRMTrKuUBhi4t",
|
|
54
|
-
description: "
|
|
53
|
+
description: "Detailed orderbook trading data. Every order fill with maker/taker, price, side, fee, and asset IDs. Best for: analyzing trading patterns, tracking specific maker/taker activity, order flow analysis, and per-market trade statistics. Use this when you need raw trade-level data.",
|
|
55
54
|
keyEntities: [
|
|
56
|
-
"
|
|
57
|
-
"Account",
|
|
58
|
-
"MarketData",
|
|
59
|
-
"OrderFilledEvent",
|
|
55
|
+
"OrderFilledEvent (maker, taker, price, side, fee, amounts)",
|
|
60
56
|
"OrdersMatchedEvent",
|
|
61
|
-
"Orderbook",
|
|
57
|
+
"Orderbook (per-token trade stats)",
|
|
58
|
+
"Global (platform-wide trade counts)",
|
|
59
|
+
"Account (per-trader volume and activity)",
|
|
62
60
|
],
|
|
63
61
|
},
|
|
64
62
|
};
|
package/build/subgraphs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subgraphs.js","sourceRoot":"","sources":["../src/subgraphs.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,SAAS,GAAmC;IACvD,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,gDAAgD;QAC1D,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"subgraphs.js","sourceRoot":"","sources":["../src/subgraphs.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,SAAS,GAAmC;IACvD,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,gDAAgD;QAC1D,WAAW,EACT,yNAAyN;QAC3N,WAAW,EAAE;YACX,QAAQ;YACR,SAAS;YACT,WAAW;YACX,yBAAyB;YACzB,YAAY;YACZ,gBAAgB;YAChB,aAAa;YACb,kBAAkB;SACnB;KACF;IACD,SAAS,EAAE;QACT,IAAI,EAAE,uBAAuB;QAC7B,QAAQ,EAAE,gDAAgD;QAC1D,WAAW,EACT,4iBAA4iB;QAC9iB,WAAW,EAAE;YACX,0EAA0E;YAC1E,qEAAqE;YACrE,yDAAyD;YACzD,8CAA8C;YAC9C,cAAc;YACd,aAAa;YACb,eAAe;YACf,WAAW;SACZ;KACF;IACD,WAAW,EAAE;QACX,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,gDAAgD;QAC1D,WAAW,EACT,sQAAsQ;QACxQ,WAAW,EAAE,CAAC,2DAA2D,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,CAAC;KAChH;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,gDAAgD;QAC1D,WAAW,EACT,sTAAsT;QACxT,WAAW,EAAE;YACX,mDAAmD;YACnD,mDAAmD;YACnD,qDAAqD;YACrD,mBAAmB;YACnB,cAAc;SACf;KACF;IACD,SAAS,EAAE;QACT,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,gDAAgD;QAC1D,WAAW,EACT,uRAAuR;QACzR,WAAW,EAAE;YACX,4DAA4D;YAC5D,oBAAoB;YACpB,mCAAmC;YACnC,qCAAqC;YACrC,0CAA0C;SAC3C;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAA0B,CAAC"}
|