pub const ANNUAL_PERIOD: &str = "annual";
pub const ANNUAL_LIMIT: u16 = 5;
pub const NEWS_LIMIT: u16 = 10;
pub const PAGE: u16 = 0;
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct Endpoint {
path: &'static str,
}
impl Endpoint {
#[must_use]
pub const fn new(path: &'static str) -> Self {
Self { path }
}
#[must_use]
pub const fn path(self) -> &'static str {
self.path
}
}
pub const SEARCH_SYMBOL: Endpoint = Endpoint::new("search-symbol");
pub const PROFILE: Endpoint = Endpoint::new("profile");
pub const KEY_EXECUTIVES: Endpoint = Endpoint::new("key-executives");
pub const QUOTE: Endpoint = Endpoint::new("quote");
pub const HISTORICAL_PRICE_EOD_FULL: Endpoint = Endpoint::new("historical-price-eod/full");
pub const CRYPTOCURRENCY_LIST: Endpoint = Endpoint::new("cryptocurrency-list");
pub const STOCK_PEERS: Endpoint = Endpoint::new("stock-peers");
pub const STOCK_LIST: Endpoint = Endpoint::new("stock-list");
pub const ETF_HOLDINGS: Endpoint = Endpoint::new("etf/holdings");
pub const DIVIDENDS: Endpoint = Endpoint::new("dividends");
pub const SPLITS: Endpoint = Endpoint::new("splits");
pub const SEC_FILINGS_SEARCH_SYMBOL: Endpoint = Endpoint::new("sec-filings-search/symbol");
pub const EARNINGS_CALENDAR: Endpoint = Endpoint::new("earnings-calendar");
pub const TREASURY_RATES: Endpoint = Endpoint::new("treasury-rates");
pub const TECHNICAL_SMA: Endpoint = Endpoint::new("technical-indicators/sma");
pub const STOCK_PRICE_CHANGE: Endpoint = Endpoint::new("stock-price-change");
pub const SHARES_FLOAT: Endpoint = Endpoint::new("shares-float");
pub const FINANCIAL_REPORTS_DATES: Endpoint = Endpoint::new("financial-reports-dates");
pub const FINANCIAL_REPORTS_JSON: Endpoint = Endpoint::new("financial-reports-json");
pub const INCOME_STATEMENT: Endpoint = Endpoint::new("income-statement");
pub const INCOME_STATEMENT_AS_REPORTED: Endpoint = Endpoint::new("income-statement-as-reported");
pub const BALANCE_SHEET_STATEMENT: Endpoint = Endpoint::new("balance-sheet-statement");
pub const CASH_FLOW_STATEMENT: Endpoint = Endpoint::new("cash-flow-statement");
pub const RATIOS: Endpoint = Endpoint::new("ratios");
pub const KEY_METRICS: Endpoint = Endpoint::new("key-metrics");
pub const INCOME_STATEMENT_GROWTH: Endpoint = Endpoint::new("income-statement-growth");
pub const BALANCE_SHEET_STATEMENT_GROWTH: Endpoint =
Endpoint::new("balance-sheet-statement-growth");
pub const CASH_FLOW_STATEMENT_GROWTH: Endpoint = Endpoint::new("cash-flow-statement-growth");
pub const ENTERPRISE_VALUES: Endpoint = Endpoint::new("enterprise-values");
pub const FINANCIAL_SCORES: Endpoint = Endpoint::new("financial-scores");
pub const ANALYST_ESTIMATES: Endpoint = Endpoint::new("analyst-estimates");
pub const GRADES: Endpoint = Endpoint::new("grades");
pub const PRICE_TARGET_CONSENSUS: Endpoint = Endpoint::new("price-target-consensus");
pub const PRICE_TARGET_SUMMARY: Endpoint = Endpoint::new("price-target-summary");
pub const GRADES_CONSENSUS: Endpoint = Endpoint::new("grades-consensus");
pub const RATINGS_HISTORICAL: Endpoint = Endpoint::new("ratings-historical");
pub const INSIDER_TRADING_LATEST: Endpoint = Endpoint::new("insider-trading/latest");
pub const ECONOMIC_INDICATORS: Endpoint = Endpoint::new("economic-indicators");
pub const STOCK_NEWS: Endpoint = Endpoint::new("news/stock");
pub const GENERAL_NEWS: Endpoint = Endpoint::new("news/general-latest");
pub const FMP_ARTICLES: Endpoint = Endpoint::new("fmp-articles");
pub const FOREX_NEWS: Endpoint = Endpoint::new("news/forex-latest");
pub const CRYPTO_NEWS: Endpoint = Endpoint::new("news/crypto-latest");