@axionquant/mcp 1.0.4 → 1.0.5
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/index.js +589 -12
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -99,6 +99,83 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
99
99
|
},
|
|
100
100
|
|
|
101
101
|
// ---------- ETF (note plural endpoints) ----------
|
|
102
|
+
{
|
|
103
|
+
name: "etf_tickers",
|
|
104
|
+
description: "List etf tickers, optionally filtered by country or exchange",
|
|
105
|
+
inputSchema: {
|
|
106
|
+
type: "object",
|
|
107
|
+
properties: {
|
|
108
|
+
country: { type: "string", description: "Filter by country (e.g., 'america')" },
|
|
109
|
+
exchange: { type: "string", description: "Filter by exchange (e.g., 'NASDAQ')" }
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: "etf_gainers",
|
|
115
|
+
description: "Get top ETF gainers",
|
|
116
|
+
inputSchema: { type: "object", properties: {} }
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: "etf_losers",
|
|
120
|
+
description: "Get top ETF losers",
|
|
121
|
+
inputSchema: { type: "object", properties: {} }
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: "etf_list_market",
|
|
125
|
+
description: "Get unique market values for ETFs",
|
|
126
|
+
inputSchema: { type: "object", properties: {} }
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "etf_list_country",
|
|
130
|
+
description: "Get unique country values for ETFs",
|
|
131
|
+
inputSchema: { type: "object", properties: {} }
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: "etf_list_currency",
|
|
135
|
+
description: "Get unique currency values for ETFs",
|
|
136
|
+
inputSchema: { type: "object", properties: {} }
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "etf_list_sector",
|
|
140
|
+
description: "Get unique sector values for ETFs",
|
|
141
|
+
inputSchema: { type: "object", properties: {} }
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: "etf_list_industry",
|
|
145
|
+
description: "Get unique industry values for ETFs",
|
|
146
|
+
inputSchema: { type: "object", properties: {} }
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: "etf_list_type",
|
|
150
|
+
description: "Get unique type values for ETFs",
|
|
151
|
+
inputSchema: { type: "object", properties: {} }
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: "etf_quote",
|
|
155
|
+
description: "Get an ETF quote",
|
|
156
|
+
inputSchema: {
|
|
157
|
+
type: "object",
|
|
158
|
+
properties: {
|
|
159
|
+
ticker: { type: "string", description: "ETF ticker (e.g., SPY)" }
|
|
160
|
+
},
|
|
161
|
+
required: ["ticker"]
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "etf_prices",
|
|
166
|
+
description: "Get historical price data for an etf",
|
|
167
|
+
inputSchema: {
|
|
168
|
+
type: "object",
|
|
169
|
+
properties: {
|
|
170
|
+
ticker: { type: "string", description: "ETF ticker" },
|
|
171
|
+
from: { type: "string", description: "Start date (YYYY-MM-DD)" },
|
|
172
|
+
to: { type: "string", description: "End date (YYYY-MM-DD)" },
|
|
173
|
+
frame: { type: "string", description: "Time frame (e.g., '1d', '1wk', '1mo')" }
|
|
174
|
+
},
|
|
175
|
+
required: ["ticker"]
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
|
|
102
179
|
{
|
|
103
180
|
name: "etf_fund",
|
|
104
181
|
description: "Get ETF fund information including ratings and metrics",
|
|
@@ -132,6 +209,17 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
132
209
|
required: ["ticker"]
|
|
133
210
|
}
|
|
134
211
|
},
|
|
212
|
+
{
|
|
213
|
+
name: "etf_weights",
|
|
214
|
+
description: "Find what percentage of each sector industry and stocks make up the ETF",
|
|
215
|
+
inputSchema: {
|
|
216
|
+
type: "object",
|
|
217
|
+
properties: {
|
|
218
|
+
ticker: { type: "string", description: "Stock ticker (e.g., AAPL)" }
|
|
219
|
+
},
|
|
220
|
+
required: ["ticker"]
|
|
221
|
+
}
|
|
222
|
+
},
|
|
135
223
|
|
|
136
224
|
// ---------- Supply Chain ----------
|
|
137
225
|
{
|
|
@@ -180,9 +268,49 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
180
268
|
}
|
|
181
269
|
}
|
|
182
270
|
},
|
|
271
|
+
{
|
|
272
|
+
name: "stocks_gainers",
|
|
273
|
+
description: "Get top stock gainers",
|
|
274
|
+
inputSchema: { type: "object", properties: {} }
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
name: "stocks_losers",
|
|
278
|
+
description: "Get top stock losers",
|
|
279
|
+
inputSchema: { type: "object", properties: {} }
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: "stocks_list_market",
|
|
283
|
+
description: "Get unique market values for stocks",
|
|
284
|
+
inputSchema: { type: "object", properties: {} }
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: "stocks_list_country",
|
|
288
|
+
description: "Get unique country values for stocks",
|
|
289
|
+
inputSchema: { type: "object", properties: {} }
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
name: "stocks_list_currency",
|
|
293
|
+
description: "Get unique currency values for stocks",
|
|
294
|
+
inputSchema: { type: "object", properties: {} }
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
name: "stocks_list_sector",
|
|
298
|
+
description: "Get unique sector values for stocks",
|
|
299
|
+
inputSchema: { type: "object", properties: {} }
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
name: "stocks_list_industry",
|
|
303
|
+
description: "Get unique industry values for stocks",
|
|
304
|
+
inputSchema: { type: "object", properties: {} }
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
name: "stocks_list_type",
|
|
308
|
+
description: "Get unique type values for stocks",
|
|
309
|
+
inputSchema: { type: "object", properties: {} }
|
|
310
|
+
},
|
|
183
311
|
{
|
|
184
312
|
name: "stocks_quote",
|
|
185
|
-
description: "Get
|
|
313
|
+
description: "Get a stock quote",
|
|
186
314
|
inputSchema: {
|
|
187
315
|
type: "object",
|
|
188
316
|
properties: {
|
|
@@ -217,9 +345,34 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
217
345
|
}
|
|
218
346
|
}
|
|
219
347
|
},
|
|
348
|
+
{
|
|
349
|
+
name: "crypto_gainers",
|
|
350
|
+
description: "Get top crypto gainers",
|
|
351
|
+
inputSchema: { type: "object", properties: {} }
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
name: "crypto_losers",
|
|
355
|
+
description: "Get top crypto losers",
|
|
356
|
+
inputSchema: { type: "object", properties: {} }
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
name: "crypto_list_category",
|
|
360
|
+
description: "Get unique category values for crypto",
|
|
361
|
+
inputSchema: { type: "object", properties: {} }
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
name: "crypto_list_rating",
|
|
365
|
+
description: "Get unique rating values for crypto",
|
|
366
|
+
inputSchema: { type: "object", properties: {} }
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: "crypto_list_type",
|
|
370
|
+
description: "Get unique type values for crypto",
|
|
371
|
+
inputSchema: { type: "object", properties: {} }
|
|
372
|
+
},
|
|
220
373
|
{
|
|
221
374
|
name: "crypto_quote",
|
|
222
|
-
description: "Get
|
|
375
|
+
description: "Get a cryptocurrency quote",
|
|
223
376
|
inputSchema: {
|
|
224
377
|
type: "object",
|
|
225
378
|
properties: {
|
|
@@ -255,9 +408,34 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
255
408
|
}
|
|
256
409
|
}
|
|
257
410
|
},
|
|
411
|
+
{
|
|
412
|
+
name: "forex_gainers",
|
|
413
|
+
description: "Get top forex gainers",
|
|
414
|
+
inputSchema: { type: "object", properties: {} }
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
name: "forex_losers",
|
|
418
|
+
description: "Get top forex losers",
|
|
419
|
+
inputSchema: { type: "object", properties: {} }
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
name: "forex_list_exchange",
|
|
423
|
+
description: "Get unique exchange values for forex",
|
|
424
|
+
inputSchema: { type: "object", properties: {} }
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
name: "forex_list_rating",
|
|
428
|
+
description: "Get unique rating values for forex",
|
|
429
|
+
inputSchema: { type: "object", properties: {} }
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
name: "forex_list_country",
|
|
433
|
+
description: "Get unique country values for forex",
|
|
434
|
+
inputSchema: { type: "object", properties: {} }
|
|
435
|
+
},
|
|
258
436
|
{
|
|
259
437
|
name: "forex_quote",
|
|
260
|
-
description: "Get
|
|
438
|
+
description: "Get a forex pair quote",
|
|
261
439
|
inputSchema: {
|
|
262
440
|
type: "object",
|
|
263
441
|
properties: {
|
|
@@ -292,9 +470,39 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
292
470
|
}
|
|
293
471
|
}
|
|
294
472
|
},
|
|
473
|
+
{
|
|
474
|
+
name: "futures_gainers",
|
|
475
|
+
description: "Get top futures gainers",
|
|
476
|
+
inputSchema: { type: "object", properties: {} }
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
name: "futures_losers",
|
|
480
|
+
description: "Get top futures losers",
|
|
481
|
+
inputSchema: { type: "object", properties: {} }
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
name: "futures_list_exchange",
|
|
485
|
+
description: "Get unique exchange values for futures",
|
|
486
|
+
inputSchema: { type: "object", properties: {} }
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
name: "futures_list_currency",
|
|
490
|
+
description: "Get unique currency values for futures",
|
|
491
|
+
inputSchema: { type: "object", properties: {} }
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
name: "futures_list_timezone",
|
|
495
|
+
description: "Get unique timezone values for futures",
|
|
496
|
+
inputSchema: { type: "object", properties: {} }
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
name: "futures_list_country",
|
|
500
|
+
description: "Get unique country values for futures",
|
|
501
|
+
inputSchema: { type: "object", properties: {} }
|
|
502
|
+
},
|
|
295
503
|
{
|
|
296
504
|
name: "futures_quote",
|
|
297
|
-
description: "Get
|
|
505
|
+
description: "Get a futures contract quote",
|
|
298
506
|
inputSchema: {
|
|
299
507
|
type: "object",
|
|
300
508
|
properties: {
|
|
@@ -329,9 +537,34 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
329
537
|
}
|
|
330
538
|
}
|
|
331
539
|
},
|
|
540
|
+
{
|
|
541
|
+
name: "indices_gainers",
|
|
542
|
+
description: "Get top index gainers",
|
|
543
|
+
inputSchema: { type: "object", properties: {} }
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
name: "indices_losers",
|
|
547
|
+
description: "Get top index losers",
|
|
548
|
+
inputSchema: { type: "object", properties: {} }
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
name: "indices_list_exchange",
|
|
552
|
+
description: "Get unique exchange values for indices",
|
|
553
|
+
inputSchema: { type: "object", properties: {} }
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
name: "indices_list_timezone",
|
|
557
|
+
description: "Get unique timezone values for indices",
|
|
558
|
+
inputSchema: { type: "object", properties: {} }
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
name: "indices_list_country",
|
|
562
|
+
description: "Get unique country values for indices",
|
|
563
|
+
inputSchema: { type: "object", properties: {} }
|
|
564
|
+
},
|
|
332
565
|
{
|
|
333
566
|
name: "indices_quote",
|
|
334
|
-
description: "Get
|
|
567
|
+
description: "Get an index quote",
|
|
335
568
|
inputSchema: {
|
|
336
569
|
type: "object",
|
|
337
570
|
properties: {
|
|
@@ -354,6 +587,28 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
354
587
|
required: ["ticker"]
|
|
355
588
|
}
|
|
356
589
|
},
|
|
590
|
+
{
|
|
591
|
+
name: "indices_components",
|
|
592
|
+
description: "Get the component stocks that make up an index",
|
|
593
|
+
inputSchema: {
|
|
594
|
+
type: "object",
|
|
595
|
+
properties: {
|
|
596
|
+
ticker: { type: "string", description: "Index ticker (e.g., 'SPX', 'AXJO')" }
|
|
597
|
+
},
|
|
598
|
+
required: ["ticker"]
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
name: "indices_exposure",
|
|
603
|
+
description: "Find which indices hold a specific ticker as a component",
|
|
604
|
+
inputSchema: {
|
|
605
|
+
type: "object",
|
|
606
|
+
properties: {
|
|
607
|
+
ticker: { type: "string", description: "Stock ticker to find index exposure for" }
|
|
608
|
+
},
|
|
609
|
+
required: ["ticker"]
|
|
610
|
+
}
|
|
611
|
+
},
|
|
357
612
|
|
|
358
613
|
// ---------- Economics ----------
|
|
359
614
|
{
|
|
@@ -389,10 +644,22 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
389
644
|
country: { type: "string", description: "Country code(s) comma-separated" },
|
|
390
645
|
minImportance: { type: "integer", minimum: -1, maximum: 3, description: "Minimum importance (0-3)" },
|
|
391
646
|
currency: { type: "string", description: "Currency code(s) comma-separated" },
|
|
392
|
-
category: { type: "string", description: "Category (e.g., 'gov', 'infl')" }
|
|
647
|
+
category: { type: "string", description: "Category (e.g., 'gov', 'infl')" },
|
|
648
|
+
limit: { type: "integer", description: "Number of events to return (default 10)" }
|
|
393
649
|
}
|
|
394
650
|
}
|
|
395
651
|
},
|
|
652
|
+
{
|
|
653
|
+
name: "econ_find",
|
|
654
|
+
description: "Find economic datasets using natural language description (AI-powered)",
|
|
655
|
+
inputSchema: {
|
|
656
|
+
type: "object",
|
|
657
|
+
properties: {
|
|
658
|
+
query: { type: "string", description: "Natural language description of the data you need" }
|
|
659
|
+
},
|
|
660
|
+
required: ["query"]
|
|
661
|
+
}
|
|
662
|
+
},
|
|
396
663
|
|
|
397
664
|
// ---------- News ----------
|
|
398
665
|
{
|
|
@@ -433,6 +700,17 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
433
700
|
required: ["category"]
|
|
434
701
|
}
|
|
435
702
|
},
|
|
703
|
+
{
|
|
704
|
+
name: "news_article",
|
|
705
|
+
description: "Get the full URL for a news article by its encoded ID",
|
|
706
|
+
inputSchema: {
|
|
707
|
+
type: "object",
|
|
708
|
+
properties: {
|
|
709
|
+
id: { type: "string", description: "Article ID from news results" }
|
|
710
|
+
},
|
|
711
|
+
required: ["id"]
|
|
712
|
+
}
|
|
713
|
+
},
|
|
436
714
|
|
|
437
715
|
// ---------- Sentiment ----------
|
|
438
716
|
{
|
|
@@ -595,6 +873,32 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
595
873
|
required: ["ticker", "year", "quarter"]
|
|
596
874
|
}
|
|
597
875
|
},
|
|
876
|
+
{
|
|
877
|
+
name: "earnings_transcript",
|
|
878
|
+
description: "Get earnings call transcript for a ticker, year, and quarter",
|
|
879
|
+
inputSchema: {
|
|
880
|
+
type: "object",
|
|
881
|
+
properties: {
|
|
882
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
883
|
+
year: { type: "string", description: "Year (e.g., '2024')" },
|
|
884
|
+
quarter: { type: "string", description: "Quarter (e.g., '2')" }
|
|
885
|
+
},
|
|
886
|
+
required: ["ticker", "year", "quarter"]
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
name: "earnings_transcript_sentiment",
|
|
891
|
+
description: "Get sentiment analysis of an earnings call transcript",
|
|
892
|
+
inputSchema: {
|
|
893
|
+
type: "object",
|
|
894
|
+
properties: {
|
|
895
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
896
|
+
year: { type: "string", description: "Year (e.g., '2024')" },
|
|
897
|
+
quarter: { type: "string", description: "Quarter (e.g., '2')" }
|
|
898
|
+
},
|
|
899
|
+
required: ["ticker", "year", "quarter"]
|
|
900
|
+
}
|
|
901
|
+
},
|
|
598
902
|
|
|
599
903
|
// ---------- Filings ----------
|
|
600
904
|
{
|
|
@@ -644,6 +948,28 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
644
948
|
required: ["year", "quarter"]
|
|
645
949
|
}
|
|
646
950
|
},
|
|
951
|
+
{
|
|
952
|
+
name: "filings_document_text",
|
|
953
|
+
description: "Get the full text of an SEC filing document by its document ID",
|
|
954
|
+
inputSchema: {
|
|
955
|
+
type: "object",
|
|
956
|
+
properties: {
|
|
957
|
+
documentId: { type: "string", description: "Document ID (base64-encoded URL) from filing results" }
|
|
958
|
+
},
|
|
959
|
+
required: ["documentId"]
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
name: "filings_document_sentiment",
|
|
964
|
+
description: "Get sentiment analysis of an SEC filing document",
|
|
965
|
+
inputSchema: {
|
|
966
|
+
type: "object",
|
|
967
|
+
properties: {
|
|
968
|
+
documentId: { type: "string", description: "Document ID (base64-encoded URL) from filing results" }
|
|
969
|
+
},
|
|
970
|
+
required: ["documentId"]
|
|
971
|
+
}
|
|
972
|
+
},
|
|
647
973
|
|
|
648
974
|
// ---------- Financials ----------
|
|
649
975
|
{
|
|
@@ -812,6 +1138,45 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
812
1138
|
required: ["ticker"]
|
|
813
1139
|
}
|
|
814
1140
|
},
|
|
1141
|
+
{
|
|
1142
|
+
name: "financials_balance_sheet",
|
|
1143
|
+
description: "Get balance sheet statement for a ticker (optionally by year/quarter)",
|
|
1144
|
+
inputSchema: {
|
|
1145
|
+
type: "object",
|
|
1146
|
+
properties: {
|
|
1147
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
1148
|
+
year: { type: "integer", description: "Year (e.g., 2024)" },
|
|
1149
|
+
quarter: { type: "integer", description: "Quarter (1-4)" }
|
|
1150
|
+
},
|
|
1151
|
+
required: ["ticker"]
|
|
1152
|
+
}
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
name: "financials_income_statement",
|
|
1156
|
+
description: "Get income statement for a ticker (optionally by year/quarter)",
|
|
1157
|
+
inputSchema: {
|
|
1158
|
+
type: "object",
|
|
1159
|
+
properties: {
|
|
1160
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
1161
|
+
year: { type: "integer", description: "Year (e.g., 2024)" },
|
|
1162
|
+
quarter: { type: "integer", description: "Quarter (1-4)" }
|
|
1163
|
+
},
|
|
1164
|
+
required: ["ticker"]
|
|
1165
|
+
}
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
name: "financials_cash_flow_statement",
|
|
1169
|
+
description: "Get cash flow statement for a ticker (optionally by year/quarter)",
|
|
1170
|
+
inputSchema: {
|
|
1171
|
+
type: "object",
|
|
1172
|
+
properties: {
|
|
1173
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
1174
|
+
year: { type: "integer", description: "Year (e.g., 2024)" },
|
|
1175
|
+
quarter: { type: "integer", description: "Quarter (1-4)" }
|
|
1176
|
+
},
|
|
1177
|
+
required: ["ticker"]
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
815
1180
|
|
|
816
1181
|
// ---------- Insiders / Ownership ----------
|
|
817
1182
|
{
|
|
@@ -921,6 +1286,51 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
921
1286
|
}
|
|
922
1287
|
|
|
923
1288
|
// ---------- ETF (plural endpoints) ----------
|
|
1289
|
+
|
|
1290
|
+
else if (name === "etf_tickers") {
|
|
1291
|
+
endpoint = `etfs/tickers${buildQueryString({ country: args.country, exchange: args.exchange })}`;
|
|
1292
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1293
|
+
}
|
|
1294
|
+
else if (name === "etf_gainers") {
|
|
1295
|
+
endpoint = `etfs/gainers`;
|
|
1296
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1297
|
+
}
|
|
1298
|
+
else if (name === "etf_losers") {
|
|
1299
|
+
endpoint = `etfs/losers`;
|
|
1300
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1301
|
+
}
|
|
1302
|
+
else if (name === "etf_list_market") {
|
|
1303
|
+
endpoint = `etfs/list/market`;
|
|
1304
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1305
|
+
}
|
|
1306
|
+
else if (name === "etf_list_country") {
|
|
1307
|
+
endpoint = `etfs/list/country`;
|
|
1308
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1309
|
+
}
|
|
1310
|
+
else if (name === "etf_list_currency") {
|
|
1311
|
+
endpoint = `etfs/list/currency`;
|
|
1312
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1313
|
+
}
|
|
1314
|
+
else if (name === "etf_list_sector") {
|
|
1315
|
+
endpoint = `etfs/list/sector`;
|
|
1316
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1317
|
+
}
|
|
1318
|
+
else if (name === "etf_list_industry") {
|
|
1319
|
+
endpoint = `etfs/list/industry`;
|
|
1320
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1321
|
+
}
|
|
1322
|
+
else if (name === "etf_list_type") {
|
|
1323
|
+
endpoint = `etfs/list/type`;
|
|
1324
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1325
|
+
}
|
|
1326
|
+
else if (name === "etf_quote") {
|
|
1327
|
+
endpoint = `etfs/${args.ticker}/quote`;
|
|
1328
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1329
|
+
}
|
|
1330
|
+
else if (name === "etf_prices") {
|
|
1331
|
+
endpoint = `etfs/${args.ticker}/prices${buildQueryString({ from: args.from, to: args.to, frame: args.frame })}`;
|
|
1332
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1333
|
+
}
|
|
924
1334
|
else if (name === "etf_fund") {
|
|
925
1335
|
endpoint = `etfs/${args.ticker}/fund`;
|
|
926
1336
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
@@ -933,6 +1343,11 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
933
1343
|
endpoint = `etfs/${args.ticker}/exposure`;
|
|
934
1344
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
935
1345
|
}
|
|
1346
|
+
else if (name === "etf_weights") {
|
|
1347
|
+
endpoint = `etfs/${args.ticker}/weights`;
|
|
1348
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1349
|
+
}
|
|
1350
|
+
|
|
936
1351
|
|
|
937
1352
|
// ---------- Supply Chain ----------
|
|
938
1353
|
else if (name === "supply_chain_customers") {
|
|
@@ -953,8 +1368,40 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
953
1368
|
endpoint = `stocks/tickers${buildQueryString({ country: args.country, exchange: args.exchange })}`;
|
|
954
1369
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
955
1370
|
}
|
|
1371
|
+
else if (name === "stocks_gainers") {
|
|
1372
|
+
endpoint = `stocks/gainers`;
|
|
1373
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1374
|
+
}
|
|
1375
|
+
else if (name === "stocks_losers") {
|
|
1376
|
+
endpoint = `stocks/losers`;
|
|
1377
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1378
|
+
}
|
|
1379
|
+
else if (name === "stocks_list_market") {
|
|
1380
|
+
endpoint = `stocks/list/market`;
|
|
1381
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1382
|
+
}
|
|
1383
|
+
else if (name === "stocks_list_country") {
|
|
1384
|
+
endpoint = `stocks/list/country`;
|
|
1385
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1386
|
+
}
|
|
1387
|
+
else if (name === "stocks_list_currency") {
|
|
1388
|
+
endpoint = `stocks/list/currency`;
|
|
1389
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1390
|
+
}
|
|
1391
|
+
else if (name === "stocks_list_sector") {
|
|
1392
|
+
endpoint = `stocks/list/sector`;
|
|
1393
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1394
|
+
}
|
|
1395
|
+
else if (name === "stocks_list_industry") {
|
|
1396
|
+
endpoint = `stocks/list/industry`;
|
|
1397
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1398
|
+
}
|
|
1399
|
+
else if (name === "stocks_list_type") {
|
|
1400
|
+
endpoint = `stocks/list/type`;
|
|
1401
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1402
|
+
}
|
|
956
1403
|
else if (name === "stocks_quote") {
|
|
957
|
-
endpoint = `stocks/${args.ticker}`;
|
|
1404
|
+
endpoint = `stocks/${args.ticker}/quote`;
|
|
958
1405
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
959
1406
|
}
|
|
960
1407
|
else if (name === "stocks_prices") {
|
|
@@ -967,8 +1414,28 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
967
1414
|
endpoint = `crypto/tickers${buildQueryString({ type: args.type })}`;
|
|
968
1415
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
969
1416
|
}
|
|
1417
|
+
else if (name === "crypto_gainers") {
|
|
1418
|
+
endpoint = `crypto/gainers`;
|
|
1419
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1420
|
+
}
|
|
1421
|
+
else if (name === "crypto_losers") {
|
|
1422
|
+
endpoint = `crypto/losers`;
|
|
1423
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1424
|
+
}
|
|
1425
|
+
else if (name === "crypto_list_category") {
|
|
1426
|
+
endpoint = `crypto/list/category`;
|
|
1427
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1428
|
+
}
|
|
1429
|
+
else if (name === "crypto_list_rating") {
|
|
1430
|
+
endpoint = `crypto/list/rating`;
|
|
1431
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1432
|
+
}
|
|
1433
|
+
else if (name === "crypto_list_type") {
|
|
1434
|
+
endpoint = `crypto/list/type`;
|
|
1435
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1436
|
+
}
|
|
970
1437
|
else if (name === "crypto_quote") {
|
|
971
|
-
endpoint = `crypto/${args.ticker}`;
|
|
1438
|
+
endpoint = `crypto/${args.ticker}/quote`;
|
|
972
1439
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
973
1440
|
}
|
|
974
1441
|
else if (name === "crypto_prices") {
|
|
@@ -981,8 +1448,28 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
981
1448
|
endpoint = `forex/tickers${buildQueryString({ country: args.country, exchange: args.exchange })}`;
|
|
982
1449
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
983
1450
|
}
|
|
1451
|
+
else if (name === "forex_gainers") {
|
|
1452
|
+
endpoint = `forex/gainers`;
|
|
1453
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1454
|
+
}
|
|
1455
|
+
else if (name === "forex_losers") {
|
|
1456
|
+
endpoint = `forex/losers`;
|
|
1457
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1458
|
+
}
|
|
1459
|
+
else if (name === "forex_list_exchange") {
|
|
1460
|
+
endpoint = `forex/list/exchange`;
|
|
1461
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1462
|
+
}
|
|
1463
|
+
else if (name === "forex_list_rating") {
|
|
1464
|
+
endpoint = `forex/list/rating`;
|
|
1465
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1466
|
+
}
|
|
1467
|
+
else if (name === "forex_list_country") {
|
|
1468
|
+
endpoint = `forex/list/country`;
|
|
1469
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1470
|
+
}
|
|
984
1471
|
else if (name === "forex_quote") {
|
|
985
|
-
endpoint = `forex/${args.ticker}`;
|
|
1472
|
+
endpoint = `forex/${args.ticker}/quote`;
|
|
986
1473
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
987
1474
|
}
|
|
988
1475
|
else if (name === "forex_prices") {
|
|
@@ -995,8 +1482,32 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
995
1482
|
endpoint = `futures/tickers${buildQueryString({ exchange: args.exchange })}`;
|
|
996
1483
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
997
1484
|
}
|
|
1485
|
+
else if (name === "futures_gainers") {
|
|
1486
|
+
endpoint = `futures/gainers`;
|
|
1487
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1488
|
+
}
|
|
1489
|
+
else if (name === "futures_losers") {
|
|
1490
|
+
endpoint = `futures/losers`;
|
|
1491
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1492
|
+
}
|
|
1493
|
+
else if (name === "futures_list_exchange") {
|
|
1494
|
+
endpoint = `futures/list/exchange`;
|
|
1495
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1496
|
+
}
|
|
1497
|
+
else if (name === "futures_list_currency") {
|
|
1498
|
+
endpoint = `futures/list/currency`;
|
|
1499
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1500
|
+
}
|
|
1501
|
+
else if (name === "futures_list_timezone") {
|
|
1502
|
+
endpoint = `futures/list/timezone`;
|
|
1503
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1504
|
+
}
|
|
1505
|
+
else if (name === "futures_list_country") {
|
|
1506
|
+
endpoint = `futures/list/country`;
|
|
1507
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1508
|
+
}
|
|
998
1509
|
else if (name === "futures_quote") {
|
|
999
|
-
endpoint = `futures/${args.ticker}`;
|
|
1510
|
+
endpoint = `futures/${args.ticker}/quote`;
|
|
1000
1511
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1001
1512
|
}
|
|
1002
1513
|
else if (name === "futures_prices") {
|
|
@@ -1009,14 +1520,42 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1009
1520
|
endpoint = `indices/tickers${buildQueryString({ exchange: args.exchange })}`;
|
|
1010
1521
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1011
1522
|
}
|
|
1523
|
+
else if (name === "indices_gainers") {
|
|
1524
|
+
endpoint = `indices/gainers`;
|
|
1525
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1526
|
+
}
|
|
1527
|
+
else if (name === "indices_losers") {
|
|
1528
|
+
endpoint = `indices/losers`;
|
|
1529
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1530
|
+
}
|
|
1531
|
+
else if (name === "indices_list_exchange") {
|
|
1532
|
+
endpoint = `indices/list/exchange`;
|
|
1533
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1534
|
+
}
|
|
1535
|
+
else if (name === "indices_list_timezone") {
|
|
1536
|
+
endpoint = `indices/list/timezone`;
|
|
1537
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1538
|
+
}
|
|
1539
|
+
else if (name === "indices_list_country") {
|
|
1540
|
+
endpoint = `indices/list/country`;
|
|
1541
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1542
|
+
}
|
|
1012
1543
|
else if (name === "indices_quote") {
|
|
1013
|
-
endpoint = `indices/${args.ticker}`;
|
|
1544
|
+
endpoint = `indices/${args.ticker}/quote`;
|
|
1014
1545
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1015
1546
|
}
|
|
1016
1547
|
else if (name === "indices_prices") {
|
|
1017
1548
|
endpoint = `indices/${args.ticker}/prices${buildQueryString({ from: args.from, to: args.to, frame: args.frame })}`;
|
|
1018
1549
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1019
1550
|
}
|
|
1551
|
+
else if (name === "indices_components") {
|
|
1552
|
+
endpoint = `indices/${args.ticker}/components`;
|
|
1553
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1554
|
+
}
|
|
1555
|
+
else if (name === "indices_exposure") {
|
|
1556
|
+
endpoint = `indices/${args.ticker}/exposure`;
|
|
1557
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1558
|
+
}
|
|
1020
1559
|
|
|
1021
1560
|
// ---------- Economics ----------
|
|
1022
1561
|
else if (name === "econ_search") {
|
|
@@ -1034,10 +1573,15 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1034
1573
|
country: args.country,
|
|
1035
1574
|
minImportance: args.minImportance,
|
|
1036
1575
|
currency: args.currency,
|
|
1037
|
-
category: args.category
|
|
1576
|
+
category: args.category,
|
|
1577
|
+
limit: args.limit
|
|
1038
1578
|
})}`;
|
|
1039
1579
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1040
1580
|
}
|
|
1581
|
+
else if (name === "econ_find") {
|
|
1582
|
+
endpoint = `econ/find${buildQueryString({ query: args.query })}`;
|
|
1583
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1584
|
+
}
|
|
1041
1585
|
|
|
1042
1586
|
// ---------- News ----------
|
|
1043
1587
|
else if (name === "news_general") {
|
|
@@ -1056,6 +1600,10 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1056
1600
|
endpoint = `news/category/${encodeURIComponent(args.category)}`;
|
|
1057
1601
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1058
1602
|
}
|
|
1603
|
+
else if (name === "news_article") {
|
|
1604
|
+
endpoint = `news/article/${args.id}`;
|
|
1605
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1606
|
+
}
|
|
1059
1607
|
|
|
1060
1608
|
// ---------- Sentiment ----------
|
|
1061
1609
|
else if (name === "sentiment_all") {
|
|
@@ -1118,6 +1666,15 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1118
1666
|
endpoint = `earnings/${args.ticker}/report${buildQueryString({ year: args.year, quarter: args.quarter })}`;
|
|
1119
1667
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1120
1668
|
}
|
|
1669
|
+
else if (name === "earnings_transcript") {
|
|
1670
|
+
endpoint = `earnings/${args.ticker}/transcript${buildQueryString({ year: args.year, quarter: args.quarter })}`;
|
|
1671
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1672
|
+
}
|
|
1673
|
+
else if (name === "earnings_transcript_sentiment") {
|
|
1674
|
+
const id = btoa(JSON.stringify({ ticker: args.ticker, year: args.year, quarter: args.quarter }));
|
|
1675
|
+
endpoint = `earnings/transcript/sentiment${buildQueryString({ id })}`;
|
|
1676
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1677
|
+
}
|
|
1121
1678
|
|
|
1122
1679
|
// ---------- Filings ----------
|
|
1123
1680
|
else if (name === "filings_recent") {
|
|
@@ -1136,6 +1693,14 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1136
1693
|
endpoint = `filings/search${buildQueryString({ year: args.year, quarter: args.quarter, form: args.form, ticker: args.ticker })}`;
|
|
1137
1694
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1138
1695
|
}
|
|
1696
|
+
else if (name === "filings_document_text") {
|
|
1697
|
+
endpoint = `filings/document/text${buildQueryString({ documentId: args.documentId })}`;
|
|
1698
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1699
|
+
}
|
|
1700
|
+
else if (name === "filings_document_sentiment") {
|
|
1701
|
+
endpoint = `filings/document/sentiment${buildQueryString({ documentId: args.documentId })}`;
|
|
1702
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1703
|
+
}
|
|
1139
1704
|
|
|
1140
1705
|
// ---------- Financials ----------
|
|
1141
1706
|
else if (name === "financials_revenue") {
|
|
@@ -1194,6 +1759,18 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1194
1759
|
endpoint = `financials/${args.ticker}/snapshot`;
|
|
1195
1760
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1196
1761
|
}
|
|
1762
|
+
else if (name === "financials_balance_sheet") {
|
|
1763
|
+
endpoint = `financials/statements/${args.ticker}/balance${buildQueryString({ year: args.year, quarter: args.quarter })}`;
|
|
1764
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1765
|
+
}
|
|
1766
|
+
else if (name === "financials_income_statement") {
|
|
1767
|
+
endpoint = `financials/statements/${args.ticker}/income${buildQueryString({ year: args.year, quarter: args.quarter })}`;
|
|
1768
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1769
|
+
}
|
|
1770
|
+
else if (name === "financials_cash_flow_statement") {
|
|
1771
|
+
endpoint = `financials/statements/${args.ticker}/cashflow${buildQueryString({ year: args.year, quarter: args.quarter })}`;
|
|
1772
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1773
|
+
}
|
|
1197
1774
|
|
|
1198
1775
|
// ---------- Insiders ----------
|
|
1199
1776
|
else if (name === "insiders_funds") {
|