getTierLimits
Stock Screening Platform - Frontend API v0.1.0
Stock Screening Platform - Frontend API / utils/freemiumConfig / getTierLimits
Function: getTierLimits()
getTierLimits(
tier): {maxScreeningResults:20;dailyScreeningLimit:10;maxCompareStocks:2;chartTimeframes: readonly ["1D","1W","1M"];technicalIndicators:3;canSavePresets:false;canExportResults:false;canViewFinancials:false;canViewAllTechnicals:false;canAddToWatchlist:false;maxWatchlists:0;maxStocksPerWatchlist:0; } | {maxScreeningResults:-1;dailyScreeningLimit:-1;maxCompareStocks:5;chartTimeframes: readonly ["1D","1W","1M","3M","6M","1Y","3Y"];technicalIndicators:-1;canSavePresets:true;canExportResults:true;canViewFinancials:true;canViewAllTechnicals:true;canAddToWatchlist:true;maxWatchlists:10;maxStocksPerWatchlist:100; } | {maxScreeningResults:-1;dailyScreeningLimit:-1;maxCompareStocks:10;chartTimeframes: readonly ["1D","1W","1M","3M","6M","1Y","3Y","5Y"];technicalIndicators:-1;canSavePresets:true;canExportResults:true;canViewFinancials:true;canViewAllTechnicals:true;canAddToWatchlist:true;maxWatchlists:-1;maxStocksPerWatchlist:-1;aiRecommendations:true;apiAccess:true;priceAlerts:true; }
Defined in: src/utils/freemiumConfig.ts:136
Get limits for a specific tier.
Parameters
tier
The freemium tier
Returns
{ maxScreeningResults: 20; dailyScreeningLimit: 10; maxCompareStocks: 2; chartTimeframes: readonly ["1D", "1W", "1M"]; technicalIndicators: 3; canSavePresets: false; canExportResults: false; canViewFinancials: false; canViewAllTechnicals: false; canAddToWatchlist: false; maxWatchlists: 0; maxStocksPerWatchlist: 0; }
maxScreeningResults
readonlymaxScreeningResults:20=20
Maximum number of results shown in screening (vs. full results)
dailyScreeningLimit
readonlydailyScreeningLimit:10=10
Daily limit for screening operations
maxCompareStocks
readonlymaxCompareStocks:2=2
Maximum number of stocks that can be compared simultaneously
chartTimeframes
readonlychartTimeframes: readonly ["1D","1W","1M"]
Available chart timeframes for price charts
technicalIndicators
readonlytechnicalIndicators:3=3
Number of technical indicators available
canSavePresets
readonlycanSavePresets:false=false
Can save filter presets
canExportResults
readonlycanExportResults:false=false
Can export results to CSV
canViewFinancials
readonlycanViewFinancials:false=false
Can view financial statements
canViewAllTechnicals
readonlycanViewAllTechnicals:false=false
Can view all technical indicators
canAddToWatchlist
readonlycanAddToWatchlist:false=false
Can add stocks to watchlist
maxWatchlists
readonlymaxWatchlists:0=0
Maximum number of watchlists
maxStocksPerWatchlist
readonlymaxStocksPerWatchlist:0=0
Maximum stocks per watchlist
{ maxScreeningResults: -1; dailyScreeningLimit: -1; maxCompareStocks: 5; chartTimeframes: readonly ["1D", "1W", "1M", "3M", "6M", "1Y", "3Y"]; technicalIndicators: -1; canSavePresets: true; canExportResults: true; canViewFinancials: true; canViewAllTechnicals: true; canAddToWatchlist: true; maxWatchlists: 10; maxStocksPerWatchlist: 100; }
maxScreeningResults
readonlymaxScreeningResults:-1=-1
Maximum number of results shown in screening (-1 = unlimited)
dailyScreeningLimit
readonlydailyScreeningLimit:-1=-1
Daily limit for screening operations (-1 = unlimited)
maxCompareStocks
readonlymaxCompareStocks:5=5
Maximum number of stocks that can be compared simultaneously
chartTimeframes
readonlychartTimeframes: readonly ["1D","1W","1M","3M","6M","1Y","3Y"]
Available chart timeframes for price charts
technicalIndicators
readonlytechnicalIndicators:-1=-1
Number of technical indicators available (-1 = all)
canSavePresets
readonlycanSavePresets:true=true
Can save filter presets
canExportResults
readonlycanExportResults:true=true
Can export results to CSV
canViewFinancials
readonlycanViewFinancials:true=true
Can view financial statements
canViewAllTechnicals
readonlycanViewAllTechnicals:true=true
Can view all technical indicators
canAddToWatchlist
readonlycanAddToWatchlist:true=true
Can add stocks to watchlist
maxWatchlists
readonlymaxWatchlists:10=10
Maximum number of watchlists
maxStocksPerWatchlist
readonlymaxStocksPerWatchlist:100=100
Maximum stocks per watchlist
{ maxScreeningResults: -1; dailyScreeningLimit: -1; maxCompareStocks: 10; chartTimeframes: readonly ["1D", "1W", "1M", "3M", "6M", "1Y", "3Y", "5Y"]; technicalIndicators: -1; canSavePresets: true; canExportResults: true; canViewFinancials: true; canViewAllTechnicals: true; canAddToWatchlist: true; maxWatchlists: -1; maxStocksPerWatchlist: -1; aiRecommendations: true; apiAccess: true; priceAlerts: true; }
maxScreeningResults
readonlymaxScreeningResults:-1=-1
Maximum number of results shown in screening (-1 = unlimited)
dailyScreeningLimit
readonlydailyScreeningLimit:-1=-1
Daily limit for screening operations (-1 = unlimited)
maxCompareStocks
readonlymaxCompareStocks:10=10
Maximum number of stocks that can be compared simultaneously
chartTimeframes
readonlychartTimeframes: readonly ["1D","1W","1M","3M","6M","1Y","3Y","5Y"]
Available chart timeframes for price charts
technicalIndicators
readonlytechnicalIndicators:-1=-1
Number of technical indicators available (-1 = all)
canSavePresets
readonlycanSavePresets:true=true
Can save filter presets
canExportResults
readonlycanExportResults:true=true
Can export results to CSV
canViewFinancials
readonlycanViewFinancials:true=true
Can view financial statements
canViewAllTechnicals
readonlycanViewAllTechnicals:true=true
Can view all technical indicators
canAddToWatchlist
readonlycanAddToWatchlist:true=true
Can add stocks to watchlist
maxWatchlists
readonlymaxWatchlists:-1=-1
Maximum number of watchlists (-1 = unlimited)
maxStocksPerWatchlist
readonlymaxStocksPerWatchlist:-1=-1
Maximum stocks per watchlist (-1 = unlimited)
aiRecommendations
readonlyaiRecommendations:true=true
AI-powered stock recommendations
apiAccess
readonlyapiAccess:true=true
API access enabled
priceAlerts
readonlypriceAlerts:true=true
Price alerts enabled
Configuration object for the specified tier
Example
const limits = getTierLimits('free')
console.log(limits.maxScreeningResults) // -1 (unlimited)