@noya-ai/data-server-schemas 0.1.0
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/LICENSE +21 -0
- package/README.md +25 -0
- package/dist/alternative/schemas.cjs +44 -0
- package/dist/alternative/schemas.d.cts +2 -0
- package/dist/alternative/schemas.d.ts +2 -0
- package/dist/alternative/schemas.js +11 -0
- package/dist/batch/schemas.cjs +73 -0
- package/dist/batch/schemas.d.cts +2 -0
- package/dist/batch/schemas.d.ts +2 -0
- package/dist/batch/schemas.js +17 -0
- package/dist/chunk-BWY4ZL7E.js +142 -0
- package/dist/chunk-C3YNWX7W.js +256 -0
- package/dist/chunk-DKMPZFSH.js +29 -0
- package/dist/chunk-KLRIACSR.js +162 -0
- package/dist/chunk-MECUVGQT.js +203 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/chunk-PHNEQDUP.js +89 -0
- package/dist/chunk-ROAH5BN3.js +58 -0
- package/dist/chunk-VK45O334.js +129 -0
- package/dist/chunk-W5SLY2ZT.js +134 -0
- package/dist/chunk-ZP2HSALI.js +150 -0
- package/dist/chunk-ZTOGXNAW.js +198 -0
- package/dist/coingecko/schemas.cjs +177 -0
- package/dist/coingecko/schemas.d.cts +2 -0
- package/dist/coingecko/schemas.d.ts +2 -0
- package/dist/coingecko/schemas.js +43 -0
- package/dist/coinglass/schemas.cjs +213 -0
- package/dist/coinglass/schemas.d.cts +2 -0
- package/dist/coinglass/schemas.d.ts +2 -0
- package/dist/coinglass/schemas.js +63 -0
- package/dist/composite/schemas.cjs +144 -0
- package/dist/composite/schemas.d.cts +2 -0
- package/dist/composite/schemas.d.ts +2 -0
- package/dist/composite/schemas.js +23 -0
- package/dist/cryptonews/schemas.cjs +104 -0
- package/dist/cryptonews/schemas.d.cts +2 -0
- package/dist/cryptonews/schemas.d.ts +2 -0
- package/dist/cryptonews/schemas.js +23 -0
- package/dist/defillama/schemas.cjs +157 -0
- package/dist/defillama/schemas.d.cts +2 -0
- package/dist/defillama/schemas.d.ts +2 -0
- package/dist/defillama/schemas.js +37 -0
- package/dist/geckoterminal/schemas.cjs +149 -0
- package/dist/geckoterminal/schemas.d.cts +2 -0
- package/dist/geckoterminal/schemas.d.ts +2 -0
- package/dist/geckoterminal/schemas.js +33 -0
- package/dist/index.cjs +1359 -0
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +47 -0
- package/dist/kaito/schemas.cjs +218 -0
- package/dist/kaito/schemas.d.cts +2 -0
- package/dist/kaito/schemas.d.ts +2 -0
- package/dist/kaito/schemas.js +45 -0
- package/dist/moralis/schemas.cjs +165 -0
- package/dist/moralis/schemas.d.cts +2 -0
- package/dist/moralis/schemas.d.ts +2 -0
- package/dist/moralis/schemas.js +29 -0
- package/dist/noya/schemas.cjs +271 -0
- package/dist/noya/schemas.d.cts +2 -0
- package/dist/noya/schemas.d.ts +2 -0
- package/dist/noya/schemas.js +57 -0
- package/dist/schemas-6ZorQZBC.d.cts +435 -0
- package/dist/schemas-6ZorQZBC.d.ts +435 -0
- package/dist/schemas-BMeKj9pe.d.cts +832 -0
- package/dist/schemas-BMeKj9pe.d.ts +832 -0
- package/dist/schemas-BYLoGYNO.d.cts +52 -0
- package/dist/schemas-BYLoGYNO.d.ts +52 -0
- package/dist/schemas-Bbz-itbI.d.cts +387 -0
- package/dist/schemas-Bbz-itbI.d.ts +387 -0
- package/dist/schemas-CAn6VbI-.d.cts +240 -0
- package/dist/schemas-CAn6VbI-.d.ts +240 -0
- package/dist/schemas-CNeb4DA4.d.cts +432 -0
- package/dist/schemas-CNeb4DA4.d.ts +432 -0
- package/dist/schemas-Cu7LkQN1.d.cts +466 -0
- package/dist/schemas-Cu7LkQN1.d.ts +466 -0
- package/dist/schemas-D4yPHF06.d.cts +481 -0
- package/dist/schemas-D4yPHF06.d.ts +481 -0
- package/dist/schemas-Doa7hG7U.d.cts +630 -0
- package/dist/schemas-Doa7hG7U.d.ts +630 -0
- package/dist/schemas-TYWQmRZI.d.cts +519 -0
- package/dist/schemas-TYWQmRZI.d.ts +519 -0
- package/dist/schemas-hrS1Vfcr.d.cts +255 -0
- package/dist/schemas-hrS1Vfcr.d.ts +255 -0
- package/package.json +93 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ContractAddress,
|
|
3
|
+
OhlcvBody,
|
|
4
|
+
OhlcvCandle,
|
|
5
|
+
OhlcvResponse,
|
|
6
|
+
PriceAtDateBody,
|
|
7
|
+
PriceBody,
|
|
8
|
+
PriceHistoryBody,
|
|
9
|
+
PriceHistoryResponse,
|
|
10
|
+
PricePoint,
|
|
11
|
+
PriceResponse,
|
|
12
|
+
PriceSnapshot,
|
|
13
|
+
SearchBody,
|
|
14
|
+
SearchResponse,
|
|
15
|
+
SearchResult,
|
|
16
|
+
TokenInfo,
|
|
17
|
+
TokenInfoBody,
|
|
18
|
+
TokenPrice,
|
|
19
|
+
TrendingResponse,
|
|
20
|
+
TrendingToken
|
|
21
|
+
} from "../chunk-KLRIACSR.js";
|
|
22
|
+
import "../chunk-MLKGABMK.js";
|
|
23
|
+
export {
|
|
24
|
+
ContractAddress,
|
|
25
|
+
OhlcvBody,
|
|
26
|
+
OhlcvCandle,
|
|
27
|
+
OhlcvResponse,
|
|
28
|
+
PriceAtDateBody,
|
|
29
|
+
PriceBody,
|
|
30
|
+
PriceHistoryBody,
|
|
31
|
+
PriceHistoryResponse,
|
|
32
|
+
PricePoint,
|
|
33
|
+
PriceResponse,
|
|
34
|
+
PriceSnapshot,
|
|
35
|
+
SearchBody,
|
|
36
|
+
SearchResponse,
|
|
37
|
+
SearchResult,
|
|
38
|
+
TokenInfo,
|
|
39
|
+
TokenInfoBody,
|
|
40
|
+
TokenPrice,
|
|
41
|
+
TrendingResponse,
|
|
42
|
+
TrendingToken
|
|
43
|
+
};
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/coinglass/schemas.ts
|
|
21
|
+
var schemas_exports = {};
|
|
22
|
+
__export(schemas_exports, {
|
|
23
|
+
ExchangePairItem: () => ExchangePairItem,
|
|
24
|
+
ExchangePairsBody: () => ExchangePairsBody,
|
|
25
|
+
ExchangePairsResponse: () => ExchangePairsResponse,
|
|
26
|
+
FundingRateHistoryBody: () => FundingRateHistoryBody,
|
|
27
|
+
FundingRateItem: () => FundingRateItem,
|
|
28
|
+
FundingRatesBody: () => FundingRatesBody,
|
|
29
|
+
FundingRatesResponse: () => FundingRatesResponse,
|
|
30
|
+
LiquidationByExchangeItem: () => LiquidationByExchangeItem,
|
|
31
|
+
LiquidationHistoryBody: () => LiquidationHistoryBody,
|
|
32
|
+
LiquidationHistoryItem: () => LiquidationHistoryItem,
|
|
33
|
+
LiquidationHistoryResponse: () => LiquidationHistoryResponse,
|
|
34
|
+
LiquidationItem: () => LiquidationItem,
|
|
35
|
+
LiquidationsBody: () => LiquidationsBody,
|
|
36
|
+
LiquidationsByExchangeBody: () => LiquidationsByExchangeBody,
|
|
37
|
+
LiquidationsByExchangeResponse: () => LiquidationsByExchangeResponse,
|
|
38
|
+
LiquidationsResponse: () => LiquidationsResponse,
|
|
39
|
+
LongShortExchangeItem: () => LongShortExchangeItem,
|
|
40
|
+
LongShortRatioBody: () => LongShortRatioBody,
|
|
41
|
+
LongShortRatioHistoryBody: () => LongShortRatioHistoryBody,
|
|
42
|
+
LongShortRatioHistoryItem: () => LongShortRatioHistoryItem,
|
|
43
|
+
LongShortRatioHistoryResponse: () => LongShortRatioHistoryResponse,
|
|
44
|
+
LongShortRatioResponse: () => LongShortRatioResponse,
|
|
45
|
+
OhlcCandle: () => OhlcCandle,
|
|
46
|
+
OhlcCandleResponse: () => OhlcCandleResponse,
|
|
47
|
+
OpenInterestBody: () => OpenInterestBody,
|
|
48
|
+
OpenInterestHistoryBody: () => OpenInterestHistoryBody,
|
|
49
|
+
OpenInterestItem: () => OpenInterestItem,
|
|
50
|
+
OpenInterestResponse: () => OpenInterestResponse,
|
|
51
|
+
SupportedListResponse: () => SupportedListResponse
|
|
52
|
+
});
|
|
53
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
54
|
+
var import_zod = require("zod");
|
|
55
|
+
var symbol = import_zod.z.string().transform((s) => s.toUpperCase()).describe("Coin symbol, uppercased (e.g. `BTC`, `ETH`).");
|
|
56
|
+
var intervalEnum = import_zod.z.enum(["1m", "3m", "5m", "15m", "30m", "1h", "4h", "6h", "8h", "12h", "1d", "1w"]).default("1d").describe("Candle interval for the historical series.");
|
|
57
|
+
var rangeEnum = import_zod.z.enum(["4h", "6h", "8h", "12h", "1d", "1w"]).default("4h").describe("Aggregation window for the snapshot.");
|
|
58
|
+
var FundingRatesBody = import_zod.z.object({
|
|
59
|
+
symbol: symbol.optional()
|
|
60
|
+
});
|
|
61
|
+
var FundingRateItem = import_zod.z.object({
|
|
62
|
+
symbol: import_zod.z.string(),
|
|
63
|
+
exchange: import_zod.z.string(),
|
|
64
|
+
fundingRate: import_zod.z.number().nullable(),
|
|
65
|
+
fundingRateInterval: import_zod.z.number().nullable(),
|
|
66
|
+
nextFundingTime: import_zod.z.number().nullable()
|
|
67
|
+
});
|
|
68
|
+
var FundingRatesResponse = import_zod.z.array(FundingRateItem);
|
|
69
|
+
var OpenInterestBody = import_zod.z.object({ symbol });
|
|
70
|
+
var OpenInterestItem = import_zod.z.object({
|
|
71
|
+
exchange: import_zod.z.string(),
|
|
72
|
+
symbol: import_zod.z.string(),
|
|
73
|
+
openInterestUsd: import_zod.z.number().nullable(),
|
|
74
|
+
openInterestQuantity: import_zod.z.number().nullable(),
|
|
75
|
+
coinMarginUsd: import_zod.z.number().nullable(),
|
|
76
|
+
stablecoinMarginUsd: import_zod.z.number().nullable(),
|
|
77
|
+
changePercent5m: import_zod.z.number().nullable(),
|
|
78
|
+
changePercent15m: import_zod.z.number().nullable(),
|
|
79
|
+
changePercent30m: import_zod.z.number().nullable(),
|
|
80
|
+
changePercent1h: import_zod.z.number().nullable(),
|
|
81
|
+
changePercent4h: import_zod.z.number().nullable(),
|
|
82
|
+
changePercent24h: import_zod.z.number().nullable()
|
|
83
|
+
});
|
|
84
|
+
var OpenInterestResponse = import_zod.z.array(OpenInterestItem);
|
|
85
|
+
var LiquidationsBody = import_zod.z.object({
|
|
86
|
+
symbol: symbol.optional()
|
|
87
|
+
});
|
|
88
|
+
var LiquidationItem = import_zod.z.object({
|
|
89
|
+
symbol: import_zod.z.string(),
|
|
90
|
+
liquidationUsd24h: import_zod.z.number().nullable(),
|
|
91
|
+
longLiquidationUsd24h: import_zod.z.number().nullable(),
|
|
92
|
+
shortLiquidationUsd24h: import_zod.z.number().nullable(),
|
|
93
|
+
liquidationUsd12h: import_zod.z.number().nullable(),
|
|
94
|
+
longLiquidationUsd12h: import_zod.z.number().nullable(),
|
|
95
|
+
shortLiquidationUsd12h: import_zod.z.number().nullable(),
|
|
96
|
+
liquidationUsd4h: import_zod.z.number().nullable(),
|
|
97
|
+
longLiquidationUsd4h: import_zod.z.number().nullable(),
|
|
98
|
+
shortLiquidationUsd4h: import_zod.z.number().nullable(),
|
|
99
|
+
liquidationUsd1h: import_zod.z.number().nullable(),
|
|
100
|
+
longLiquidationUsd1h: import_zod.z.number().nullable(),
|
|
101
|
+
shortLiquidationUsd1h: import_zod.z.number().nullable()
|
|
102
|
+
});
|
|
103
|
+
var LiquidationsResponse = import_zod.z.array(LiquidationItem);
|
|
104
|
+
var LongShortRatioBody = import_zod.z.object({
|
|
105
|
+
symbol: symbol.default("BTC"),
|
|
106
|
+
range: rangeEnum
|
|
107
|
+
});
|
|
108
|
+
var LongShortExchangeItem = import_zod.z.object({
|
|
109
|
+
exchange: import_zod.z.string(),
|
|
110
|
+
buyRatio: import_zod.z.number().nullable(),
|
|
111
|
+
sellRatio: import_zod.z.number().nullable(),
|
|
112
|
+
buyVolUsd: import_zod.z.number().nullable(),
|
|
113
|
+
sellVolUsd: import_zod.z.number().nullable()
|
|
114
|
+
});
|
|
115
|
+
var LongShortRatioResponse = import_zod.z.object({
|
|
116
|
+
symbol: import_zod.z.string(),
|
|
117
|
+
buyRatio: import_zod.z.number().nullable(),
|
|
118
|
+
sellRatio: import_zod.z.number().nullable(),
|
|
119
|
+
buyVolUsd: import_zod.z.number().nullable(),
|
|
120
|
+
sellVolUsd: import_zod.z.number().nullable(),
|
|
121
|
+
exchanges: import_zod.z.array(LongShortExchangeItem)
|
|
122
|
+
});
|
|
123
|
+
var SupportedListResponse = import_zod.z.array(import_zod.z.string());
|
|
124
|
+
var ExchangePairsBody = import_zod.z.object({
|
|
125
|
+
symbol: symbol.optional(),
|
|
126
|
+
exchange: import_zod.z.string().optional().describe("Filter to a single exchange (e.g. `Binance`). Returns all when omitted.")
|
|
127
|
+
});
|
|
128
|
+
var ExchangePairItem = import_zod.z.object({
|
|
129
|
+
exchange: import_zod.z.string(),
|
|
130
|
+
instrumentId: import_zod.z.string(),
|
|
131
|
+
baseAsset: import_zod.z.string(),
|
|
132
|
+
quoteAsset: import_zod.z.string(),
|
|
133
|
+
settlementCurrency: import_zod.z.string(),
|
|
134
|
+
maxLeverage: import_zod.z.number().nullable(),
|
|
135
|
+
fundingInterval: import_zod.z.number().nullable()
|
|
136
|
+
});
|
|
137
|
+
var ExchangePairsResponse = import_zod.z.array(ExchangePairItem);
|
|
138
|
+
var LiquidationsByExchangeBody = import_zod.z.object({
|
|
139
|
+
symbol: symbol.default("BTC"),
|
|
140
|
+
range: rangeEnum
|
|
141
|
+
});
|
|
142
|
+
var LiquidationByExchangeItem = import_zod.z.object({
|
|
143
|
+
exchange: import_zod.z.string(),
|
|
144
|
+
liquidationUsd: import_zod.z.number().nullable(),
|
|
145
|
+
longLiquidationUsd: import_zod.z.number().nullable(),
|
|
146
|
+
shortLiquidationUsd: import_zod.z.number().nullable()
|
|
147
|
+
});
|
|
148
|
+
var LiquidationsByExchangeResponse = import_zod.z.array(LiquidationByExchangeItem);
|
|
149
|
+
var historyBody = import_zod.z.object({
|
|
150
|
+
exchange: import_zod.z.string().default("Binance").describe("Exchange to pull historical data from."),
|
|
151
|
+
symbol: symbol.default("BTCUSDT"),
|
|
152
|
+
interval: intervalEnum,
|
|
153
|
+
limit: import_zod.z.number().int().min(1).max(4500).default(100).describe("Number of historical points to return (1\u20134500)."),
|
|
154
|
+
startTime: import_zod.z.number().optional().describe("Unix epoch ms \u2014 start of the time window. Omit to use `limit` newest points."),
|
|
155
|
+
endTime: import_zod.z.number().optional().describe("Unix epoch ms \u2014 end of the time window.")
|
|
156
|
+
});
|
|
157
|
+
var FundingRateHistoryBody = historyBody;
|
|
158
|
+
var OpenInterestHistoryBody = historyBody;
|
|
159
|
+
var LiquidationHistoryBody = historyBody;
|
|
160
|
+
var LongShortRatioHistoryBody = historyBody;
|
|
161
|
+
var OhlcCandle = import_zod.z.object({
|
|
162
|
+
time: import_zod.z.number(),
|
|
163
|
+
open: import_zod.z.number(),
|
|
164
|
+
high: import_zod.z.number(),
|
|
165
|
+
low: import_zod.z.number(),
|
|
166
|
+
close: import_zod.z.number()
|
|
167
|
+
});
|
|
168
|
+
var OhlcCandleResponse = import_zod.z.array(OhlcCandle);
|
|
169
|
+
var LiquidationHistoryItem = import_zod.z.object({
|
|
170
|
+
time: import_zod.z.number(),
|
|
171
|
+
longLiquidationUsd: import_zod.z.number(),
|
|
172
|
+
shortLiquidationUsd: import_zod.z.number()
|
|
173
|
+
});
|
|
174
|
+
var LiquidationHistoryResponse = import_zod.z.array(LiquidationHistoryItem);
|
|
175
|
+
var LongShortRatioHistoryItem = import_zod.z.object({
|
|
176
|
+
time: import_zod.z.number(),
|
|
177
|
+
longPercent: import_zod.z.number(),
|
|
178
|
+
shortPercent: import_zod.z.number(),
|
|
179
|
+
longShortRatio: import_zod.z.number()
|
|
180
|
+
});
|
|
181
|
+
var LongShortRatioHistoryResponse = import_zod.z.array(LongShortRatioHistoryItem);
|
|
182
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
183
|
+
0 && (module.exports = {
|
|
184
|
+
ExchangePairItem,
|
|
185
|
+
ExchangePairsBody,
|
|
186
|
+
ExchangePairsResponse,
|
|
187
|
+
FundingRateHistoryBody,
|
|
188
|
+
FundingRateItem,
|
|
189
|
+
FundingRatesBody,
|
|
190
|
+
FundingRatesResponse,
|
|
191
|
+
LiquidationByExchangeItem,
|
|
192
|
+
LiquidationHistoryBody,
|
|
193
|
+
LiquidationHistoryItem,
|
|
194
|
+
LiquidationHistoryResponse,
|
|
195
|
+
LiquidationItem,
|
|
196
|
+
LiquidationsBody,
|
|
197
|
+
LiquidationsByExchangeBody,
|
|
198
|
+
LiquidationsByExchangeResponse,
|
|
199
|
+
LiquidationsResponse,
|
|
200
|
+
LongShortExchangeItem,
|
|
201
|
+
LongShortRatioBody,
|
|
202
|
+
LongShortRatioHistoryBody,
|
|
203
|
+
LongShortRatioHistoryItem,
|
|
204
|
+
LongShortRatioHistoryResponse,
|
|
205
|
+
LongShortRatioResponse,
|
|
206
|
+
OhlcCandle,
|
|
207
|
+
OhlcCandleResponse,
|
|
208
|
+
OpenInterestBody,
|
|
209
|
+
OpenInterestHistoryBody,
|
|
210
|
+
OpenInterestItem,
|
|
211
|
+
OpenInterestResponse,
|
|
212
|
+
SupportedListResponse
|
|
213
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import 'zod';
|
|
2
|
+
export { E as ExchangePairItem, a as ExchangePairsBody, b as ExchangePairsResponse, F as FundingRateHistoryBody, c as FundingRateItem, d as FundingRatesBody, e as FundingRatesResponse, L as LiquidationByExchangeItem, f as LiquidationHistoryBody, g as LiquidationHistoryItem, h as LiquidationHistoryResponse, i as LiquidationItem, j as LiquidationsBody, k as LiquidationsByExchangeBody, l as LiquidationsByExchangeResponse, m as LiquidationsResponse, n as LongShortExchangeItem, o as LongShortRatioBody, p as LongShortRatioHistoryBody, q as LongShortRatioHistoryItem, r as LongShortRatioHistoryResponse, t as LongShortRatioResponse, O as OhlcCandle, u as OhlcCandleResponse, v as OpenInterestBody, w as OpenInterestHistoryBody, x as OpenInterestItem, y as OpenInterestResponse, S as SupportedListResponse } from '../schemas-Doa7hG7U.cjs';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import 'zod';
|
|
2
|
+
export { E as ExchangePairItem, a as ExchangePairsBody, b as ExchangePairsResponse, F as FundingRateHistoryBody, c as FundingRateItem, d as FundingRatesBody, e as FundingRatesResponse, L as LiquidationByExchangeItem, f as LiquidationHistoryBody, g as LiquidationHistoryItem, h as LiquidationHistoryResponse, i as LiquidationItem, j as LiquidationsBody, k as LiquidationsByExchangeBody, l as LiquidationsByExchangeResponse, m as LiquidationsResponse, n as LongShortExchangeItem, o as LongShortRatioBody, p as LongShortRatioHistoryBody, q as LongShortRatioHistoryItem, r as LongShortRatioHistoryResponse, t as LongShortRatioResponse, O as OhlcCandle, u as OhlcCandleResponse, v as OpenInterestBody, w as OpenInterestHistoryBody, x as OpenInterestItem, y as OpenInterestResponse, S as SupportedListResponse } from '../schemas-Doa7hG7U.js';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ExchangePairItem,
|
|
3
|
+
ExchangePairsBody,
|
|
4
|
+
ExchangePairsResponse,
|
|
5
|
+
FundingRateHistoryBody,
|
|
6
|
+
FundingRateItem,
|
|
7
|
+
FundingRatesBody,
|
|
8
|
+
FundingRatesResponse,
|
|
9
|
+
LiquidationByExchangeItem,
|
|
10
|
+
LiquidationHistoryBody,
|
|
11
|
+
LiquidationHistoryItem,
|
|
12
|
+
LiquidationHistoryResponse,
|
|
13
|
+
LiquidationItem,
|
|
14
|
+
LiquidationsBody,
|
|
15
|
+
LiquidationsByExchangeBody,
|
|
16
|
+
LiquidationsByExchangeResponse,
|
|
17
|
+
LiquidationsResponse,
|
|
18
|
+
LongShortExchangeItem,
|
|
19
|
+
LongShortRatioBody,
|
|
20
|
+
LongShortRatioHistoryBody,
|
|
21
|
+
LongShortRatioHistoryItem,
|
|
22
|
+
LongShortRatioHistoryResponse,
|
|
23
|
+
LongShortRatioResponse,
|
|
24
|
+
OhlcCandle,
|
|
25
|
+
OhlcCandleResponse,
|
|
26
|
+
OpenInterestBody,
|
|
27
|
+
OpenInterestHistoryBody,
|
|
28
|
+
OpenInterestItem,
|
|
29
|
+
OpenInterestResponse,
|
|
30
|
+
SupportedListResponse
|
|
31
|
+
} from "../chunk-ZTOGXNAW.js";
|
|
32
|
+
import "../chunk-MLKGABMK.js";
|
|
33
|
+
export {
|
|
34
|
+
ExchangePairItem,
|
|
35
|
+
ExchangePairsBody,
|
|
36
|
+
ExchangePairsResponse,
|
|
37
|
+
FundingRateHistoryBody,
|
|
38
|
+
FundingRateItem,
|
|
39
|
+
FundingRatesBody,
|
|
40
|
+
FundingRatesResponse,
|
|
41
|
+
LiquidationByExchangeItem,
|
|
42
|
+
LiquidationHistoryBody,
|
|
43
|
+
LiquidationHistoryItem,
|
|
44
|
+
LiquidationHistoryResponse,
|
|
45
|
+
LiquidationItem,
|
|
46
|
+
LiquidationsBody,
|
|
47
|
+
LiquidationsByExchangeBody,
|
|
48
|
+
LiquidationsByExchangeResponse,
|
|
49
|
+
LiquidationsResponse,
|
|
50
|
+
LongShortExchangeItem,
|
|
51
|
+
LongShortRatioBody,
|
|
52
|
+
LongShortRatioHistoryBody,
|
|
53
|
+
LongShortRatioHistoryItem,
|
|
54
|
+
LongShortRatioHistoryResponse,
|
|
55
|
+
LongShortRatioResponse,
|
|
56
|
+
OhlcCandle,
|
|
57
|
+
OhlcCandleResponse,
|
|
58
|
+
OpenInterestBody,
|
|
59
|
+
OpenInterestHistoryBody,
|
|
60
|
+
OpenInterestItem,
|
|
61
|
+
OpenInterestResponse,
|
|
62
|
+
SupportedListResponse
|
|
63
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/composite/schemas.ts
|
|
21
|
+
var schemas_exports = {};
|
|
22
|
+
__export(schemas_exports, {
|
|
23
|
+
AlphaRadarBody: () => AlphaRadarBody,
|
|
24
|
+
AlphaRadarComponent: () => AlphaRadarComponent,
|
|
25
|
+
AlphaRadarResponse: () => AlphaRadarResponse,
|
|
26
|
+
HealthResponse: () => HealthResponse,
|
|
27
|
+
MarketSnapshotBody: () => MarketSnapshotBody,
|
|
28
|
+
MarketSnapshotResponse: () => MarketSnapshotResponse,
|
|
29
|
+
SignalLabel: () => SignalLabel,
|
|
30
|
+
WalletXrayBody: () => WalletXrayBody,
|
|
31
|
+
WalletXrayResponse: () => WalletXrayResponse
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
34
|
+
var import_zod = require("zod");
|
|
35
|
+
var MarketSnapshotBody = import_zod.z.object({
|
|
36
|
+
coingeckoId: import_zod.z.string().min(1).describe("CoinGecko token ID for the price + market-cap component (e.g. `bitcoin`)."),
|
|
37
|
+
coinglassSymbol: import_zod.z.string().min(1).describe("CoinGlass coin symbol for the funding + open-interest component (e.g. `BTC`).")
|
|
38
|
+
});
|
|
39
|
+
var MarketSnapshotResponse = import_zod.z.object({
|
|
40
|
+
token: import_zod.z.string(),
|
|
41
|
+
price: import_zod.z.object({
|
|
42
|
+
usd: import_zod.z.number().nullable(),
|
|
43
|
+
change24h: import_zod.z.number().nullable(),
|
|
44
|
+
marketCap: import_zod.z.number().nullable(),
|
|
45
|
+
volume24h: import_zod.z.number().nullable()
|
|
46
|
+
}),
|
|
47
|
+
fearGreed: import_zod.z.object({
|
|
48
|
+
value: import_zod.z.number().nullable(),
|
|
49
|
+
classification: import_zod.z.string().nullable()
|
|
50
|
+
}),
|
|
51
|
+
funding: import_zod.z.object({
|
|
52
|
+
rates: import_zod.z.array(import_zod.z.object({ exchange: import_zod.z.string(), rate: import_zod.z.number().nullable() }))
|
|
53
|
+
}).nullable(),
|
|
54
|
+
openInterest: import_zod.z.object({
|
|
55
|
+
totalUsd: import_zod.z.number().nullable(),
|
|
56
|
+
byExchange: import_zod.z.array(import_zod.z.object({ exchange: import_zod.z.string(), usd: import_zod.z.number().nullable() }))
|
|
57
|
+
}).nullable()
|
|
58
|
+
});
|
|
59
|
+
var AlphaRadarBody = import_zod.z.object({
|
|
60
|
+
symbol: import_zod.z.string().min(1).describe("Coin symbol to score across the alpha-radar signal components (e.g. `BTC`).")
|
|
61
|
+
});
|
|
62
|
+
var SignalLabel = import_zod.z.enum([
|
|
63
|
+
"very_bearish",
|
|
64
|
+
"bearish",
|
|
65
|
+
"neutral",
|
|
66
|
+
"bullish",
|
|
67
|
+
"very_bullish"
|
|
68
|
+
]);
|
|
69
|
+
var AlphaRadarComponent = import_zod.z.object({
|
|
70
|
+
score: import_zod.z.number(),
|
|
71
|
+
weight: import_zod.z.number(),
|
|
72
|
+
signal: SignalLabel
|
|
73
|
+
}).catchall(import_zod.z.unknown());
|
|
74
|
+
var AlphaRadarResponse = import_zod.z.object({
|
|
75
|
+
symbol: import_zod.z.string(),
|
|
76
|
+
timestamp: import_zod.z.string(),
|
|
77
|
+
score: import_zod.z.number(),
|
|
78
|
+
signal: SignalLabel,
|
|
79
|
+
componentsUsed: import_zod.z.number(),
|
|
80
|
+
components: import_zod.z.record(import_zod.z.string(), AlphaRadarComponent),
|
|
81
|
+
errors: import_zod.z.record(import_zod.z.string(), import_zod.z.string()).optional()
|
|
82
|
+
});
|
|
83
|
+
var WalletXrayBody = import_zod.z.object({
|
|
84
|
+
address: import_zod.z.string().min(1).describe("Wallet address to analyze (EVM `0x\u2026` or chain-native format)."),
|
|
85
|
+
chain: import_zod.z.string().optional().describe("Chain name to scope the analysis (e.g. `eth`, `base`, `polygon`). Defaults to Ethereum mainnet.")
|
|
86
|
+
});
|
|
87
|
+
var WalletXrayResponse = import_zod.z.object({
|
|
88
|
+
address: import_zod.z.string(),
|
|
89
|
+
chain: import_zod.z.string(),
|
|
90
|
+
profile: import_zod.z.object({
|
|
91
|
+
tag: import_zod.z.string(),
|
|
92
|
+
netWorthUsd: import_zod.z.number(),
|
|
93
|
+
tokenCount: import_zod.z.number(),
|
|
94
|
+
nftCount: import_zod.z.number(),
|
|
95
|
+
defiPositionCount: import_zod.z.number(),
|
|
96
|
+
recentTransferCount: import_zod.z.number()
|
|
97
|
+
}),
|
|
98
|
+
topHoldings: import_zod.z.array(import_zod.z.unknown()),
|
|
99
|
+
recentActivity: import_zod.z.object({
|
|
100
|
+
totalTransfers: import_zod.z.number(),
|
|
101
|
+
inflows: import_zod.z.number(),
|
|
102
|
+
outflows: import_zod.z.number(),
|
|
103
|
+
recentInflows: import_zod.z.array(import_zod.z.unknown()),
|
|
104
|
+
recentOutflows: import_zod.z.array(import_zod.z.unknown())
|
|
105
|
+
}),
|
|
106
|
+
defiPositions: import_zod.z.array(import_zod.z.unknown()),
|
|
107
|
+
nftSummary: import_zod.z.object({
|
|
108
|
+
total: import_zod.z.number(),
|
|
109
|
+
topCollections: import_zod.z.array(import_zod.z.object({ name: import_zod.z.string(), count: import_zod.z.number() }))
|
|
110
|
+
}),
|
|
111
|
+
errors: import_zod.z.record(import_zod.z.string(), import_zod.z.string().nullable())
|
|
112
|
+
});
|
|
113
|
+
var HealthResponse = import_zod.z.object({
|
|
114
|
+
status: import_zod.z.enum(["ok", "degraded"]),
|
|
115
|
+
uptime: import_zod.z.number(),
|
|
116
|
+
redis: import_zod.z.boolean(),
|
|
117
|
+
rateLimit: import_zod.z.object({
|
|
118
|
+
limit: import_zod.z.number(),
|
|
119
|
+
windowMs: import_zod.z.number(),
|
|
120
|
+
used: import_zod.z.number(),
|
|
121
|
+
remaining: import_zod.z.number(),
|
|
122
|
+
clientIp: import_zod.z.string()
|
|
123
|
+
}),
|
|
124
|
+
services: import_zod.z.array(
|
|
125
|
+
import_zod.z.object({
|
|
126
|
+
name: import_zod.z.string(),
|
|
127
|
+
status: import_zod.z.enum(["ok", "error"]),
|
|
128
|
+
latencyMs: import_zod.z.number(),
|
|
129
|
+
error: import_zod.z.string().optional()
|
|
130
|
+
})
|
|
131
|
+
)
|
|
132
|
+
});
|
|
133
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
134
|
+
0 && (module.exports = {
|
|
135
|
+
AlphaRadarBody,
|
|
136
|
+
AlphaRadarComponent,
|
|
137
|
+
AlphaRadarResponse,
|
|
138
|
+
HealthResponse,
|
|
139
|
+
MarketSnapshotBody,
|
|
140
|
+
MarketSnapshotResponse,
|
|
141
|
+
SignalLabel,
|
|
142
|
+
WalletXrayBody,
|
|
143
|
+
WalletXrayResponse
|
|
144
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AlphaRadarBody,
|
|
3
|
+
AlphaRadarComponent,
|
|
4
|
+
AlphaRadarResponse,
|
|
5
|
+
HealthResponse,
|
|
6
|
+
MarketSnapshotBody,
|
|
7
|
+
MarketSnapshotResponse,
|
|
8
|
+
SignalLabel,
|
|
9
|
+
WalletXrayBody,
|
|
10
|
+
WalletXrayResponse
|
|
11
|
+
} from "../chunk-VK45O334.js";
|
|
12
|
+
import "../chunk-MLKGABMK.js";
|
|
13
|
+
export {
|
|
14
|
+
AlphaRadarBody,
|
|
15
|
+
AlphaRadarComponent,
|
|
16
|
+
AlphaRadarResponse,
|
|
17
|
+
HealthResponse,
|
|
18
|
+
MarketSnapshotBody,
|
|
19
|
+
MarketSnapshotResponse,
|
|
20
|
+
SignalLabel,
|
|
21
|
+
WalletXrayBody,
|
|
22
|
+
WalletXrayResponse
|
|
23
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/cryptonews/schemas.ts
|
|
21
|
+
var schemas_exports = {};
|
|
22
|
+
__export(schemas_exports, {
|
|
23
|
+
NewsArticle: () => NewsArticle,
|
|
24
|
+
NewsBody: () => NewsBody,
|
|
25
|
+
NewsResponse: () => NewsResponse,
|
|
26
|
+
SentimentBody: () => SentimentBody,
|
|
27
|
+
SentimentItem: () => SentimentItem,
|
|
28
|
+
SentimentResponse: () => SentimentResponse,
|
|
29
|
+
TrendingQuery: () => TrendingQuery,
|
|
30
|
+
TrendingResponse: () => TrendingResponse,
|
|
31
|
+
TrendingTicker: () => TrendingTicker
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
34
|
+
var import_zod = require("zod");
|
|
35
|
+
var NewsBody = import_zod.z.object({
|
|
36
|
+
tickers: import_zod.z.string().optional().describe("Comma-separated tickers to filter by (e.g. `BTC,ETH`). Omit for the full feed."),
|
|
37
|
+
items: import_zod.z.number().int().min(1).max(100).optional().default(10).describe("Articles per page (1\u2013100)."),
|
|
38
|
+
page: import_zod.z.number().int().min(1).optional().default(1).describe("1-based page number for pagination."),
|
|
39
|
+
sentiment: import_zod.z.enum(["positive", "negative", "neutral"]).optional().describe("Filter to articles with this sentiment classification."),
|
|
40
|
+
topic: import_zod.z.string().optional().describe("Filter by topic tag (e.g. `regulation`, `mining`, `defi`)."),
|
|
41
|
+
source: import_zod.z.string().optional().describe("Filter by news outlet (e.g. `coindesk`, `cointelegraph`)."),
|
|
42
|
+
date: import_zod.z.string().optional().describe(
|
|
43
|
+
"Date filter. Accepts presets (`today`, `last7days`, `last30days`) or `MMDDYYYY-MMDDYYYY` ranges."
|
|
44
|
+
),
|
|
45
|
+
sort: import_zod.z.enum(["rank", "date"]).optional().describe("Sort order \u2014 `rank` for relevance, `date` for newest first.")
|
|
46
|
+
});
|
|
47
|
+
var NewsArticle = import_zod.z.object({
|
|
48
|
+
title: import_zod.z.string(),
|
|
49
|
+
text: import_zod.z.string(),
|
|
50
|
+
url: import_zod.z.string(),
|
|
51
|
+
imageUrl: import_zod.z.string().nullable(),
|
|
52
|
+
date: import_zod.z.string(),
|
|
53
|
+
source: import_zod.z.string(),
|
|
54
|
+
sentiment: import_zod.z.string(),
|
|
55
|
+
tickers: import_zod.z.array(import_zod.z.string()),
|
|
56
|
+
topics: import_zod.z.array(import_zod.z.string()),
|
|
57
|
+
type: import_zod.z.string()
|
|
58
|
+
});
|
|
59
|
+
var NewsResponse = import_zod.z.object({
|
|
60
|
+
articles: import_zod.z.array(NewsArticle),
|
|
61
|
+
totalPages: import_zod.z.number().nullable()
|
|
62
|
+
});
|
|
63
|
+
var SentimentBody = import_zod.z.object({
|
|
64
|
+
tickers: import_zod.z.string().min(1).describe("Comma-separated tickers to score (e.g. `BTC,ETH,SOL`)."),
|
|
65
|
+
date: import_zod.z.string().default("last30days").refine(
|
|
66
|
+
(v) => /^(today|yesterday|last7days|last30days|yeartodate)$/.test(v) || /^\d{8}-(\d{8}|today)$/.test(v)
|
|
67
|
+
).describe(
|
|
68
|
+
"Date window. Presets: `today`, `yesterday`, `last7days`, `last30days`, `yeartodate`. Or a custom `MMDDYYYY-MMDDYYYY` range (or `MMDDYYYY-today`)."
|
|
69
|
+
)
|
|
70
|
+
});
|
|
71
|
+
var SentimentItem = import_zod.z.object({
|
|
72
|
+
ticker: import_zod.z.string(),
|
|
73
|
+
sentiment: import_zod.z.string(),
|
|
74
|
+
sentimentScore: import_zod.z.number().nullable(),
|
|
75
|
+
positive: import_zod.z.number(),
|
|
76
|
+
negative: import_zod.z.number(),
|
|
77
|
+
neutral: import_zod.z.number()
|
|
78
|
+
});
|
|
79
|
+
var SentimentResponse = import_zod.z.array(SentimentItem);
|
|
80
|
+
var TrendingQuery = import_zod.z.object({
|
|
81
|
+
date: import_zod.z.string().optional().describe("Date window \u2014 same format as the sentiment endpoint. Defaults to today.")
|
|
82
|
+
});
|
|
83
|
+
var TrendingTicker = import_zod.z.object({
|
|
84
|
+
ticker: import_zod.z.string(),
|
|
85
|
+
name: import_zod.z.string(),
|
|
86
|
+
totalMentions: import_zod.z.number(),
|
|
87
|
+
positiveMentions: import_zod.z.number(),
|
|
88
|
+
negativeMentions: import_zod.z.number(),
|
|
89
|
+
neutralMentions: import_zod.z.number(),
|
|
90
|
+
sentimentScore: import_zod.z.number().nullable()
|
|
91
|
+
});
|
|
92
|
+
var TrendingResponse = import_zod.z.array(TrendingTicker);
|
|
93
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
94
|
+
0 && (module.exports = {
|
|
95
|
+
NewsArticle,
|
|
96
|
+
NewsBody,
|
|
97
|
+
NewsResponse,
|
|
98
|
+
SentimentBody,
|
|
99
|
+
SentimentItem,
|
|
100
|
+
SentimentResponse,
|
|
101
|
+
TrendingQuery,
|
|
102
|
+
TrendingResponse,
|
|
103
|
+
TrendingTicker
|
|
104
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NewsArticle,
|
|
3
|
+
NewsBody,
|
|
4
|
+
NewsResponse,
|
|
5
|
+
SentimentBody,
|
|
6
|
+
SentimentItem,
|
|
7
|
+
SentimentResponse,
|
|
8
|
+
TrendingQuery,
|
|
9
|
+
TrendingResponse,
|
|
10
|
+
TrendingTicker
|
|
11
|
+
} from "../chunk-PHNEQDUP.js";
|
|
12
|
+
import "../chunk-MLKGABMK.js";
|
|
13
|
+
export {
|
|
14
|
+
NewsArticle,
|
|
15
|
+
NewsBody,
|
|
16
|
+
NewsResponse,
|
|
17
|
+
SentimentBody,
|
|
18
|
+
SentimentItem,
|
|
19
|
+
SentimentResponse,
|
|
20
|
+
TrendingQuery,
|
|
21
|
+
TrendingResponse,
|
|
22
|
+
TrendingTicker
|
|
23
|
+
};
|