@coinrithm/mcp-trading 0.7.18 → 0.7.20

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/dist/tools.d.ts CHANGED
@@ -27,4 +27,48 @@ export declare function compactPublicCryptoMovers(data: unknown): unknown;
27
27
  * ~466KB to ~48KB.
28
28
  */
29
29
  export declare function compactPublicPmDisagreements(data: unknown): unknown;
30
+ /**
31
+ * Evenly spaced subset of a time series that always keeps the first and the
32
+ * last point. Values are never rewritten or interpolated.
33
+ */
34
+ export declare function samplePoints(points: unknown[], max: number): unknown[];
35
+ /** Price history for one outcome, with the point series bounded to maxPoints. */
36
+ export declare function compactPublicPmPriceHistory(data: unknown, maxPoints: number): unknown;
37
+ /** Order book with each side cut to its best `depth` levels as served. */
38
+ export declare function compactPublicPmOrderBook(data: unknown, depth: number): unknown;
39
+ /** Resolved archive and surprise pages: rows reduced to settled summaries. */
40
+ export declare function compactPublicPmSettled(data: unknown): unknown;
41
+ /** Expiring page: each row is a full event plus expiresInMs. */
42
+ export declare function compactPublicPmExpiring(data: unknown): unknown;
43
+ /**
44
+ * Strike ladders without per-contract venue ids, parser details and URLs.
45
+ * detail=full returns the untouched record (externalMarketId included).
46
+ * Verified live 2026-10-16: bitcoin, 10 ladders, 174 contracts went from
47
+ * about 92 KB to about 40 KB.
48
+ */
49
+ export declare function compactInstrumentMarkets(data: unknown): unknown;
50
+ export declare const TRADFI_ASSET_CLASSES: readonly ["equity", "etf", "metal", "commodity", "fx"];
51
+ /** TradFi catalog filtered by asset class and paged on the MCP side. */
52
+ export declare function compactTradfiCatalog(data: unknown, opts: {
53
+ assetClass?: string;
54
+ limit: number;
55
+ offset: number;
56
+ }): unknown;
57
+ /** TradFi detail with its 15-minute history bounded to maxPoints. */
58
+ export declare function compactTradfiReference(data: unknown, maxPoints: number): unknown;
59
+ export declare const COIN_CANDLE_RANGES: readonly ["1H", "1D", "1W", "1M", "3M", "1Y"];
60
+ /**
61
+ * Compact coin profile from GET /api/coins/{slug}: price, change, market cap,
62
+ * volume and the live-price as-of. The profile, not /price, because its
63
+ * priceUpdatedAt is the live-price write time (probe 2026-10-16: /price
64
+ * reported dead-pair coins as 0.6 h old while the profile said weeks).
65
+ */
66
+ export declare function compactCryptoPrice(data: unknown, fiat: string): unknown;
67
+ /**
68
+ * Bars from GET /api/coins/{slug}/candles, merged into at most maxPoints
69
+ * consecutive groups (open of the first bar, high and low across the group,
70
+ * close of the last). `v` is dropped: it is a rolling 24h volume observed at
71
+ * each bar, not the volume traded in it, so it cannot be merged.
72
+ */
73
+ export declare function compactCoinCandles(data: unknown, maxPoints: number): unknown;
30
74
  export declare function registerTools(server: McpServer, client: CoinRithmClient): void;