finance-sentiment 2.0.0 → 2.2.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/README.md +53 -0
- package/dist/index.cjs +127 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +377 -4
- package/dist/index.d.ts +377 -4
- package/dist/index.js +126 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,16 @@ interface StockOptions {
|
|
|
48
48
|
type CompareOptions = StockOptions;
|
|
49
49
|
type SearchOptions = Pick<TrendingGroupOptions, 'days' | 'limit'>;
|
|
50
50
|
type MarketSentimentOptions = Pick<TrendingGroupOptions, 'days'>;
|
|
51
|
+
interface RawMentionsOptions {
|
|
52
|
+
/** Time period in days. */
|
|
53
|
+
days?: number;
|
|
54
|
+
/** Max raw rows to return. */
|
|
55
|
+
limit?: number;
|
|
56
|
+
/** Pagination offset. Default: 0. */
|
|
57
|
+
offset?: number;
|
|
58
|
+
/** Include inherited Reddit thread context where supported. */
|
|
59
|
+
includeInherited?: boolean;
|
|
60
|
+
}
|
|
51
61
|
interface NewsSourceOptions {
|
|
52
62
|
/** Optional strict source filter (canonical source id or known alias). */
|
|
53
63
|
source?: string;
|
|
@@ -127,6 +137,9 @@ interface SchedulerStatus {
|
|
|
127
137
|
success_rate?: number | null;
|
|
128
138
|
note?: string | null;
|
|
129
139
|
}
|
|
140
|
+
interface CryptoSchedulerStatus extends SchedulerStatus {
|
|
141
|
+
timed_out_scrape_threads?: number;
|
|
142
|
+
}
|
|
130
143
|
interface HealthResponse {
|
|
131
144
|
status: string;
|
|
132
145
|
service?: string | null;
|
|
@@ -136,12 +149,67 @@ interface HealthResponse {
|
|
|
136
149
|
scheduler?: SchedulerStatus | null;
|
|
137
150
|
error?: string | null;
|
|
138
151
|
}
|
|
152
|
+
interface CryptoHealthResponse {
|
|
153
|
+
status: string;
|
|
154
|
+
service?: string | null;
|
|
155
|
+
version?: string | null;
|
|
156
|
+
total_mentions?: number;
|
|
157
|
+
tokens_tracked?: number;
|
|
158
|
+
scheduler?: CryptoSchedulerStatus | null;
|
|
159
|
+
error?: string | null;
|
|
160
|
+
}
|
|
161
|
+
interface XSchedulerStatus {
|
|
162
|
+
running: boolean;
|
|
163
|
+
last_scrape?: string | null;
|
|
164
|
+
scrape_count?: number;
|
|
165
|
+
error_count?: number;
|
|
166
|
+
success_rate?: number;
|
|
167
|
+
note?: string | null;
|
|
168
|
+
}
|
|
169
|
+
interface XHealthResponse {
|
|
170
|
+
status: string;
|
|
171
|
+
service: string;
|
|
172
|
+
version: string;
|
|
173
|
+
total_mentions: number;
|
|
174
|
+
tickers_tracked: number;
|
|
175
|
+
scheduler?: XSchedulerStatus | null;
|
|
176
|
+
error?: string | null;
|
|
177
|
+
}
|
|
178
|
+
type PolymarketSchedulerStatus = XSchedulerStatus;
|
|
179
|
+
interface PolymarketHealthResponse {
|
|
180
|
+
status: string;
|
|
181
|
+
service: string;
|
|
182
|
+
version: string;
|
|
183
|
+
total_mentions: number;
|
|
184
|
+
tickers_tracked: number;
|
|
185
|
+
scheduler?: PolymarketSchedulerStatus | null;
|
|
186
|
+
error?: string | null;
|
|
187
|
+
}
|
|
188
|
+
interface RootHealthSummary {
|
|
189
|
+
total: number;
|
|
190
|
+
healthy: number;
|
|
191
|
+
unhealthy: number;
|
|
192
|
+
unhealthy_services: string[];
|
|
193
|
+
}
|
|
194
|
+
interface RootHealthResponse {
|
|
195
|
+
status: string;
|
|
196
|
+
service?: string | null;
|
|
197
|
+
version: string;
|
|
198
|
+
summary: RootHealthSummary;
|
|
199
|
+
services: Record<string, unknown>;
|
|
200
|
+
}
|
|
139
201
|
interface StatsResponse {
|
|
140
202
|
total_mentions: number;
|
|
141
203
|
unique_tickers: number;
|
|
142
|
-
|
|
204
|
+
mentions_today?: number;
|
|
205
|
+
unique_tickers_today?: number;
|
|
206
|
+
tickers?: string[];
|
|
143
207
|
supported_tickers: number;
|
|
144
208
|
}
|
|
209
|
+
type RedditStatsResponse = StatsResponse;
|
|
210
|
+
interface NewsStatsResponse extends StatsResponse {
|
|
211
|
+
tickers: string[];
|
|
212
|
+
}
|
|
145
213
|
interface StockSearchSummary {
|
|
146
214
|
mentions: number;
|
|
147
215
|
buzz_score: number;
|
|
@@ -210,6 +278,24 @@ interface RedditMarketSentiment {
|
|
|
210
278
|
trend_history: number[];
|
|
211
279
|
drivers: MarketSentimentDriver[];
|
|
212
280
|
}
|
|
281
|
+
interface RedditRawMentionItem {
|
|
282
|
+
post_id?: string | null;
|
|
283
|
+
comment_id?: string | null;
|
|
284
|
+
subreddit?: string | null;
|
|
285
|
+
author?: string | null;
|
|
286
|
+
text_snippet: string;
|
|
287
|
+
created_utc: string;
|
|
288
|
+
upvotes: number;
|
|
289
|
+
sentiment_score?: number | null;
|
|
290
|
+
sentiment_label?: string | null;
|
|
291
|
+
is_inherited: boolean;
|
|
292
|
+
}
|
|
293
|
+
interface RedditRawMentionsResponse {
|
|
294
|
+
ticker: string;
|
|
295
|
+
period_days: number;
|
|
296
|
+
count: number;
|
|
297
|
+
results: RedditRawMentionItem[];
|
|
298
|
+
}
|
|
213
299
|
interface TrendingGroupBase {
|
|
214
300
|
buzz_score: number;
|
|
215
301
|
trend: 'rising' | 'falling' | 'stable';
|
|
@@ -339,6 +425,24 @@ interface NewsMarketSentiment {
|
|
|
339
425
|
trend_history: number[];
|
|
340
426
|
drivers: MarketSentimentDriver[];
|
|
341
427
|
}
|
|
428
|
+
interface NewsRawMentionItem {
|
|
429
|
+
article_id?: string | null;
|
|
430
|
+
source: string;
|
|
431
|
+
url?: string | null;
|
|
432
|
+
title?: string | null;
|
|
433
|
+
summary?: string | null;
|
|
434
|
+
text_snippet: string;
|
|
435
|
+
author?: string | null;
|
|
436
|
+
created_utc?: string | null;
|
|
437
|
+
sentiment_score?: number | null;
|
|
438
|
+
sentiment_label?: string | null;
|
|
439
|
+
}
|
|
440
|
+
interface NewsRawMentionsResponse {
|
|
441
|
+
ticker: string;
|
|
442
|
+
period_days: number;
|
|
443
|
+
count: number;
|
|
444
|
+
results: NewsRawMentionItem[];
|
|
445
|
+
}
|
|
342
446
|
interface XTrendingStock {
|
|
343
447
|
ticker: string;
|
|
344
448
|
buzz_score: number;
|
|
@@ -401,6 +505,23 @@ interface XSearchResultItem {
|
|
|
401
505
|
summary: XSearchSummary;
|
|
402
506
|
}
|
|
403
507
|
type XSearchResponse = SearchResponse<XSearchResultItem>;
|
|
508
|
+
interface XCompareStockItem {
|
|
509
|
+
ticker: string;
|
|
510
|
+
company_name?: string | null;
|
|
511
|
+
buzz_score: number;
|
|
512
|
+
trend?: 'rising' | 'falling' | 'stable' | null;
|
|
513
|
+
mentions: number;
|
|
514
|
+
unique_tweets: number;
|
|
515
|
+
sentiment_score?: number | null;
|
|
516
|
+
bullish_pct?: number | null;
|
|
517
|
+
bearish_pct?: number | null;
|
|
518
|
+
total_upvotes: number;
|
|
519
|
+
trend_history?: number[];
|
|
520
|
+
}
|
|
521
|
+
interface XCompareResponse {
|
|
522
|
+
period_days: number;
|
|
523
|
+
stocks: XCompareStockItem[];
|
|
524
|
+
}
|
|
404
525
|
interface XTopTweet {
|
|
405
526
|
text_snippet: string;
|
|
406
527
|
sentiment_score?: number | null;
|
|
@@ -446,12 +567,41 @@ interface XMarketSentiment {
|
|
|
446
567
|
trend_history: number[];
|
|
447
568
|
drivers: MarketSentimentDriver[];
|
|
448
569
|
}
|
|
570
|
+
interface XRawMentionItem {
|
|
571
|
+
tweet_id: string;
|
|
572
|
+
author?: string | null;
|
|
573
|
+
text_snippet: string;
|
|
574
|
+
created_utc?: string | null;
|
|
575
|
+
likes: number;
|
|
576
|
+
retweets: number;
|
|
577
|
+
views?: number | null;
|
|
578
|
+
is_reply: boolean;
|
|
579
|
+
parent_tweet_id?: string | null;
|
|
580
|
+
sentiment_score?: number | null;
|
|
581
|
+
sentiment_label?: string | null;
|
|
582
|
+
}
|
|
583
|
+
interface XRawMentionsResponse {
|
|
584
|
+
ticker: string;
|
|
585
|
+
period_days: number;
|
|
586
|
+
count: number;
|
|
587
|
+
results: XRawMentionItem[];
|
|
588
|
+
}
|
|
589
|
+
interface XStatsResponse {
|
|
590
|
+
total_appearances?: number;
|
|
591
|
+
unique_tickers?: number;
|
|
592
|
+
mentions_today?: number;
|
|
593
|
+
unique_tickers_today?: number;
|
|
594
|
+
tickers?: string[];
|
|
595
|
+
supported_tickers?: number;
|
|
596
|
+
last_fetch?: string | null;
|
|
597
|
+
}
|
|
449
598
|
interface PolymarketTrendingStock {
|
|
450
599
|
ticker: string;
|
|
451
600
|
buzz_score: number;
|
|
452
601
|
trend: 'rising' | 'falling' | 'stable';
|
|
453
602
|
trade_count: number;
|
|
454
603
|
market_count: number;
|
|
604
|
+
current_market_count: number;
|
|
455
605
|
unique_traders?: number | null;
|
|
456
606
|
bullish_pct: number;
|
|
457
607
|
bearish_pct: number;
|
|
@@ -488,6 +638,7 @@ interface PolymarketStockDetail {
|
|
|
488
638
|
period_days?: number | null;
|
|
489
639
|
trade_count?: number | null;
|
|
490
640
|
market_count?: number | null;
|
|
641
|
+
current_market_count?: number | null;
|
|
491
642
|
unique_traders?: number | null;
|
|
492
643
|
sentiment_score?: number | null;
|
|
493
644
|
positive_count?: number | null;
|
|
@@ -504,6 +655,7 @@ interface PolymarketTrendingGroupBase {
|
|
|
504
655
|
trend: 'rising' | 'falling' | 'stable';
|
|
505
656
|
trade_count: number;
|
|
506
657
|
market_count: number;
|
|
658
|
+
current_market_count: number;
|
|
507
659
|
unique_tickers: number;
|
|
508
660
|
unique_traders?: number | null;
|
|
509
661
|
sentiment_score?: number | null;
|
|
@@ -525,6 +677,7 @@ interface PolymarketCompareStockItem {
|
|
|
525
677
|
trend?: 'rising' | 'falling' | 'stable' | null;
|
|
526
678
|
trade_count: number;
|
|
527
679
|
market_count: number;
|
|
680
|
+
current_market_count: number;
|
|
528
681
|
unique_traders?: number | null;
|
|
529
682
|
sentiment_score?: number | null;
|
|
530
683
|
bullish_pct?: number | null;
|
|
@@ -547,6 +700,7 @@ interface PolymarketMarketSentiment {
|
|
|
547
700
|
trend?: 'rising' | 'falling' | 'stable' | null;
|
|
548
701
|
trade_count: number;
|
|
549
702
|
market_count: number;
|
|
703
|
+
current_market_count: number;
|
|
550
704
|
unique_traders: number;
|
|
551
705
|
total_liquidity: number;
|
|
552
706
|
active_tickers: number;
|
|
@@ -564,6 +718,7 @@ interface PolymarketSearchSummary {
|
|
|
564
718
|
trend?: 'rising' | 'falling' | 'stable' | null;
|
|
565
719
|
trade_count: number;
|
|
566
720
|
market_count: number;
|
|
721
|
+
current_market_count: number;
|
|
567
722
|
unique_traders?: number | null;
|
|
568
723
|
sentiment_score?: number | null;
|
|
569
724
|
bullish_pct?: number | null;
|
|
@@ -586,6 +741,179 @@ interface PolymarketSearchResponse {
|
|
|
586
741
|
period_days: number;
|
|
587
742
|
results: PolymarketSearchResultItem[];
|
|
588
743
|
}
|
|
744
|
+
interface PolymarketRawMentionItem {
|
|
745
|
+
condition_id: string;
|
|
746
|
+
event_id: string;
|
|
747
|
+
market_slug?: string | null;
|
|
748
|
+
question: string;
|
|
749
|
+
market_type: string;
|
|
750
|
+
strike_price?: number | null;
|
|
751
|
+
yes_price?: number | null;
|
|
752
|
+
no_price?: number | null;
|
|
753
|
+
reference_price?: number | null;
|
|
754
|
+
reference_price_timestamp?: string | null;
|
|
755
|
+
liquidity: number;
|
|
756
|
+
volume_24h: number;
|
|
757
|
+
trade_count: number;
|
|
758
|
+
buy_trades: number;
|
|
759
|
+
sell_trades: number;
|
|
760
|
+
unique_traders: number;
|
|
761
|
+
sentiment_score?: number | null;
|
|
762
|
+
sentiment_label?: string | null;
|
|
763
|
+
end_date?: string | null;
|
|
764
|
+
active: boolean;
|
|
765
|
+
fetched_at: string;
|
|
766
|
+
}
|
|
767
|
+
interface PolymarketRawMentionsResponse {
|
|
768
|
+
ticker: string;
|
|
769
|
+
period_days: number;
|
|
770
|
+
count: number;
|
|
771
|
+
results: PolymarketRawMentionItem[];
|
|
772
|
+
}
|
|
773
|
+
interface PolymarketStatsResponse {
|
|
774
|
+
total_trades: number;
|
|
775
|
+
total_markets: number;
|
|
776
|
+
unique_tickers: number;
|
|
777
|
+
mentions_today?: number;
|
|
778
|
+
unique_tickers_today?: number;
|
|
779
|
+
tickers: string[];
|
|
780
|
+
supported_tickers: number;
|
|
781
|
+
}
|
|
782
|
+
interface CryptoTrendingToken {
|
|
783
|
+
symbol: string;
|
|
784
|
+
name?: string | null;
|
|
785
|
+
buzz_score: number;
|
|
786
|
+
trend: 'rising' | 'falling' | 'stable';
|
|
787
|
+
mentions: number;
|
|
788
|
+
unique_posts: number;
|
|
789
|
+
subreddit_count: number;
|
|
790
|
+
sentiment_score?: number | null;
|
|
791
|
+
bullish_pct?: number | null;
|
|
792
|
+
bearish_pct?: number | null;
|
|
793
|
+
total_upvotes: number;
|
|
794
|
+
trend_history?: number[];
|
|
795
|
+
}
|
|
796
|
+
interface CryptoSubredditCount {
|
|
797
|
+
subreddit: string;
|
|
798
|
+
count: number;
|
|
799
|
+
}
|
|
800
|
+
interface CryptoDailyTrendItem {
|
|
801
|
+
date: string;
|
|
802
|
+
mentions: number;
|
|
803
|
+
sentiment_score?: number | null;
|
|
804
|
+
buzz_score?: number | null;
|
|
805
|
+
}
|
|
806
|
+
interface CryptoTopMention {
|
|
807
|
+
text_snippet: string;
|
|
808
|
+
sentiment_score?: number | null;
|
|
809
|
+
sentiment_label?: string | null;
|
|
810
|
+
upvotes: number;
|
|
811
|
+
subreddit?: string | null;
|
|
812
|
+
created_utc: string;
|
|
813
|
+
}
|
|
814
|
+
interface CryptoTokenSentiment {
|
|
815
|
+
symbol: string;
|
|
816
|
+
name?: string | null;
|
|
817
|
+
found: boolean;
|
|
818
|
+
buzz_score?: number | null;
|
|
819
|
+
mentions?: number | null;
|
|
820
|
+
sentiment_score?: number | null;
|
|
821
|
+
positive_count?: number | null;
|
|
822
|
+
negative_count?: number | null;
|
|
823
|
+
neutral_count?: number | null;
|
|
824
|
+
total_upvotes?: number | null;
|
|
825
|
+
unique_posts?: number | null;
|
|
826
|
+
subreddit_count?: number | null;
|
|
827
|
+
trend?: 'rising' | 'falling' | 'stable' | null;
|
|
828
|
+
bullish_pct?: number | null;
|
|
829
|
+
bearish_pct?: number | null;
|
|
830
|
+
period_days?: number | null;
|
|
831
|
+
top_subreddits?: CryptoSubredditCount[] | null;
|
|
832
|
+
daily_trend?: CryptoDailyTrendItem[] | null;
|
|
833
|
+
top_mentions?: CryptoTopMention[] | null;
|
|
834
|
+
}
|
|
835
|
+
interface CryptoSearchSummary {
|
|
836
|
+
mentions: number;
|
|
837
|
+
buzz_score: number;
|
|
838
|
+
trend?: 'rising' | 'falling' | 'stable' | null;
|
|
839
|
+
sentiment_score?: number | null;
|
|
840
|
+
bullish_pct?: number | null;
|
|
841
|
+
bearish_pct?: number | null;
|
|
842
|
+
unique_posts: number;
|
|
843
|
+
subreddit_count: number;
|
|
844
|
+
total_upvotes: number;
|
|
845
|
+
}
|
|
846
|
+
interface CryptoSearchItem {
|
|
847
|
+
symbol: string;
|
|
848
|
+
name: string;
|
|
849
|
+
market_cap_rank?: number | null;
|
|
850
|
+
market_cap_usd?: number | null;
|
|
851
|
+
aliases?: string[];
|
|
852
|
+
summary: CryptoSearchSummary;
|
|
853
|
+
}
|
|
854
|
+
interface CryptoSearchResponse {
|
|
855
|
+
query: string;
|
|
856
|
+
count: number;
|
|
857
|
+
period_days: number;
|
|
858
|
+
results: CryptoSearchItem[];
|
|
859
|
+
}
|
|
860
|
+
interface CryptoCompareResponse {
|
|
861
|
+
period_days: number;
|
|
862
|
+
tokens: CryptoCompareTokenItem[];
|
|
863
|
+
}
|
|
864
|
+
interface CryptoCompareTokenItem {
|
|
865
|
+
symbol: string;
|
|
866
|
+
name?: string | null;
|
|
867
|
+
buzz_score: number;
|
|
868
|
+
trend?: 'rising' | 'falling' | 'stable' | null;
|
|
869
|
+
mentions: number;
|
|
870
|
+
unique_posts: number;
|
|
871
|
+
subreddit_count: number;
|
|
872
|
+
sentiment_score?: number | null;
|
|
873
|
+
bullish_pct?: number | null;
|
|
874
|
+
bearish_pct?: number | null;
|
|
875
|
+
total_upvotes: number;
|
|
876
|
+
trend_history?: number[];
|
|
877
|
+
}
|
|
878
|
+
interface CryptoRawMentionItem extends RedditRawMentionItem {
|
|
879
|
+
}
|
|
880
|
+
interface CryptoRawMentionsResponse {
|
|
881
|
+
symbol: string;
|
|
882
|
+
period_days: number;
|
|
883
|
+
count: number;
|
|
884
|
+
results: CryptoRawMentionItem[];
|
|
885
|
+
}
|
|
886
|
+
interface CryptoMarketSentiment {
|
|
887
|
+
buzz_score: number;
|
|
888
|
+
trend?: 'rising' | 'falling' | 'stable' | null;
|
|
889
|
+
mentions: number;
|
|
890
|
+
unique_posts: number;
|
|
891
|
+
subreddit_count: number;
|
|
892
|
+
total_upvotes: number;
|
|
893
|
+
active_tickers: number;
|
|
894
|
+
sentiment_score?: number | null;
|
|
895
|
+
positive_count: number;
|
|
896
|
+
negative_count: number;
|
|
897
|
+
neutral_count: number;
|
|
898
|
+
bullish_pct: number;
|
|
899
|
+
bearish_pct: number;
|
|
900
|
+
trend_history: number[];
|
|
901
|
+
drivers: CryptoMarketSentimentDriver[];
|
|
902
|
+
}
|
|
903
|
+
interface CryptoMarketSentimentDriver {
|
|
904
|
+
symbol: string;
|
|
905
|
+
mentions: number;
|
|
906
|
+
buzz_score: number;
|
|
907
|
+
sentiment_score?: number | null;
|
|
908
|
+
}
|
|
909
|
+
interface CryptoStatsResponse {
|
|
910
|
+
total_mentions: number;
|
|
911
|
+
unique_tokens: number;
|
|
912
|
+
mentions_today?: number;
|
|
913
|
+
unique_tokens_today?: number;
|
|
914
|
+
tokens: string[];
|
|
915
|
+
supported_tokens: number;
|
|
916
|
+
}
|
|
589
917
|
type QueryParams = Record<string, string | number | undefined>;
|
|
590
918
|
declare class HttpClient {
|
|
591
919
|
private baseUrl;
|
|
@@ -611,6 +939,8 @@ declare class RedditNamespace extends PlatformNamespace {
|
|
|
611
939
|
trendingCountries(options?: TrendingGroupOptions): Promise<TrendingCountry[]>;
|
|
612
940
|
/** Get sentiment for a specific stock ticker. */
|
|
613
941
|
stock(ticker: string, options?: StockOptions): Promise<StockSentiment>;
|
|
942
|
+
/** Get raw Reddit mentions for a specific stock ticker. */
|
|
943
|
+
mentions(ticker: string, options?: RawMentionsOptions): Promise<RedditRawMentionsResponse>;
|
|
614
944
|
/** Get AI-generated explanation for a stock's trend. */
|
|
615
945
|
explain(ticker: string): Promise<StockExplanationResponse>;
|
|
616
946
|
/** Search for stocks by name or ticker. */
|
|
@@ -619,6 +949,10 @@ declare class RedditNamespace extends PlatformNamespace {
|
|
|
619
949
|
compare(tickers: string[], options?: CompareOptions): Promise<CompareResponse>;
|
|
620
950
|
/** Get the service-level Reddit market sentiment snapshot. */
|
|
621
951
|
marketSentiment(options?: MarketSentimentOptions): Promise<RedditMarketSentiment>;
|
|
952
|
+
/** Get Reddit stock data statistics. */
|
|
953
|
+
stats(): Promise<RedditStatsResponse>;
|
|
954
|
+
/** Get public Reddit stock service health. */
|
|
955
|
+
health(): Promise<HealthResponse>;
|
|
622
956
|
}
|
|
623
957
|
declare class NewsNamespace extends PlatformNamespace {
|
|
624
958
|
/** @internal */
|
|
@@ -631,6 +965,8 @@ declare class NewsNamespace extends PlatformNamespace {
|
|
|
631
965
|
trendingCountries(options?: NewsTrendingGroupOptions): Promise<NewsTrendingCountry[]>;
|
|
632
966
|
/** Get sentiment for a specific stock ticker from news. */
|
|
633
967
|
stock(ticker: string, options?: StockOptions): Promise<NewsStockSentiment>;
|
|
968
|
+
/** Get raw news mentions for a specific stock ticker. */
|
|
969
|
+
mentions(ticker: string, options?: RawMentionsOptions): Promise<NewsRawMentionsResponse>;
|
|
634
970
|
/** Get AI-generated explanation for a stock's news trend. */
|
|
635
971
|
explain(ticker: string): Promise<StockExplanationResponse>;
|
|
636
972
|
/** Search for stocks by name or ticker in news. */
|
|
@@ -640,7 +976,7 @@ declare class NewsNamespace extends PlatformNamespace {
|
|
|
640
976
|
/** Get the service-level News market sentiment snapshot. */
|
|
641
977
|
marketSentiment(options?: MarketSentimentOptions): Promise<NewsMarketSentiment>;
|
|
642
978
|
/** Get news data statistics. */
|
|
643
|
-
stats(): Promise<
|
|
979
|
+
stats(): Promise<NewsStatsResponse>;
|
|
644
980
|
/** Get public news service health (no auth required on server side). */
|
|
645
981
|
health(): Promise<HealthResponse>;
|
|
646
982
|
}
|
|
@@ -655,14 +991,20 @@ declare class XNamespace extends PlatformNamespace {
|
|
|
655
991
|
trendingCountries(options?: TrendingGroupOptions): Promise<XTrendingCountry[]>;
|
|
656
992
|
/** Get X/Twitter sentiment for a specific stock ticker. */
|
|
657
993
|
stock(ticker: string, options?: StockOptions): Promise<XStockDetail>;
|
|
994
|
+
/** Get raw X/Twitter mentions for a specific stock ticker. */
|
|
995
|
+
mentions(ticker: string, options?: RawMentionsOptions): Promise<XRawMentionsResponse>;
|
|
658
996
|
/** Get AI-generated explanation for a stock's X/Twitter trend. */
|
|
659
997
|
explain(ticker: string): Promise<StockExplanationResponse>;
|
|
660
998
|
/** Search for stocks by name or ticker on X/Twitter. */
|
|
661
999
|
search(query: string, options?: SearchOptions): Promise<XSearchResponse>;
|
|
662
1000
|
/** Compare multiple stocks side-by-side on X/Twitter. */
|
|
663
|
-
compare(tickers: string[], options?: CompareOptions): Promise<
|
|
1001
|
+
compare(tickers: string[], options?: CompareOptions): Promise<XCompareResponse>;
|
|
664
1002
|
/** Get the service-level X/Twitter market sentiment snapshot. */
|
|
665
1003
|
marketSentiment(options?: MarketSentimentOptions): Promise<XMarketSentiment>;
|
|
1004
|
+
/** Get X/Twitter data statistics. */
|
|
1005
|
+
stats(): Promise<XStatsResponse>;
|
|
1006
|
+
/** Get public X/Twitter service health. */
|
|
1007
|
+
health(): Promise<XHealthResponse>;
|
|
666
1008
|
}
|
|
667
1009
|
declare class PolymarketNamespace extends PlatformNamespace {
|
|
668
1010
|
/** @internal */
|
|
@@ -675,18 +1017,47 @@ declare class PolymarketNamespace extends PlatformNamespace {
|
|
|
675
1017
|
trendingCountries(options?: TrendingGroupOptions): Promise<PolymarketTrendingCountry[]>;
|
|
676
1018
|
/** Get Polymarket sentiment for a specific stock ticker. */
|
|
677
1019
|
stock(ticker: string, options?: StockOptions): Promise<PolymarketStockDetail>;
|
|
1020
|
+
/** Get raw Polymarket snapshots for a specific stock ticker. */
|
|
1021
|
+
mentions(ticker: string, options?: RawMentionsOptions): Promise<PolymarketRawMentionsResponse>;
|
|
678
1022
|
/** Search for stocks by name or ticker on Polymarket. */
|
|
679
1023
|
search(query: string, options?: SearchOptions): Promise<PolymarketSearchResponse>;
|
|
680
1024
|
/** Compare multiple stocks side-by-side on Polymarket. */
|
|
681
1025
|
compare(tickers: string[], options?: CompareOptions): Promise<PolymarketCompareResponse>;
|
|
682
1026
|
/** Get the service-level Polymarket market sentiment snapshot. */
|
|
683
1027
|
marketSentiment(options?: MarketSentimentOptions): Promise<PolymarketMarketSentiment>;
|
|
1028
|
+
/** Get Polymarket data statistics. */
|
|
1029
|
+
stats(): Promise<PolymarketStatsResponse>;
|
|
1030
|
+
/** Get public Polymarket service health. */
|
|
1031
|
+
health(): Promise<PolymarketHealthResponse>;
|
|
1032
|
+
}
|
|
1033
|
+
declare class RedditCryptoNamespace extends PlatformNamespace {
|
|
1034
|
+
/** @internal */
|
|
1035
|
+
constructor(http: HttpClient);
|
|
1036
|
+
/** Get trending crypto tokens on Reddit. */
|
|
1037
|
+
trending(options?: TrendingGroupOptions): Promise<CryptoTrendingToken[]>;
|
|
1038
|
+
/** Get sentiment for a specific crypto token. */
|
|
1039
|
+
token(symbol: string, options?: StockOptions): Promise<CryptoTokenSentiment>;
|
|
1040
|
+
/** Get raw Reddit mentions for a specific crypto token. */
|
|
1041
|
+
mentions(symbol: string, options?: RawMentionsOptions): Promise<CryptoRawMentionsResponse>;
|
|
1042
|
+
/** Search crypto tokens by symbol, name, or alias. */
|
|
1043
|
+
search(query: string, options?: SearchOptions): Promise<CryptoSearchResponse>;
|
|
1044
|
+
/** Compare multiple crypto tokens side-by-side. */
|
|
1045
|
+
compare(symbols: string[], options?: CompareOptions): Promise<CryptoCompareResponse>;
|
|
1046
|
+
/** Get the service-level Reddit Crypto market sentiment snapshot. */
|
|
1047
|
+
marketSentiment(options?: MarketSentimentOptions): Promise<CryptoMarketSentiment>;
|
|
1048
|
+
/** Get Reddit crypto data statistics. */
|
|
1049
|
+
stats(): Promise<CryptoStatsResponse>;
|
|
1050
|
+
/** Get public Reddit crypto service health. */
|
|
1051
|
+
health(): Promise<CryptoHealthResponse>;
|
|
684
1052
|
}
|
|
685
1053
|
declare class AdanosClient {
|
|
686
1054
|
readonly news: NewsNamespace;
|
|
687
1055
|
readonly reddit: RedditNamespace;
|
|
1056
|
+
readonly crypto: RedditCryptoNamespace;
|
|
1057
|
+
readonly redditCrypto: RedditCryptoNamespace;
|
|
688
1058
|
readonly x: XNamespace;
|
|
689
1059
|
readonly polymarket: PolymarketNamespace;
|
|
1060
|
+
private readonly http;
|
|
690
1061
|
/**
|
|
691
1062
|
* Create a new Adanos Market Sentiment API client.
|
|
692
1063
|
*
|
|
@@ -695,7 +1066,9 @@ declare class AdanosClient {
|
|
|
695
1066
|
* @param options.timeout - Request timeout in ms. Default: 30000.
|
|
696
1067
|
*/
|
|
697
1068
|
constructor(options: ClientOptions);
|
|
1069
|
+
/** Get aggregate API health across all public market sentiment services. */
|
|
1070
|
+
health(): Promise<RootHealthResponse>;
|
|
698
1071
|
}
|
|
699
1072
|
declare const StockSentimentClient: typeof AdanosClient;
|
|
700
1073
|
|
|
701
|
-
export { AdanosClient, ApiError, type ClientOptions, type CompareOptions, type CompareResponse, type CompareStockItem, type DailyTrendItem, type HealthResponse, type MarketSentimentDriver, type MarketSentimentOptions, type NewsCompareOptions, type NewsCompareResponse, type NewsCompareStockItem, type NewsMarketSentiment, NewsNamespace, type NewsSearchResultItem, type NewsSearchSummary, type NewsSourceCount, type NewsSourceOptions, type NewsStockOptions, type NewsStockSentiment, type NewsTopMention, type NewsTrendingCountry, type NewsTrendingGroupOptions, type NewsTrendingOptions, type NewsTrendingSector, type NewsTrendingStock, type PolymarketCompareResponse, type PolymarketCompareStockItem, type PolymarketDailyTrendItem, type PolymarketMarketSentiment, type PolymarketMarketSentimentDriver, PolymarketNamespace, type PolymarketSearchResponse, type PolymarketSearchResultItem, type PolymarketSearchSummary, type PolymarketStockDetail, type PolymarketTopMention, type PolymarketTrendingCountry, type PolymarketTrendingSector, type PolymarketTrendingStock, type RedditMarketSentiment, RedditNamespace, type SchedulerStatus, type SearchOptions, type SearchResponse, type SearchResultItem, type StatsResponse, type StockExplanationResponse, type StockOptions, type StockSearchSummary, type StockSentiment, StockSentimentClient, StockSentimentError, type SubredditCount, type TopMention, type TrendingCountry, type TrendingGroupOptions, type TrendingOptions, type TrendingSector, type TrendingStock, type XDailyTrendItem, type XMarketSentiment, XNamespace, type XSearchResponse, type XSearchResultItem, type XSearchSummary, type XStockDetail, type XTopTweet, type XTrendingCountry, type XTrendingSector, type XTrendingStock };
|
|
1074
|
+
export { AdanosClient, ApiError, type ClientOptions, type CompareOptions, type CompareResponse, type CompareStockItem, type CryptoCompareResponse, type CryptoCompareTokenItem, type CryptoDailyTrendItem, type CryptoHealthResponse, type CryptoMarketSentiment, type CryptoMarketSentimentDriver, type CryptoRawMentionItem, type CryptoRawMentionsResponse, type CryptoSchedulerStatus, type CryptoSearchItem, type CryptoSearchResponse, type CryptoSearchSummary, type CryptoStatsResponse, type CryptoSubredditCount, type CryptoTokenSentiment, type CryptoTopMention, type CryptoTrendingToken, type DailyTrendItem, type HealthResponse, type MarketSentimentDriver, type MarketSentimentOptions, type NewsCompareOptions, type NewsCompareResponse, type NewsCompareStockItem, type NewsMarketSentiment, NewsNamespace, type NewsRawMentionItem, type NewsRawMentionsResponse, type NewsSearchResultItem, type NewsSearchSummary, type NewsSourceCount, type NewsSourceOptions, type NewsStatsResponse, type NewsStockOptions, type NewsStockSentiment, type NewsTopMention, type NewsTrendingCountry, type NewsTrendingGroupOptions, type NewsTrendingOptions, type NewsTrendingSector, type NewsTrendingStock, type PolymarketCompareResponse, type PolymarketCompareStockItem, type PolymarketDailyTrendItem, type PolymarketHealthResponse, type PolymarketMarketSentiment, type PolymarketMarketSentimentDriver, PolymarketNamespace, type PolymarketRawMentionItem, type PolymarketRawMentionsResponse, type PolymarketSchedulerStatus, type PolymarketSearchResponse, type PolymarketSearchResultItem, type PolymarketSearchSummary, type PolymarketStatsResponse, type PolymarketStockDetail, type PolymarketTopMention, type PolymarketTrendingCountry, type PolymarketTrendingSector, type PolymarketTrendingStock, type RawMentionsOptions, RedditCryptoNamespace, type RedditMarketSentiment, RedditNamespace, type RedditRawMentionItem, type RedditRawMentionsResponse, type RedditStatsResponse, type RootHealthResponse, type RootHealthSummary, type SchedulerStatus, type SearchOptions, type SearchResponse, type SearchResultItem, type StatsResponse, type StockExplanationResponse, type StockOptions, type StockSearchSummary, type StockSentiment, StockSentimentClient, StockSentimentError, type SubredditCount, type TopMention, type TrendingCountry, type TrendingGroupOptions, type TrendingOptions, type TrendingSector, type TrendingStock, type XCompareResponse, type XCompareStockItem, type XDailyTrendItem, type XHealthResponse, type XMarketSentiment, XNamespace, type XRawMentionItem, type XRawMentionsResponse, type XSchedulerStatus, type XSearchResponse, type XSearchResultItem, type XSearchSummary, type XStatsResponse, type XStockDetail, type XTopTweet, type XTrendingCountry, type XTrendingSector, type XTrendingStock };
|