UNPKG

tradingview-screener-ts

Version:

TypeScript port of TradingView Screener with 100% Python parity - Based on the original Python library by shner-elmo (https://github.com/shner-elmo/TradingView-Screener)

26 lines 790 B
/** * Utility functions for TradingView Screener */ /** * Technical rating values */ export type TechnicalRating = 'Strong Buy' | 'Buy' | 'Neutral' | 'Sell' | 'Strong Sell'; /** * Formats a numeric technical rating into a human-readable string * * @param rating - Numeric rating value * @returns Human-readable technical rating * * @example * ```typescript * formatTechnicalRating(0.7) // 'Strong Buy' * formatTechnicalRating(0.2) // 'Buy' * formatTechnicalRating(0.0) // 'Neutral' * formatTechnicalRating(-0.2) // 'Sell' * formatTechnicalRating(-0.7) // 'Strong Sell' * ``` * * @see https://github.com/shner-elmo/TradingView-Screener/issues/12 */ export declare function formatTechnicalRating(rating: number): TechnicalRating; //# sourceMappingURL=util.d.ts.map