Skip to main content

isFeatureAvailable

Stock Screening Platform - Frontend API v0.1.0


Stock Screening Platform - Frontend API / utils/freemiumConfig / isFeatureAvailable

Function: isFeatureAvailable()

isFeatureAvailable(tier, feature): boolean

Defined in: src/utils/freemiumConfig.ts:153

Check if a feature is available for a tier.

Parameters

tier

FreemiumTier

The freemium tier

feature

The feature name

"maxScreeningResults" | "dailyScreeningLimit" | "maxCompareStocks" | "chartTimeframes" | "technicalIndicators" | "canSavePresets" | "canExportResults" | "canViewFinancials" | "canViewAllTechnicals" | "canAddToWatchlist" | "maxWatchlists" | "maxStocksPerWatchlist"

Returns

boolean

True if feature is available for this tier

Example

const canExport = isFeatureAvailable('public', 'canExportResults')
console.log(canExport) // false