@veroq/sdk 1.0.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 +108 -0
- package/dist/cjs/agent.d.ts +144 -0
- package/dist/cjs/agent.d.ts.map +1 -0
- package/dist/cjs/agent.js +143 -0
- package/dist/cjs/agent.js.map +1 -0
- package/dist/cjs/cli.d.ts +3 -0
- package/dist/cjs/cli.d.ts.map +1 -0
- package/dist/cjs/cli.js +206 -0
- package/dist/cjs/cli.js.map +1 -0
- package/dist/cjs/client.d.ts +153 -0
- package/dist/cjs/client.d.ts.map +1 -0
- package/dist/cjs/client.js +800 -0
- package/dist/cjs/client.js.map +1 -0
- package/dist/cjs/errors.d.ts +21 -0
- package/dist/cjs/errors.d.ts.map +1 -0
- package/dist/cjs/errors.js +44 -0
- package/dist/cjs/errors.js.map +1 -0
- package/dist/cjs/index.d.ts +6 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +16 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types.d.ts +779 -0
- package/dist/cjs/types.d.ts.map +1 -0
- package/dist/cjs/types.js +3 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/esm/agent.d.ts +144 -0
- package/dist/esm/agent.d.ts.map +1 -0
- package/dist/esm/agent.js +139 -0
- package/dist/esm/agent.js.map +1 -0
- package/dist/esm/cli.d.ts +3 -0
- package/dist/esm/cli.d.ts.map +1 -0
- package/dist/esm/cli.js +204 -0
- package/dist/esm/cli.js.map +1 -0
- package/dist/esm/client.d.ts +153 -0
- package/dist/esm/client.d.ts.map +1 -0
- package/dist/esm/client.js +796 -0
- package/dist/esm/client.js.map +1 -0
- package/dist/esm/errors.d.ts +21 -0
- package/dist/esm/errors.d.ts.map +1 -0
- package/dist/esm/errors.js +36 -0
- package/dist/esm/errors.js.map +1 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types.d.ts +779 -0
- package/dist/esm/types.d.ts.map +1 -0
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1,779 @@
|
|
|
1
|
+
export interface Source {
|
|
2
|
+
name: string;
|
|
3
|
+
url: string;
|
|
4
|
+
trustLevel?: string;
|
|
5
|
+
verified?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface Entity {
|
|
8
|
+
name: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
sentiment?: string;
|
|
11
|
+
mentionCount?: number;
|
|
12
|
+
ticker?: string;
|
|
13
|
+
role?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface Provenance {
|
|
16
|
+
reviewStatus?: string;
|
|
17
|
+
aiContributionPct?: number;
|
|
18
|
+
humanContributionPct?: number;
|
|
19
|
+
confidenceScore?: number;
|
|
20
|
+
biasScore?: number;
|
|
21
|
+
agentsInvolved?: string[];
|
|
22
|
+
}
|
|
23
|
+
export interface Brief {
|
|
24
|
+
id?: string;
|
|
25
|
+
headline: string;
|
|
26
|
+
summary?: string;
|
|
27
|
+
body?: string;
|
|
28
|
+
confidence?: number;
|
|
29
|
+
biasScore?: number;
|
|
30
|
+
sentiment?: string;
|
|
31
|
+
counterArgument?: string;
|
|
32
|
+
category?: string;
|
|
33
|
+
tags?: string[];
|
|
34
|
+
sources?: Source[];
|
|
35
|
+
entitiesEnriched?: Entity[];
|
|
36
|
+
structuredData?: Record<string, unknown>;
|
|
37
|
+
publishedAt?: string;
|
|
38
|
+
reviewStatus?: string;
|
|
39
|
+
provenance?: Provenance;
|
|
40
|
+
briefType?: string;
|
|
41
|
+
trending?: boolean;
|
|
42
|
+
topics?: string[];
|
|
43
|
+
entities?: string[];
|
|
44
|
+
impactScore?: number;
|
|
45
|
+
readTimeSeconds?: number;
|
|
46
|
+
sourceCount?: number;
|
|
47
|
+
correctionsCount?: number;
|
|
48
|
+
biasAnalysis?: Record<string, unknown>;
|
|
49
|
+
fullSources?: Record<string, unknown>[];
|
|
50
|
+
}
|
|
51
|
+
export interface FeedResponse {
|
|
52
|
+
briefs: Brief[];
|
|
53
|
+
total: number;
|
|
54
|
+
page: number;
|
|
55
|
+
perPage: number;
|
|
56
|
+
generatedAt?: string;
|
|
57
|
+
agentVersion?: string;
|
|
58
|
+
sourcesScanned24h?: number;
|
|
59
|
+
}
|
|
60
|
+
export interface DepthMetadata {
|
|
61
|
+
depth?: string;
|
|
62
|
+
searchMs?: number;
|
|
63
|
+
crossRefMs?: number;
|
|
64
|
+
verificationMs?: number;
|
|
65
|
+
totalMs?: number;
|
|
66
|
+
}
|
|
67
|
+
export interface EntityCrossRef {
|
|
68
|
+
briefId?: string;
|
|
69
|
+
headline?: string;
|
|
70
|
+
publishedAt?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface SourceVerification {
|
|
73
|
+
checked: number;
|
|
74
|
+
accessible: number;
|
|
75
|
+
inaccessible: number;
|
|
76
|
+
}
|
|
77
|
+
export interface SearchResponse {
|
|
78
|
+
briefs: Brief[];
|
|
79
|
+
total: number;
|
|
80
|
+
facets?: Record<string, unknown> | null;
|
|
81
|
+
relatedQueries?: string[] | null;
|
|
82
|
+
didYouMean?: string;
|
|
83
|
+
tookMs?: number;
|
|
84
|
+
meta?: Record<string, unknown>;
|
|
85
|
+
depthMetadata?: DepthMetadata;
|
|
86
|
+
}
|
|
87
|
+
export interface ExtractResult {
|
|
88
|
+
url: string;
|
|
89
|
+
title?: string;
|
|
90
|
+
text?: string;
|
|
91
|
+
wordCount?: number;
|
|
92
|
+
language?: string;
|
|
93
|
+
publishedDate?: string;
|
|
94
|
+
domain?: string;
|
|
95
|
+
success: boolean;
|
|
96
|
+
error?: string;
|
|
97
|
+
}
|
|
98
|
+
export interface ExtractResponse {
|
|
99
|
+
results: ExtractResult[];
|
|
100
|
+
creditsUsed: number;
|
|
101
|
+
}
|
|
102
|
+
export interface Cluster {
|
|
103
|
+
clusterId?: string;
|
|
104
|
+
topic: string;
|
|
105
|
+
briefCount: number;
|
|
106
|
+
categories?: string[];
|
|
107
|
+
briefs?: Brief[];
|
|
108
|
+
latest?: string;
|
|
109
|
+
}
|
|
110
|
+
export interface ClustersResponse {
|
|
111
|
+
clusters: Cluster[];
|
|
112
|
+
period?: string;
|
|
113
|
+
}
|
|
114
|
+
export interface DataPointValue {
|
|
115
|
+
type?: string;
|
|
116
|
+
value?: unknown;
|
|
117
|
+
context?: string;
|
|
118
|
+
entity?: string;
|
|
119
|
+
}
|
|
120
|
+
export interface DataPoint {
|
|
121
|
+
briefId?: string;
|
|
122
|
+
headline?: string;
|
|
123
|
+
dataPoint?: DataPointValue;
|
|
124
|
+
publishedAt?: string;
|
|
125
|
+
}
|
|
126
|
+
export interface DataResponse {
|
|
127
|
+
data: DataPoint[];
|
|
128
|
+
}
|
|
129
|
+
export interface EntitiesResponse {
|
|
130
|
+
entities: Entity[];
|
|
131
|
+
}
|
|
132
|
+
export interface SourceAnalysis {
|
|
133
|
+
outlet?: string;
|
|
134
|
+
headline?: string;
|
|
135
|
+
framing?: string;
|
|
136
|
+
politicalLean?: string;
|
|
137
|
+
loadedLanguage?: string[];
|
|
138
|
+
emphasis?: string[];
|
|
139
|
+
omissions?: string[];
|
|
140
|
+
sentiment?: Record<string, string>;
|
|
141
|
+
rawExcerpt?: string;
|
|
142
|
+
}
|
|
143
|
+
export interface ComparisonResponse {
|
|
144
|
+
topic?: string;
|
|
145
|
+
shareId?: string;
|
|
146
|
+
polarisBrief?: Brief;
|
|
147
|
+
sourceAnalyses?: SourceAnalysis[];
|
|
148
|
+
polarisAnalysis?: Record<string, unknown>;
|
|
149
|
+
generatedAt?: string;
|
|
150
|
+
}
|
|
151
|
+
export interface FeedOptions {
|
|
152
|
+
category?: string;
|
|
153
|
+
limit?: number;
|
|
154
|
+
page?: number;
|
|
155
|
+
perPage?: number;
|
|
156
|
+
minConfidence?: number;
|
|
157
|
+
includeSources?: string;
|
|
158
|
+
excludeSources?: string;
|
|
159
|
+
}
|
|
160
|
+
export interface BriefOptions {
|
|
161
|
+
includeFullText?: boolean;
|
|
162
|
+
}
|
|
163
|
+
export interface SearchOptions {
|
|
164
|
+
category?: string;
|
|
165
|
+
page?: number;
|
|
166
|
+
perPage?: number;
|
|
167
|
+
sort?: string;
|
|
168
|
+
minConfidence?: number;
|
|
169
|
+
from?: string;
|
|
170
|
+
to?: string;
|
|
171
|
+
entity?: string;
|
|
172
|
+
sentiment?: string;
|
|
173
|
+
depth?: string;
|
|
174
|
+
includeSources?: string;
|
|
175
|
+
excludeSources?: string;
|
|
176
|
+
}
|
|
177
|
+
export interface EntitiesOptions {
|
|
178
|
+
q?: string;
|
|
179
|
+
type?: string;
|
|
180
|
+
limit?: number;
|
|
181
|
+
}
|
|
182
|
+
export interface EntityBriefsOptions {
|
|
183
|
+
role?: string;
|
|
184
|
+
limit?: number;
|
|
185
|
+
offset?: number;
|
|
186
|
+
}
|
|
187
|
+
export interface SimilarOptions {
|
|
188
|
+
limit?: number;
|
|
189
|
+
}
|
|
190
|
+
export interface ClustersOptions {
|
|
191
|
+
period?: string;
|
|
192
|
+
limit?: number;
|
|
193
|
+
}
|
|
194
|
+
export interface DataOptions {
|
|
195
|
+
entity?: string;
|
|
196
|
+
type?: string;
|
|
197
|
+
limit?: number;
|
|
198
|
+
}
|
|
199
|
+
export interface AgentFeedOptions {
|
|
200
|
+
category?: string;
|
|
201
|
+
tags?: string;
|
|
202
|
+
limit?: number;
|
|
203
|
+
minConfidence?: number;
|
|
204
|
+
includeSources?: string;
|
|
205
|
+
excludeSources?: string;
|
|
206
|
+
}
|
|
207
|
+
export interface TrendingOptions {
|
|
208
|
+
period?: string;
|
|
209
|
+
limit?: number;
|
|
210
|
+
}
|
|
211
|
+
export interface StreamOptions {
|
|
212
|
+
categories?: string;
|
|
213
|
+
}
|
|
214
|
+
export interface ResearchOptions {
|
|
215
|
+
maxSources?: number;
|
|
216
|
+
depth?: string;
|
|
217
|
+
category?: string;
|
|
218
|
+
includeSources?: string;
|
|
219
|
+
excludeSources?: string;
|
|
220
|
+
outputSchema?: Record<string, unknown>;
|
|
221
|
+
}
|
|
222
|
+
export interface ResearchSourceUsed {
|
|
223
|
+
briefId?: string;
|
|
224
|
+
headline?: string;
|
|
225
|
+
confidence?: number;
|
|
226
|
+
category?: string;
|
|
227
|
+
}
|
|
228
|
+
export interface ResearchEntityCooccurrence {
|
|
229
|
+
entity?: string;
|
|
230
|
+
count?: number;
|
|
231
|
+
}
|
|
232
|
+
export interface ResearchEntity {
|
|
233
|
+
name?: string;
|
|
234
|
+
type?: string;
|
|
235
|
+
mentions?: number;
|
|
236
|
+
coOccursWith?: ResearchEntityCooccurrence[];
|
|
237
|
+
}
|
|
238
|
+
export interface ResearchMetadata {
|
|
239
|
+
briefsAnalyzed: number;
|
|
240
|
+
uniqueSources: number;
|
|
241
|
+
processingTimeMs?: number;
|
|
242
|
+
modelsUsed?: string[];
|
|
243
|
+
}
|
|
244
|
+
export interface ResearchResponse {
|
|
245
|
+
query: string;
|
|
246
|
+
report?: Record<string, unknown>;
|
|
247
|
+
sourcesUsed?: ResearchSourceUsed[];
|
|
248
|
+
entityMap?: ResearchEntity[];
|
|
249
|
+
subQueries?: string[];
|
|
250
|
+
metadata?: ResearchMetadata;
|
|
251
|
+
structuredOutput?: unknown;
|
|
252
|
+
structuredOutputError?: string;
|
|
253
|
+
}
|
|
254
|
+
export interface VerifyOptions {
|
|
255
|
+
context?: string;
|
|
256
|
+
}
|
|
257
|
+
export interface VerifyBrief {
|
|
258
|
+
id: string;
|
|
259
|
+
headline: string;
|
|
260
|
+
confidence: number;
|
|
261
|
+
relevance: number | null;
|
|
262
|
+
}
|
|
263
|
+
export interface VerifyResponse {
|
|
264
|
+
claim: string;
|
|
265
|
+
verdict: "supported" | "contradicted" | "partially_supported" | "unverifiable";
|
|
266
|
+
confidence: number;
|
|
267
|
+
summary: string;
|
|
268
|
+
supportingBriefs: VerifyBrief[];
|
|
269
|
+
contradictingBriefs: VerifyBrief[];
|
|
270
|
+
nuances: string | null;
|
|
271
|
+
sourcesAnalyzed: number;
|
|
272
|
+
briefsMatched: number;
|
|
273
|
+
creditsUsed: number;
|
|
274
|
+
cached: boolean;
|
|
275
|
+
processingTimeMs: number;
|
|
276
|
+
modelUsed: string | null;
|
|
277
|
+
}
|
|
278
|
+
/** @deprecated Use VeroqClientOptions instead */
|
|
279
|
+
export type PolarisClientOptions = VeroqClientOptions;
|
|
280
|
+
export interface VeroqClientOptions {
|
|
281
|
+
apiKey?: string;
|
|
282
|
+
baseUrl?: string;
|
|
283
|
+
}
|
|
284
|
+
export interface TickerResolveResult {
|
|
285
|
+
symbol: string;
|
|
286
|
+
name?: string;
|
|
287
|
+
sector?: string;
|
|
288
|
+
found: boolean;
|
|
289
|
+
}
|
|
290
|
+
export interface TickerResolveResponse {
|
|
291
|
+
tickers: TickerResolveResult[];
|
|
292
|
+
}
|
|
293
|
+
export interface TickerResponse {
|
|
294
|
+
symbol: string;
|
|
295
|
+
name?: string;
|
|
296
|
+
sector?: string;
|
|
297
|
+
sentiment?: string;
|
|
298
|
+
sentimentScore?: number;
|
|
299
|
+
briefCount?: number;
|
|
300
|
+
lastMentioned?: string;
|
|
301
|
+
}
|
|
302
|
+
export interface TickerHistoryPoint {
|
|
303
|
+
date: string;
|
|
304
|
+
sentimentScore?: number;
|
|
305
|
+
briefCount?: number;
|
|
306
|
+
volume?: number;
|
|
307
|
+
}
|
|
308
|
+
export interface TickerHistoryOptions {
|
|
309
|
+
days?: number;
|
|
310
|
+
}
|
|
311
|
+
export interface TickerHistoryResponse {
|
|
312
|
+
symbol: string;
|
|
313
|
+
history: TickerHistoryPoint[];
|
|
314
|
+
}
|
|
315
|
+
export interface TickerSignal {
|
|
316
|
+
date: string;
|
|
317
|
+
type?: string;
|
|
318
|
+
direction?: string;
|
|
319
|
+
strength?: number;
|
|
320
|
+
description?: string;
|
|
321
|
+
}
|
|
322
|
+
export interface TickerSignalsOptions {
|
|
323
|
+
days?: number;
|
|
324
|
+
threshold?: number;
|
|
325
|
+
}
|
|
326
|
+
export interface TickerSignalsResponse {
|
|
327
|
+
symbol: string;
|
|
328
|
+
signals: TickerSignal[];
|
|
329
|
+
}
|
|
330
|
+
export interface TickerCorrelation {
|
|
331
|
+
symbol: string;
|
|
332
|
+
name?: string;
|
|
333
|
+
correlation?: number;
|
|
334
|
+
sharedBriefs?: number;
|
|
335
|
+
}
|
|
336
|
+
export interface TickerCorrelationsOptions {
|
|
337
|
+
days?: number;
|
|
338
|
+
limit?: number;
|
|
339
|
+
}
|
|
340
|
+
export interface TickerCorrelationsResponse {
|
|
341
|
+
symbol: string;
|
|
342
|
+
correlations: TickerCorrelation[];
|
|
343
|
+
}
|
|
344
|
+
export interface TickerScoreResponse {
|
|
345
|
+
symbol: string;
|
|
346
|
+
score?: number;
|
|
347
|
+
components?: Record<string, unknown>;
|
|
348
|
+
updatedAt?: string;
|
|
349
|
+
}
|
|
350
|
+
export interface SectorsOptions {
|
|
351
|
+
days?: number;
|
|
352
|
+
}
|
|
353
|
+
export interface SectorSummary {
|
|
354
|
+
sector: string;
|
|
355
|
+
sentiment?: string;
|
|
356
|
+
sentimentScore?: number;
|
|
357
|
+
briefCount?: number;
|
|
358
|
+
topTickers?: string[];
|
|
359
|
+
}
|
|
360
|
+
export interface SectorsResponse {
|
|
361
|
+
sectors: SectorSummary[];
|
|
362
|
+
}
|
|
363
|
+
export interface SectorTickersOptions {
|
|
364
|
+
days?: number;
|
|
365
|
+
sort?: "sentiment" | "briefs";
|
|
366
|
+
}
|
|
367
|
+
export interface SectorTicker {
|
|
368
|
+
symbol: string;
|
|
369
|
+
name?: string;
|
|
370
|
+
sentiment?: string;
|
|
371
|
+
sentimentScore?: number;
|
|
372
|
+
briefCount?: number;
|
|
373
|
+
}
|
|
374
|
+
export interface SectorTickersResponse {
|
|
375
|
+
sector: string;
|
|
376
|
+
tickers: SectorTicker[];
|
|
377
|
+
}
|
|
378
|
+
export interface EventsCalendarOptions {
|
|
379
|
+
days?: number;
|
|
380
|
+
ticker?: string;
|
|
381
|
+
type?: string;
|
|
382
|
+
limit?: number;
|
|
383
|
+
}
|
|
384
|
+
export interface CalendarEvent {
|
|
385
|
+
date: string;
|
|
386
|
+
type?: string;
|
|
387
|
+
title?: string;
|
|
388
|
+
ticker?: string;
|
|
389
|
+
description?: string;
|
|
390
|
+
impact?: string;
|
|
391
|
+
}
|
|
392
|
+
export interface EventsCalendarResponse {
|
|
393
|
+
events: CalendarEvent[];
|
|
394
|
+
}
|
|
395
|
+
export interface PortfolioHolding {
|
|
396
|
+
ticker: string;
|
|
397
|
+
weight: number;
|
|
398
|
+
}
|
|
399
|
+
export interface PortfolioFeedOptions {
|
|
400
|
+
days?: number;
|
|
401
|
+
limit?: number;
|
|
402
|
+
}
|
|
403
|
+
export interface PortfolioFeedResponse {
|
|
404
|
+
briefs: Brief[];
|
|
405
|
+
holdings: PortfolioHolding[];
|
|
406
|
+
}
|
|
407
|
+
export interface Candle {
|
|
408
|
+
date: string;
|
|
409
|
+
open: number;
|
|
410
|
+
high: number;
|
|
411
|
+
low: number;
|
|
412
|
+
close: number;
|
|
413
|
+
volume: number;
|
|
414
|
+
}
|
|
415
|
+
export interface CandleOptions {
|
|
416
|
+
interval?: string;
|
|
417
|
+
range?: string;
|
|
418
|
+
}
|
|
419
|
+
export interface CandleResponse {
|
|
420
|
+
status: string;
|
|
421
|
+
symbol: string;
|
|
422
|
+
name?: string;
|
|
423
|
+
interval: string;
|
|
424
|
+
range: string;
|
|
425
|
+
candle_count: number;
|
|
426
|
+
candles: Candle[];
|
|
427
|
+
}
|
|
428
|
+
export interface FinancialsResponse {
|
|
429
|
+
status: string;
|
|
430
|
+
ticker?: string;
|
|
431
|
+
company_name?: string;
|
|
432
|
+
entity_name?: string;
|
|
433
|
+
exchange?: string;
|
|
434
|
+
sector?: string;
|
|
435
|
+
[key: string]: unknown;
|
|
436
|
+
}
|
|
437
|
+
export interface EarningsResponse {
|
|
438
|
+
status: string;
|
|
439
|
+
ticker: string;
|
|
440
|
+
entity_name?: string;
|
|
441
|
+
exchange?: string;
|
|
442
|
+
sector?: string;
|
|
443
|
+
earnings_date?: string;
|
|
444
|
+
eps_estimate?: number;
|
|
445
|
+
revenue_estimate?: number;
|
|
446
|
+
fiscal_quarter?: string;
|
|
447
|
+
fetched_at?: string;
|
|
448
|
+
}
|
|
449
|
+
export interface IndicatorOptions {
|
|
450
|
+
period?: number;
|
|
451
|
+
range?: string;
|
|
452
|
+
fast?: number;
|
|
453
|
+
slow?: number;
|
|
454
|
+
signal?: number;
|
|
455
|
+
kPeriod?: number;
|
|
456
|
+
dPeriod?: number;
|
|
457
|
+
stdDev?: number;
|
|
458
|
+
}
|
|
459
|
+
export interface IndicatorResponse {
|
|
460
|
+
status: string;
|
|
461
|
+
symbol: string;
|
|
462
|
+
indicator: string;
|
|
463
|
+
[key: string]: unknown;
|
|
464
|
+
}
|
|
465
|
+
export interface TechnicalsOptions {
|
|
466
|
+
range?: string;
|
|
467
|
+
}
|
|
468
|
+
export interface TechnicalsResponse {
|
|
469
|
+
status: string;
|
|
470
|
+
symbol: string;
|
|
471
|
+
[key: string]: unknown;
|
|
472
|
+
}
|
|
473
|
+
export interface MarketMover {
|
|
474
|
+
symbol: string;
|
|
475
|
+
name?: string;
|
|
476
|
+
price?: number;
|
|
477
|
+
change?: number;
|
|
478
|
+
change_percent?: number;
|
|
479
|
+
volume?: number;
|
|
480
|
+
}
|
|
481
|
+
export interface MarketMoversResponse {
|
|
482
|
+
status: string;
|
|
483
|
+
gainers: MarketMover[];
|
|
484
|
+
losers: MarketMover[];
|
|
485
|
+
most_active: MarketMover[];
|
|
486
|
+
fetched_at?: string;
|
|
487
|
+
}
|
|
488
|
+
export interface MarketIndex {
|
|
489
|
+
symbol: string;
|
|
490
|
+
name?: string;
|
|
491
|
+
price?: number;
|
|
492
|
+
change?: number;
|
|
493
|
+
change_percent?: number;
|
|
494
|
+
}
|
|
495
|
+
export interface MarketSummaryResponse {
|
|
496
|
+
status: string;
|
|
497
|
+
indices: MarketIndex[];
|
|
498
|
+
fetched_at?: string;
|
|
499
|
+
}
|
|
500
|
+
export interface MarketEarningsOptions {
|
|
501
|
+
days?: number;
|
|
502
|
+
sector?: string;
|
|
503
|
+
limit?: number;
|
|
504
|
+
}
|
|
505
|
+
export interface MarketEarningsResponse {
|
|
506
|
+
status: string;
|
|
507
|
+
[key: string]: unknown;
|
|
508
|
+
}
|
|
509
|
+
export interface ForexPair {
|
|
510
|
+
pair: string;
|
|
511
|
+
rate?: number;
|
|
512
|
+
change?: number;
|
|
513
|
+
change_percent?: number;
|
|
514
|
+
}
|
|
515
|
+
export interface ForexResponse {
|
|
516
|
+
status: string;
|
|
517
|
+
pairs: ForexPair[];
|
|
518
|
+
available?: Array<{
|
|
519
|
+
pair: string;
|
|
520
|
+
label: string;
|
|
521
|
+
}>;
|
|
522
|
+
fetched_at?: string;
|
|
523
|
+
}
|
|
524
|
+
export interface ForexRateResponse {
|
|
525
|
+
status: string;
|
|
526
|
+
pair?: string;
|
|
527
|
+
rate?: number;
|
|
528
|
+
change?: number;
|
|
529
|
+
change_percent?: number;
|
|
530
|
+
[key: string]: unknown;
|
|
531
|
+
}
|
|
532
|
+
export interface ForexCandleOptions {
|
|
533
|
+
interval?: string;
|
|
534
|
+
range?: string;
|
|
535
|
+
}
|
|
536
|
+
export interface CommodityInfo {
|
|
537
|
+
slug?: string;
|
|
538
|
+
name?: string;
|
|
539
|
+
price?: number;
|
|
540
|
+
change?: number;
|
|
541
|
+
change_percent?: number;
|
|
542
|
+
}
|
|
543
|
+
export interface CommoditiesResponse {
|
|
544
|
+
status: string;
|
|
545
|
+
commodities: CommodityInfo[];
|
|
546
|
+
available?: Array<{
|
|
547
|
+
slug: string;
|
|
548
|
+
name: string;
|
|
549
|
+
}>;
|
|
550
|
+
fetched_at?: string;
|
|
551
|
+
}
|
|
552
|
+
export interface CommodityResponse {
|
|
553
|
+
status: string;
|
|
554
|
+
slug?: string;
|
|
555
|
+
name?: string;
|
|
556
|
+
price?: number;
|
|
557
|
+
change?: number;
|
|
558
|
+
change_percent?: number;
|
|
559
|
+
[key: string]: unknown;
|
|
560
|
+
}
|
|
561
|
+
export interface CommodityCandleOptions {
|
|
562
|
+
interval?: string;
|
|
563
|
+
range?: string;
|
|
564
|
+
}
|
|
565
|
+
export interface EconomyIndicatorSummary {
|
|
566
|
+
slug?: string;
|
|
567
|
+
name?: string;
|
|
568
|
+
latest_value?: number | null;
|
|
569
|
+
units?: string;
|
|
570
|
+
}
|
|
571
|
+
export interface EconomyResponse {
|
|
572
|
+
status: string;
|
|
573
|
+
indicator_count?: number;
|
|
574
|
+
indicators: EconomyIndicatorSummary[];
|
|
575
|
+
fetched_at?: string;
|
|
576
|
+
}
|
|
577
|
+
export interface EconomyIndicatorOptions {
|
|
578
|
+
limit?: number;
|
|
579
|
+
}
|
|
580
|
+
export interface EconomyIndicatorResponse {
|
|
581
|
+
status: string;
|
|
582
|
+
indicator: string;
|
|
583
|
+
name?: string;
|
|
584
|
+
series_id?: string;
|
|
585
|
+
frequency?: string;
|
|
586
|
+
units?: string;
|
|
587
|
+
latest?: unknown;
|
|
588
|
+
observation_count?: number;
|
|
589
|
+
observations?: Array<{
|
|
590
|
+
date: string;
|
|
591
|
+
value: number | null;
|
|
592
|
+
}>;
|
|
593
|
+
fetched_at?: string;
|
|
594
|
+
}
|
|
595
|
+
export interface YieldCurveYield {
|
|
596
|
+
maturity: string;
|
|
597
|
+
rate?: number;
|
|
598
|
+
}
|
|
599
|
+
export interface YieldCurveResponse {
|
|
600
|
+
status: string;
|
|
601
|
+
yields: YieldCurveYield[];
|
|
602
|
+
spread_10y_2y?: number;
|
|
603
|
+
inverted?: boolean;
|
|
604
|
+
fetched_at?: string;
|
|
605
|
+
}
|
|
606
|
+
export interface CryptoResponse {
|
|
607
|
+
status: string;
|
|
608
|
+
total_market_cap?: number;
|
|
609
|
+
btc_dominance?: number;
|
|
610
|
+
[key: string]: unknown;
|
|
611
|
+
}
|
|
612
|
+
export interface CryptoTokenResponse {
|
|
613
|
+
status: string;
|
|
614
|
+
symbol?: string;
|
|
615
|
+
name?: string;
|
|
616
|
+
price?: number;
|
|
617
|
+
market_cap?: number;
|
|
618
|
+
volume_24h?: number;
|
|
619
|
+
change_24h?: number;
|
|
620
|
+
[key: string]: unknown;
|
|
621
|
+
}
|
|
622
|
+
export interface CryptoTopOptions {
|
|
623
|
+
limit?: number;
|
|
624
|
+
}
|
|
625
|
+
export interface CryptoTopResponse {
|
|
626
|
+
status: string;
|
|
627
|
+
count: number;
|
|
628
|
+
tokens: Array<Record<string, unknown>>;
|
|
629
|
+
fetched_at?: string;
|
|
630
|
+
}
|
|
631
|
+
export interface CryptoChartOptions {
|
|
632
|
+
days?: number;
|
|
633
|
+
}
|
|
634
|
+
export interface CryptoChartPoint {
|
|
635
|
+
timestamp: number;
|
|
636
|
+
price: number;
|
|
637
|
+
volume?: number;
|
|
638
|
+
}
|
|
639
|
+
export interface CryptoChartResponse {
|
|
640
|
+
status: string;
|
|
641
|
+
symbol: string;
|
|
642
|
+
coin_id?: string;
|
|
643
|
+
days: number;
|
|
644
|
+
data_points: number;
|
|
645
|
+
chart: CryptoChartPoint[];
|
|
646
|
+
}
|
|
647
|
+
export interface DefiResponse {
|
|
648
|
+
status: string;
|
|
649
|
+
total_tvl?: number;
|
|
650
|
+
[key: string]: unknown;
|
|
651
|
+
}
|
|
652
|
+
export interface DefiProtocolResponse {
|
|
653
|
+
status: string;
|
|
654
|
+
name?: string;
|
|
655
|
+
slug?: string;
|
|
656
|
+
tvl?: number;
|
|
657
|
+
[key: string]: unknown;
|
|
658
|
+
}
|
|
659
|
+
export interface ScreenerFilters {
|
|
660
|
+
sentiment_above?: number;
|
|
661
|
+
sentiment_below?: number;
|
|
662
|
+
sector?: string;
|
|
663
|
+
rsi_below?: number;
|
|
664
|
+
rsi_above?: number;
|
|
665
|
+
market_cap_min?: number;
|
|
666
|
+
market_cap_max?: number;
|
|
667
|
+
volume_min?: number;
|
|
668
|
+
earnings_within_days?: number;
|
|
669
|
+
asset_type?: string;
|
|
670
|
+
sort?: string;
|
|
671
|
+
limit?: number;
|
|
672
|
+
[key: string]: unknown;
|
|
673
|
+
}
|
|
674
|
+
export interface ScreenerResult {
|
|
675
|
+
ticker: string;
|
|
676
|
+
name?: string;
|
|
677
|
+
sector?: string;
|
|
678
|
+
sentiment_score?: number;
|
|
679
|
+
rsi?: number;
|
|
680
|
+
price?: number;
|
|
681
|
+
market_cap?: number;
|
|
682
|
+
[key: string]: unknown;
|
|
683
|
+
}
|
|
684
|
+
export interface ScreenerResponse {
|
|
685
|
+
status: string;
|
|
686
|
+
results: ScreenerResult[];
|
|
687
|
+
total?: number;
|
|
688
|
+
filters_applied?: Record<string, unknown>;
|
|
689
|
+
}
|
|
690
|
+
export interface ScreenerNaturalOptions {
|
|
691
|
+
limit?: number;
|
|
692
|
+
}
|
|
693
|
+
export interface ScreenerPreset {
|
|
694
|
+
id: string;
|
|
695
|
+
name: string;
|
|
696
|
+
description?: string;
|
|
697
|
+
filters: Record<string, unknown>;
|
|
698
|
+
}
|
|
699
|
+
export interface ScreenerPresetsResponse {
|
|
700
|
+
status: string;
|
|
701
|
+
presets: ScreenerPreset[];
|
|
702
|
+
}
|
|
703
|
+
export interface AlertOptions {
|
|
704
|
+
callbackUrl?: string;
|
|
705
|
+
}
|
|
706
|
+
export interface Alert {
|
|
707
|
+
id: string;
|
|
708
|
+
ticker: string;
|
|
709
|
+
alertType: string;
|
|
710
|
+
threshold: number;
|
|
711
|
+
status?: string;
|
|
712
|
+
callbackUrl?: string;
|
|
713
|
+
createdAt?: string;
|
|
714
|
+
triggeredAt?: string;
|
|
715
|
+
}
|
|
716
|
+
export interface AlertsResponse {
|
|
717
|
+
status: string;
|
|
718
|
+
alerts: Alert[];
|
|
719
|
+
}
|
|
720
|
+
export interface TriggeredAlertsOptions {
|
|
721
|
+
since?: string;
|
|
722
|
+
limit?: number;
|
|
723
|
+
}
|
|
724
|
+
export interface BacktestStrategy {
|
|
725
|
+
entry_filters: Record<string, unknown>;
|
|
726
|
+
exit_filters: Record<string, unknown>;
|
|
727
|
+
asset_type?: string;
|
|
728
|
+
sector?: string;
|
|
729
|
+
[key: string]: unknown;
|
|
730
|
+
}
|
|
731
|
+
export interface BacktestOptions {
|
|
732
|
+
period?: string;
|
|
733
|
+
[key: string]: unknown;
|
|
734
|
+
}
|
|
735
|
+
export interface BacktestResponse {
|
|
736
|
+
status: string;
|
|
737
|
+
performance: {
|
|
738
|
+
total_return_pct: number;
|
|
739
|
+
max_drawdown_pct?: number;
|
|
740
|
+
sharpe_ratio?: number;
|
|
741
|
+
win_rate?: number;
|
|
742
|
+
total_trades?: number;
|
|
743
|
+
[key: string]: unknown;
|
|
744
|
+
};
|
|
745
|
+
trades?: Array<Record<string, unknown>>;
|
|
746
|
+
[key: string]: unknown;
|
|
747
|
+
}
|
|
748
|
+
export interface CorrelationOptions {
|
|
749
|
+
days?: number;
|
|
750
|
+
}
|
|
751
|
+
export interface CorrelationResponse {
|
|
752
|
+
status: string;
|
|
753
|
+
tickers: string[];
|
|
754
|
+
matrix: number[][];
|
|
755
|
+
period_days?: number;
|
|
756
|
+
[key: string]: unknown;
|
|
757
|
+
}
|
|
758
|
+
export interface NewsImpactResponse {
|
|
759
|
+
status: string;
|
|
760
|
+
symbol: string;
|
|
761
|
+
impacts?: Array<Record<string, unknown>>;
|
|
762
|
+
[key: string]: unknown;
|
|
763
|
+
}
|
|
764
|
+
export interface CompetitorsResponse {
|
|
765
|
+
status: string;
|
|
766
|
+
symbol: string;
|
|
767
|
+
competitors?: Array<Record<string, unknown>>;
|
|
768
|
+
[key: string]: unknown;
|
|
769
|
+
}
|
|
770
|
+
export interface TranscriptsOptions {
|
|
771
|
+
days?: number;
|
|
772
|
+
}
|
|
773
|
+
export interface TranscriptsResponse {
|
|
774
|
+
status: string;
|
|
775
|
+
symbol: string;
|
|
776
|
+
transcripts?: Array<Record<string, unknown>>;
|
|
777
|
+
[key: string]: unknown;
|
|
778
|
+
}
|
|
779
|
+
//# sourceMappingURL=types.d.ts.map
|