@0xinsider/mcp 3.5.0 → 3.6.1
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/README.md +13 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/prompts/index.d.ts +1 -1
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +6 -6
- package/dist/prompts/index.js.map +1 -1
- package/dist/resources/index.d.ts +1 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +10 -10
- package/dist/resources/index.js.map +1 -1
- package/dist/sdk/client.d.ts +1 -1
- package/dist/sdk/schema.d.ts +19 -19
- package/dist/sdk/schema.d.ts.map +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +18 -7
- package/dist/server.js.map +1 -1
- package/dist/tools/combos.d.ts +1 -1
- package/dist/tools/combos.d.ts.map +1 -1
- package/dist/tools/combos.js +11 -11
- package/dist/tools/combos.js.map +1 -1
- package/dist/tools/explore-markets.d.ts +1 -1
- package/dist/tools/explore-markets.d.ts.map +1 -1
- package/dist/tools/explore-markets.js +3 -3
- package/dist/tools/explore-markets.js.map +1 -1
- package/dist/tools/games.d.ts +1 -1
- package/dist/tools/games.d.ts.map +1 -1
- package/dist/tools/games.js +8 -8
- package/dist/tools/games.js.map +1 -1
- package/dist/tools/get-insider-radar.d.ts +1 -1
- package/dist/tools/get-insider-radar.d.ts.map +1 -1
- package/dist/tools/get-insider-radar.js +4 -3
- package/dist/tools/get-insider-radar.js.map +1 -1
- package/dist/tools/get-large-positions.d.ts +1 -1
- package/dist/tools/get-large-positions.d.ts.map +1 -1
- package/dist/tools/get-large-positions.js +3 -3
- package/dist/tools/get-large-positions.js.map +1 -1
- package/dist/tools/get-leaderboard.d.ts +1 -1
- package/dist/tools/get-leaderboard.d.ts.map +1 -1
- package/dist/tools/get-leaderboard.js +4 -4
- package/dist/tools/get-leaderboard.js.map +1 -1
- package/dist/tools/get-market-flow.d.ts +1 -1
- package/dist/tools/get-market-flow.d.ts.map +1 -1
- package/dist/tools/get-market-flow.js +4 -4
- package/dist/tools/get-market-flow.js.map +1 -1
- package/dist/tools/get-position-timeline.d.ts +1 -1
- package/dist/tools/get-position-timeline.d.ts.map +1 -1
- package/dist/tools/get-position-timeline.js +3 -3
- package/dist/tools/get-position-timeline.js.map +1 -1
- package/dist/tools/get-positions.d.ts +1 -1
- package/dist/tools/get-positions.d.ts.map +1 -1
- package/dist/tools/get-positions.js +3 -3
- package/dist/tools/get-positions.js.map +1 -1
- package/dist/tools/get-suspicious-trades.d.ts +1 -1
- package/dist/tools/get-suspicious-trades.d.ts.map +1 -1
- package/dist/tools/get-suspicious-trades.js +6 -6
- package/dist/tools/get-suspicious-trades.js.map +1 -1
- package/dist/tools/get-trader-pnl.d.ts +1 -1
- package/dist/tools/get-trader-pnl.d.ts.map +1 -1
- package/dist/tools/get-trader-pnl.js +4 -4
- package/dist/tools/get-trader-pnl.js.map +1 -1
- package/dist/tools/get-trader.d.ts +1 -1
- package/dist/tools/get-trader.d.ts.map +1 -1
- package/dist/tools/get-trader.js +4 -4
- package/dist/tools/get-trader.js.map +1 -1
- package/dist/tools/get-trending-wallets.d.ts +1 -1
- package/dist/tools/get-trending-wallets.d.ts.map +1 -1
- package/dist/tools/get-trending-wallets.js +3 -3
- package/dist/tools/get-trending-wallets.js.map +1 -1
- package/dist/tools/get-whale-trades.d.ts +1 -1
- package/dist/tools/get-whale-trades.d.ts.map +1 -1
- package/dist/tools/get-whale-trades.js +4 -4
- package/dist/tools/get-whale-trades.js.map +1 -1
- package/dist/tools/large-trade-counterparties.d.ts +1 -1
- package/dist/tools/large-trade-counterparties.d.ts.map +1 -1
- package/dist/tools/large-trade-counterparties.js +8 -8
- package/dist/tools/large-trade-counterparties.js.map +1 -1
- package/dist/tools/market-reads.d.ts +1 -1
- package/dist/tools/market-reads.d.ts.map +1 -1
- package/dist/tools/market-reads.js +8 -8
- package/dist/tools/market-reads.js.map +1 -1
- package/dist/tools/pick-of-the-day.d.ts +1 -1
- package/dist/tools/pick-of-the-day.d.ts.map +1 -1
- package/dist/tools/pick-of-the-day.js +15 -13
- package/dist/tools/pick-of-the-day.js.map +1 -1
- package/dist/tools/read-parity.d.ts +1 -1
- package/dist/tools/read-parity.d.ts.map +1 -1
- package/dist/tools/read-parity.js +80 -80
- package/dist/tools/read-parity.js.map +1 -1
- package/dist/tools/search-markets.d.ts +1 -1
- package/dist/tools/search-markets.d.ts.map +1 -1
- package/dist/tools/search-markets.js +4 -4
- package/dist/tools/search-markets.js.map +1 -1
- package/dist/tools/trader-reads.d.ts +1 -1
- package/dist/tools/trader-reads.d.ts.map +1 -1
- package/dist/tools/trader-reads.js +12 -12
- package/dist/tools/trader-reads.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -37,6 +37,17 @@ as are the official Rust client ([`0xinsider-rust`](https://github.com/0xinsider
|
|
|
37
37
|
crate `oxinsider`) and the Node.js and TypeScript client
|
|
38
38
|
([`0xinsider-node`](https://github.com/0xinsider/0xinsider-node), `@0xinsider/sdk`).
|
|
39
39
|
|
|
40
|
+
## Pick of the Day
|
|
41
|
+
|
|
42
|
+
`get_pick_of_the_day` and its archive use the account's published access. Pro opens
|
|
43
|
+
five selections in total: the designated free selection plus the first four other
|
|
44
|
+
selections in publication order. Max opens every available daily selection, up to
|
|
45
|
+
twenty. Use each stable `pick_id` and preserve the returned order.
|
|
46
|
+
|
|
47
|
+
For an automated entry from a current pick, require a matching, unexpired returned
|
|
48
|
+
authorization and honor its maximum price and any stricter local limits. Quote a
|
|
49
|
+
current executable book for the actual stake. An authorization does not guarantee a fill.
|
|
50
|
+
|
|
40
51
|
## Upgrade to 3.5.0
|
|
41
52
|
|
|
42
53
|
Version 3.5 adds ten tools for `/api/v1` reads that had none:
|
|
@@ -249,6 +260,8 @@ Any client that supports stdio transport:
|
|
|
249
260
|
|
|
250
261
|
Set `OXINSIDER_API_KEY` in the process environment before starting the stdio server. Do not pass the key as a command-line argument.
|
|
251
262
|
|
|
263
|
+
The stdio server answers each client in the protocol revision it opens with: the `2026-07-28` revision, or, as before, an `initialize` handshake at any revision from `2024-10-07` through `2025-11-25`.
|
|
264
|
+
|
|
252
265
|
Need the command list? Run:
|
|
253
266
|
|
|
254
267
|
```bash
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const API_BASE_URL = "https://api.0xinsider.com";
|
|
2
2
|
export declare const SITE_URL = "https://0xinsider.com";
|
|
3
3
|
export declare const DEVELOPERS_URL = "https://0xinsider.com/developers";
|
|
4
|
-
export declare const VERSION = "3.
|
|
4
|
+
export declare const VERSION = "3.6.1";
|
|
5
5
|
export declare const PACKAGE_NAME = "@0xinsider/mcp";
|
|
6
6
|
export declare const SERVER_NAME = "0xinsider";
|
|
7
7
|
export declare const API_KEY_ENV_VAR = "OXINSIDER_API_KEY";
|
package/dist/constants.js
CHANGED
|
@@ -14,7 +14,7 @@ export const DEVELOPERS_URL = `${SITE_URL}/developers`;
|
|
|
14
14
|
// flow runs `cd mcp && npm ci` from a clean checkout, where `web/node_modules` need not
|
|
15
15
|
// exist.
|
|
16
16
|
// generated-package-version:start
|
|
17
|
-
export const VERSION = "3.
|
|
17
|
+
export const VERSION = "3.6.1";
|
|
18
18
|
// generated-package-version:end
|
|
19
19
|
export const PACKAGE_NAME = "@0xinsider/mcp";
|
|
20
20
|
export const SERVER_NAME = "0xinsider";
|
package/dist/prompts/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAGzD,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAoHvD"}
|
package/dist/prompts/index.js
CHANGED
|
@@ -3,9 +3,9 @@ export function registerPrompts(server) {
|
|
|
3
3
|
server.registerPrompt("analyze_trader", {
|
|
4
4
|
title: "Analyze Trader",
|
|
5
5
|
description: "Deep analysis of a prediction market trader — performance, strategy, risk profile, and actionable insights",
|
|
6
|
-
argsSchema: {
|
|
6
|
+
argsSchema: z.object({
|
|
7
7
|
address: z.string().describe("Ethereum wallet address (0x...) or trader username"),
|
|
8
|
-
},
|
|
8
|
+
}),
|
|
9
9
|
}, ({ address }) => ({
|
|
10
10
|
messages: [{
|
|
11
11
|
role: "user",
|
|
@@ -26,9 +26,9 @@ Provide:
|
|
|
26
26
|
server.registerPrompt("market_report", {
|
|
27
27
|
title: "Market Report",
|
|
28
28
|
description: "Sharp money flow report for a prediction market — who's buying, who's selling, and what it means",
|
|
29
|
-
argsSchema: {
|
|
29
|
+
argsSchema: z.object({
|
|
30
30
|
query: z.string().describe("Market name or topic to search for"),
|
|
31
|
-
},
|
|
31
|
+
}),
|
|
32
32
|
}, ({ query }) => ({
|
|
33
33
|
messages: [{
|
|
34
34
|
role: "user",
|
|
@@ -87,12 +87,12 @@ Present findings as:
|
|
|
87
87
|
server.registerPrompt("market_review", {
|
|
88
88
|
title: "Market Review",
|
|
89
89
|
description: marketReviewDescription,
|
|
90
|
-
argsSchema: marketReviewArgs,
|
|
90
|
+
argsSchema: z.object(marketReviewArgs),
|
|
91
91
|
}, marketReview);
|
|
92
92
|
server.registerPrompt("trading_signals", {
|
|
93
93
|
title: "Market Review (deprecated alias)",
|
|
94
94
|
description: `Deprecated alias of market_review (#16311), kept live. ${marketReviewDescription}`,
|
|
95
|
-
argsSchema: marketReviewArgs,
|
|
95
|
+
argsSchema: z.object(marketReviewArgs),
|
|
96
96
|
}, marketReview);
|
|
97
97
|
}
|
|
98
98
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,UAAU,eAAe,CAAC,MAAiB;IAC/C,MAAM,CAAC,cAAc,CACnB,gBAAgB,EAChB;QACE,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,4GAA4G;QACzH,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,UAAU,eAAe,CAAC,MAAiB;IAC/C,MAAM,CAAC,cAAc,CACnB,gBAAgB,EAChB;QACE,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,4GAA4G;QACzH,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;YACnB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oDAAoD,CAAC;SACnF,CAAC;KACH,EACD,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;QAChB,QAAQ,EAAE,CAAC;gBACT,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE;oBACP,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,sDAAsD,OAAO;;;;;;;;8FAQiB;iBACrF;aACF,CAAC;KACH,CAAC,CACH,CAAC;IAEF,MAAM,CAAC,cAAc,CACnB,eAAe,EACf;QACE,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,kGAAkG;QAC/G,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;YACnB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;SACjE,CAAC;KACH,EACD,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;QACd,QAAQ,EAAE,CAAC;gBACT,IAAI,EAAE,MAAM;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K,EAAE,eAAe;QACtB,WAAW,EAAE,uBAAuB;QACpC,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC;KACvC,EACD,YAAY,CACb,CAAC;IAEF,MAAM,CAAC,cAAc,CACnB,iBAAiB,EACjB;QACE,KAAK,EAAE,kCAAkC;QACzC,WAAW,EAAE,0DAA0D,uBAAuB,EAAE;QAChG,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC;KACvC,EACD,YAAY,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { McpServer } from "@modelcontextprotocol/
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/server";
|
|
2
2
|
import { ApiClient } from "../client.js";
|
|
3
3
|
export declare function registerResources(server: McpServer, client: ApiClient): void;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EACL,SAAS,EAIV,MAAM,cAAc,CAAC;AAmBtB,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAmL5E"}
|
package/dist/resources/index.js
CHANGED
|
@@ -16,8 +16,8 @@ export function registerResources(server, client) {
|
|
|
16
16
|
server.registerResource("api-docs", "oxinsider://docs/api", {
|
|
17
17
|
description: "Complete 0xinsider API reference — endpoints, authentication, rate limits, response format",
|
|
18
18
|
mimeType: "text/markdown",
|
|
19
|
-
}, async (_uri,
|
|
20
|
-
const signal = composeSignals(DEFAULT_REQUEST_TIMEOUT_MS,
|
|
19
|
+
}, async (_uri, ctx) => {
|
|
20
|
+
const signal = composeSignals(DEFAULT_REQUEST_TIMEOUT_MS, ctx.mcpReq.signal);
|
|
21
21
|
let response;
|
|
22
22
|
try {
|
|
23
23
|
response = await fetch(`${SITE_URL}/llms-full.txt`, signal === undefined ? {} : { signal });
|
|
@@ -53,7 +53,7 @@ export function registerResources(server, client) {
|
|
|
53
53
|
{
|
|
54
54
|
uri: "oxinsider://docs/api",
|
|
55
55
|
mimeType: "text/plain",
|
|
56
|
-
text: documentationReadError(error, signal,
|
|
56
|
+
text: documentationReadError(error, signal, ctx.mcpReq.signal, response?.status),
|
|
57
57
|
},
|
|
58
58
|
],
|
|
59
59
|
};
|
|
@@ -63,8 +63,8 @@ export function registerResources(server, client) {
|
|
|
63
63
|
server.registerResource("agent-instructions", "oxinsider://docs/agents", {
|
|
64
64
|
description: "Decision tree and best practices for AI agents using the 0xinsider API",
|
|
65
65
|
mimeType: "text/markdown",
|
|
66
|
-
}, async (_uri,
|
|
67
|
-
const signal = composeSignals(DEFAULT_REQUEST_TIMEOUT_MS,
|
|
66
|
+
}, async (_uri, ctx) => {
|
|
67
|
+
const signal = composeSignals(DEFAULT_REQUEST_TIMEOUT_MS, ctx.mcpReq.signal);
|
|
68
68
|
let response;
|
|
69
69
|
try {
|
|
70
70
|
response = await fetch(`${SITE_URL}/agents.md`, signal === undefined ? {} : { signal });
|
|
@@ -100,7 +100,7 @@ export function registerResources(server, client) {
|
|
|
100
100
|
{
|
|
101
101
|
uri: "oxinsider://docs/agents",
|
|
102
102
|
mimeType: "text/plain",
|
|
103
|
-
text: documentationReadError(error, signal,
|
|
103
|
+
text: documentationReadError(error, signal, ctx.mcpReq.signal, response?.status),
|
|
104
104
|
},
|
|
105
105
|
],
|
|
106
106
|
};
|
|
@@ -110,10 +110,10 @@ export function registerResources(server, client) {
|
|
|
110
110
|
server.registerResource("leaderboard", "oxinsider://data/leaderboard", {
|
|
111
111
|
description: "Current top 20 prediction market traders by composite score (grades S/A/B)",
|
|
112
112
|
mimeType: "application/json",
|
|
113
|
-
}, async (_uri,
|
|
113
|
+
}, async (_uri, ctx) => {
|
|
114
114
|
try {
|
|
115
115
|
const response = await client.request("/api/v1/leaderboard", { limit: 20 }, undefined, {
|
|
116
|
-
signal:
|
|
116
|
+
signal: ctx.mcpReq.signal,
|
|
117
117
|
});
|
|
118
118
|
return {
|
|
119
119
|
contents: [
|
|
@@ -142,10 +142,10 @@ export function registerResources(server, client) {
|
|
|
142
142
|
server.registerResource("whale-trades", "oxinsider://data/whale-trades", {
|
|
143
143
|
description: "Latest 20 whale trades (>$5000) from graded prediction market traders",
|
|
144
144
|
mimeType: "application/json",
|
|
145
|
-
}, async (_uri,
|
|
145
|
+
}, async (_uri, ctx) => {
|
|
146
146
|
try {
|
|
147
147
|
const response = await client.request("/api/v1/whale-trades", { limit: 20 }, undefined, {
|
|
148
|
-
signal:
|
|
148
|
+
signal: ctx.mcpReq.signal,
|
|
149
149
|
});
|
|
150
150
|
return {
|
|
151
151
|
contents: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAEL,QAAQ,EACR,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,SAAS,sBAAsB,CAC7B,KAAc,EACd,MAA+B,EAC/B,MAAmB,EACnB,MAA0B;IAE1B,MAAM,UAAU,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;IAC3E,IAAI,oBAAoB,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;QACzC,OAAO,4EAA4E,UAAU,GAAG,CAAC;IACnG,CAAC;IACD,IAAI,M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F,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;IAEF,+BAA+B;IAC/B,MAAM,CAAC,gBAAgB,CACrB,cAAc,EACd,+BAA+B,EAC/B;QACE,WAAW,EAAE,uEAAuE;QACpF,QAAQ,EAAE,kBAAkB;KAC7B,EACD,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAClB,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE;gBACtF,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM;aAC1B,CAAC,CAAC;YACH,OAAO;gBACL,QAAQ,EAAE;oBACR;wBACE,GAAG,EAAE,+BAA+B;wBACpC,QAAQ,EAAE,kBAAkB;wBAC5B,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;qBAC7C;iBACF;aACF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,OAAO,GAAG,KAAK,YAAY,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;YACtF,OAAO;gBACL,QAAQ,EAAE;oBACR;wBACE,GAAG,EAAE,+BAA+B;wBACpC,QAAQ,EAAE,YAAY;wBACtB,IAAI,EAAE,OAAO;qBACd;iBACF;aACF,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
|
package/dist/sdk/client.d.ts
CHANGED
|
@@ -1604,7 +1604,7 @@ export declare class OxinsiderApiClient {
|
|
|
1604
1604
|
data: OperationData["getMarketHolders"];
|
|
1605
1605
|
has_more: boolean;
|
|
1606
1606
|
next_cursor?: string;
|
|
1607
|
-
total
|
|
1607
|
+
total: number;
|
|
1608
1608
|
market: import("./schema.js").MarketHoldersMarket;
|
|
1609
1609
|
scan: import("./schema.js").MarketHoldersScan;
|
|
1610
1610
|
totals: import("./schema.js").MarketHoldersTotals;
|
package/dist/sdk/schema.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export type ApiErrorBody = {
|
|
|
87
87
|
message: string;
|
|
88
88
|
doc_url?: string;
|
|
89
89
|
param?: string;
|
|
90
|
-
/** The recommended next retry instant (RFC3339). Present on every retryable error (reason=pick_not_released, code=rate_limited including reason=monthly_quota_exceeded, code=rate_limit_unavailable, reason=read_model_warming) and omitted otherwise. Always in the future. For pick_not_released
|
|
90
|
+
/** The recommended next retry instant (RFC3339). Present on every retryable error (reason=pick_not_released, code=rate_limited including reason=monthly_quota_exceeded, code=rate_limit_unavailable, reason=read_model_warming) and omitted otherwise. Always in the future. For pick_not_released, the recommendation is advisory and can change before a pick becomes available. Schedule the next request from the returned value instead of inferring a release schedule or polling. Prefer Retry-After for the duration because it is immune to client clock skew. */
|
|
91
91
|
retry_at?: string;
|
|
92
92
|
freshness?: FreshnessFailure;
|
|
93
93
|
/** ADDITIVE (#7209). The specific, actionable cause behind `code`, when there is one more specific than the code itself. `code` keeps its published values, so existing clients are unaffected; new clients branch on `reason`. Omitted when the code already says everything we know. pick_not_released: no Pick of the Day is published for the current product day; schedule one request against retry_at instead of polling. unknown_endpoint: the PATH is not a route on this API -- read GET /api/v1, do not retry. trader_not_tracked: the wallet is real and the URL is right, but the trader is not on the warm sync tier (the wallets we sync most often) -- stop asking for this wallet. cursor_expired: pagination went stale mid-walk -- re-request the first page and continue. read_model_warming: the requested endpoint cannot serve its read model yet; exact causes are endpoint-specific and can include a cold or contended refresh or a dependency that prevented refresh. database_unavailable: the API's database or its connection pool is temporarily unreachable (a connection-class failure, not a query fault); code stays rate_limit_unavailable, nothing is rate-limited, retry after Retry-After / retry_at. idempotency_in_progress: retain the exact Idempotency-Key and request body, then retry shortly. webhook_delivery_in_progress: retry the URL or signing-secret configuration change after the destination's active request completes. request_accounting_unavailable: accounting capacity is unavailable before the handler executes; retry after Retry-After / retry_at. sandbox_api_key: the credential is a sandbox key (oxi_sk_test_) from POST /api/v1/agents/register, which only the sandbox server accepts -- call the sandbox base URL with it, or get a live key or OAuth access token; do not retry it here. api_key_in_query: the key was sent as a ?token= query parameter, which no route reads because URLs land in logs and history; the key itself was not checked -- resend it as Authorization: Bearer. subscription_inactive: the key is valid but the account's Pro subscription has lapsed (402 subscription_required); permanent until a person reactivates at https://0xinsider.com/billing, which the message names -- stop retrying on a schedule and surface the link. The key owner is emailed once per lapse. monthly_quota_exceeded: the account has used the requests its plan includes for the UTC calendar month (429 rate_limited); retry_at and Retry-After name the first of next month, the only retry that can succeed, and the message names https://0xinsider.com/developers, where pay as you go for requests over the quota is turned on. The X-Monthly-Quota-Limit, X-Monthly-Quota-Remaining and X-Monthly-Quota-Reset headers on every authenticated response say how close the account is. invalid_query, invalid_path, invalid_body (400 bad_request, #16146): a query parameter, a path segment or the JSON body did not parse or does not fit the route's schema, so no handler ran; param names the field when the parser named one (a query key, a path segment, a JSON path such as traders[0], or body); fix the request, never retry it as sent. unsupported_media_type (415 bad_request, param content-type): send the body with Content-Type: application/json. payload_too_large (413 bad_request, param body): the body is over 1048576 bytes. method_not_allowed (405 bad_request): the path is a route but not with this method; the Allow header names the methods it serves. ip_rate_limited (429 rate_limited, #16380): the per-address budget every caller behind one IP shares, counted before authentication, is spent; not the key's own window, and the RateLimit-* headers describe that bucket. ip_throttled (429 rate_limited): the address is in a cooldown after sustained over-limit traffic; Retry-After is minutes to days, and a request before it does not shorten the cooldown. max_plan_required (403 forbidden, #23085): the key is valid and its account is on Pro, but the route is part of Max (GET /api/v1/edge-hunter); every Pro route keeps working with the same key, so do not disable it. The message names https://0xinsider.com/pricing, where the account upgrades; a retry never clears it. endpoint_retired (410): this legacy sports endpoint no longer serves data. Migrate to GET /api/v1/edge-hunter; retrying the retired path cannot succeed. */
|
|
@@ -1933,7 +1933,7 @@ export type PickHolder = {
|
|
|
1933
1933
|
/** The wallet's X handle from its Polymarket profile, normalized to 1-15 characters of [A-Za-z0-9_] with no `@`. Link it as `https://x.com/<handle>`. Stamped at serve time from the wallet's current trader record, never frozen with the pick. The five badge fields are present together, and only for a wallet that carries at least one badge; all absent means no badge, or a body cached before the fields shipped. */
|
|
1934
1934
|
x_username?: string | null;
|
|
1935
1935
|
};
|
|
1936
|
-
/** Recorded lead wallet facts
|
|
1936
|
+
/** Recorded lead wallet facts on a full response when available. Position and category history are frozen at publication; they are not live balances or pick win probabilities. */
|
|
1937
1937
|
export type PickLeadBacker = {
|
|
1938
1938
|
/** Lead trader wallet address. */
|
|
1939
1939
|
address: string;
|
|
@@ -1988,7 +1988,7 @@ export type PickOfTheDay = {
|
|
|
1988
1988
|
display_category?: string;
|
|
1989
1989
|
/** Provider platform. Always polymarket. */
|
|
1990
1990
|
platform?: "polymarket";
|
|
1991
|
-
/** The pick's stored release instant.
|
|
1991
|
+
/** The pick's stored release instant. Use the returned timestamp; published_at records when publication occurred. */
|
|
1992
1992
|
release_at?: string;
|
|
1993
1993
|
/** True only before the pick's stored release instant (a pre-release embargo flag); effectively always false on a served, already-published pick. To detect that the backed game has kicked off, use `game_started`. */
|
|
1994
1994
|
is_locked?: boolean;
|
|
@@ -2058,7 +2058,7 @@ export type PickOfTheDay = {
|
|
|
2058
2058
|
sharp_pct?: number;
|
|
2059
2059
|
/** Recorded market-implied probability as a 0..1 fraction when available. */
|
|
2060
2060
|
market_pct?: number;
|
|
2061
|
-
/** Optional
|
|
2061
|
+
/** Optional recorded specialist facts on a full response. These describe the trader, not the pick's win probability. Omitted when no recorded specialist is available. */
|
|
2062
2062
|
qualifying_expert?: {
|
|
2063
2063
|
/** Trader wallet address. */
|
|
2064
2064
|
address: string;
|
|
@@ -2081,15 +2081,15 @@ export type PickOfTheDay = {
|
|
|
2081
2081
|
};
|
|
2082
2082
|
/** Public V1 S/A wallet count on the backed side, equal to sharp_wallet_count. */
|
|
2083
2083
|
traders?: number;
|
|
2084
|
-
/** Recorded backed-side position value in USD when available.
|
|
2084
|
+
/** Recorded aggregate backed-side position value in USD when available, not a live balance or entry cost. The display_holders roster can include additional wallets; use the returned aggregate rather than summing that roster. */
|
|
2085
2085
|
backed_sharp_usd?: number;
|
|
2086
|
-
/** Bounded S/A holder display projection
|
|
2086
|
+
/** Bounded S/A holder display projection from the recorded snapshot. Historical rows retain their recorded display shape. */
|
|
2087
2087
|
holders?: PickHolder[];
|
|
2088
|
-
/** Optional
|
|
2088
|
+
/** Optional recorded holder roster in display order, with lead_backer first when present. Preserve the returned order. The roster can include wallets outside the recorded count and aggregate fields; do not derive holder_count, wallet counts or backed_sharp_usd from its length or a sum. Position values are gross holdings on the backed outcome and can coexist with holdings on the other outcome. Historical rows retain their recorded display shape. */
|
|
2089
2089
|
display_holders?: PickHolder[];
|
|
2090
2090
|
/** S/A holder count for the public V1 compatibility projection. display_holders can include additional grades. */
|
|
2091
2091
|
holder_count?: number;
|
|
2092
|
-
/**
|
|
2092
|
+
/** Display-ready explanation of the recorded pick. Render the returned text rather than reconstructing it from holder counts or grades. */
|
|
2093
2093
|
thesis?: string;
|
|
2094
2094
|
/** Canonical web market URL. */
|
|
2095
2095
|
market_url?: string;
|
|
@@ -2163,11 +2163,11 @@ export type PickOfTheDayArchiveEntry = {
|
|
|
2163
2163
|
* @deprecated
|
|
2164
2164
|
*/
|
|
2165
2165
|
pick_rank: number;
|
|
2166
|
-
/** When this selection was published, as RFC3339 UTC. Use this instant for publication feeds and timelines; pick_date is the America/New_York product day, not a publication timestamp.
|
|
2166
|
+
/** When this selection was published, as RFC3339 UTC. Use this instant for publication feeds and timelines; pick_date is the America/New_York product day, not a publication timestamp. Absent only for historical rows whose publication instant is unknown. */
|
|
2167
2167
|
published_at?: string;
|
|
2168
2168
|
/** Human-readable matchup (e.g. "Portugal vs. Uzbekistan"). */
|
|
2169
2169
|
matchup?: string;
|
|
2170
|
-
/** Frozen canonical
|
|
2170
|
+
/** Frozen canonical sport bucket (e.g. "Basketball", "MMA", or "Soccer"). Existing semantics are unchanged; presentation consumers should prefer display_category when present. */
|
|
2171
2171
|
category?: string;
|
|
2172
2172
|
/** Frozen public presentation category. Tennis uses the provider-verified ATP or WTA tour, including Wimbledon and doubles; unknown tours retain Tennis. Every men's and women's cricket competition uses Cricket. Other sports use the curated league, esports title or soccer competition label, then the provider series name without its season year, then category when no competition is known. The canonical category and measured cohort are unchanged: an esports title still uses the pooled Esports category. Optional for mixed-version client compatibility. */
|
|
2173
2173
|
display_category?: string;
|
|
@@ -2175,7 +2175,7 @@ export type PickOfTheDayArchiveEntry = {
|
|
|
2175
2175
|
image_url?: string;
|
|
2176
2176
|
/** The backed side's outcome label. Omitted for a still-pending pick when the request is not from an authenticated Pro key. */
|
|
2177
2177
|
pick_outcome_label?: string;
|
|
2178
|
-
/**
|
|
2178
|
+
/** Recorded top grade on the backed side in the public V1 compatibility projection. Omitted when unavailable. Historical values remain recorded snapshots. */
|
|
2179
2179
|
top_grade?: string;
|
|
2180
2180
|
/** Settlement outcome of the backed side; 'pending' until the market resolves. */
|
|
2181
2181
|
outcome: "pending" | "win" | "loss" | "void";
|
|
@@ -2387,7 +2387,7 @@ export type PickOfTheDayLedgerOpenedEntry = {
|
|
|
2387
2387
|
outcome: "win" | "loss" | "void";
|
|
2388
2388
|
/** Frozen matchup, for a reader. */
|
|
2389
2389
|
matchup: string;
|
|
2390
|
-
/** Frozen canonical sport bucket
|
|
2390
|
+
/** Frozen canonical sport bucket (for example Basketball or MMA), not the exact public league identity; the archive owns that. */
|
|
2391
2391
|
category: string;
|
|
2392
2392
|
/** The pick's public page. */
|
|
2393
2393
|
permalink: string;
|
|
@@ -2453,7 +2453,7 @@ export type PickOfTheDayLedgerUncommittedEntry = {
|
|
|
2453
2453
|
outcome: "pending" | "win" | "loss" | "void";
|
|
2454
2454
|
/** Frozen matchup, for a reader. */
|
|
2455
2455
|
matchup?: string;
|
|
2456
|
-
/** Frozen canonical sport bucket
|
|
2456
|
+
/** Frozen canonical sport bucket (for example Basketball or MMA), not the exact public league identity; the archive owns that. */
|
|
2457
2457
|
category?: string;
|
|
2458
2458
|
/** When outcome was LAST written to a settled value, or null when that instant is unknown. It moves with a corrected market re-mapping an already-settled pick, while commitment_hash stays untouched -- which is how a mirror that keeps history sees a correction. */
|
|
2459
2459
|
resolved_at: string | null;
|
|
@@ -2702,11 +2702,11 @@ export type PositionTimelineEvent = {
|
|
|
2702
2702
|
/** Cumulative buy-weighted average of stored fills for this outcome, including older pages; not provider current-position avgPrice. Sells do not change this value. 0 when no stored buys have occurred yet. */
|
|
2703
2703
|
running_avg_price: number;
|
|
2704
2704
|
};
|
|
2705
|
-
/** Returned entry permission bound to the named market, token and outcome.
|
|
2705
|
+
/** Returned entry permission bound to the named market, token and outcome. Honor the immutable max_entry_price and expires_at, and quote a current executable book for the actual stake. The submitted order price must remain within the returned limit; fills may be lower. Fees are separate, and this grant does not guarantee liquidity, execution or positive expected value. */
|
|
2706
2706
|
export type PotdEntryAuthorization = {
|
|
2707
2707
|
version: 1;
|
|
2708
2708
|
authorization_id: string;
|
|
2709
|
-
/**
|
|
2709
|
+
/** Identifier for the policy recorded with this authorization. It does not replace the returned max_entry_price or expires_at. Existing grants retain their recorded values. */
|
|
2710
2710
|
policy_version: 7 | 8;
|
|
2711
2711
|
condition_id: string;
|
|
2712
2712
|
token_id: string;
|
|
@@ -2717,12 +2717,12 @@ export type PotdEntryAuthorization = {
|
|
|
2717
2717
|
canonical_event_id: string;
|
|
2718
2718
|
/** Maximum authorized order price as an exact decimal string, excluding fees. Quote a current executable book for the actual stake and keep the submitted order price at or below this bound. Actual fills may be lower; this limit does not guarantee a fill or define fair probability. */
|
|
2719
2719
|
max_entry_price: string;
|
|
2720
|
-
/** Selected-token best ask
|
|
2720
|
+
/** Selected-token best ask from the recorded reference book at issuance. This is a reference quote, not the authorized order-price limit; use max_entry_price for that limit. */
|
|
2721
2721
|
reference_best_ask: string;
|
|
2722
2722
|
reference_book_hash: string;
|
|
2723
2723
|
reference_book_at: string;
|
|
2724
2724
|
issued_at: string;
|
|
2725
|
-
/**
|
|
2725
|
+
/** Authorization expiry timestamp. Existing grants do not extend; an expired authorization cannot authorize a new automated entry. */
|
|
2726
2726
|
expires_at: string;
|
|
2727
2727
|
};
|
|
2728
2728
|
/** One PUBLISHED same-day pick whose holder proof is not readable yet: its stable slot rank, the release and kickoff instants, and the instant before which a retry cannot succeed. Every item in `picks` carries its full required shape, so a pick that cannot meet it is listed here instead of being served with missing fields or a synthetic zero. */
|
|
@@ -2885,7 +2885,7 @@ export type ScheduledPickSlot = {
|
|
|
2885
2885
|
* @deprecated
|
|
2886
2886
|
*/
|
|
2887
2887
|
pick_rank: number;
|
|
2888
|
-
/** The slot's stored release instant.
|
|
2888
|
+
/** The slot's stored release instant. Use the returned timestamp; actual publication may occur later. */
|
|
2889
2889
|
release_at: string;
|
|
2890
2890
|
/** The backed game's current kickoff instant. */
|
|
2891
2891
|
kickoff: string;
|
|
@@ -5414,7 +5414,7 @@ export interface OperationResponse {
|
|
|
5414
5414
|
/** Absent on the last page. */
|
|
5415
5415
|
next_cursor?: string;
|
|
5416
5416
|
/** Holders matching the request's `outcome` and `min_grade` filters across every page. */
|
|
5417
|
-
total
|
|
5417
|
+
total: number;
|
|
5418
5418
|
market: MarketHoldersMarket;
|
|
5419
5419
|
scan: MarketHoldersScan;
|
|
5420
5420
|
totals: MarketHoldersTotals;
|