Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DariusLukasukas/stocks
/ functions
Functions
64 in github.com/DariusLukasukas/stocks
⨍
Functions
64
◇
Types & classes
10
↓ 74 callers
Function
cn
(...inputs: ClassValue[])
lib/utils.ts:5
↓ 5 callers
Function
toDate
(d: any)
components/chart/AreaClosedChart.tsx:18
↓ 3 callers
Function
fetchQuote
(ticker: string)
lib/yahoo-finance/fetchQuote.ts:4
↓ 2 callers
Function
fetchChartData
( ticker: string, range: Range, interval: Interval )
lib/yahoo-finance/fetchChartData.ts:19
↓ 2 callers
Function
fetchStockSearch
(ticker: string, newsCount: number = 5)
lib/yahoo-finance/fetchStockSearch.ts:5
↓ 2 callers
Function
formatVolume
(volume: number)
app/screener/components/columns.tsx:131
↓ 2 callers
Function
validateInterval
(range: Range, interval: Interval)
lib/yahoo-finance/fetchChartData.ts:14
↓ 2 callers
Function
validateRange
(range: string)
lib/yahoo-finance/fetchChartData.ts:11
↓ 1 callers
Function
CalculateRange
(range: string)
lib/utils.ts:51
↓ 1 callers
Function
calculatePriceChange
(qouteClose: number, currentPrice: number)
components/chart/StockChart.tsx:22
↓ 1 callers
Function
fetchFearGreendIndex
()
components/stocks/fear-greed-index.tsx:3
↓ 1 callers
Function
fetchQuoteSummary
(ticker: string)
lib/yahoo-finance/fetchQuoteSummary.ts:4
↓ 1 callers
Function
fetchScreenerStocks
(query: string, count?: number)
lib/yahoo-finance/fetchScreenerStocks.ts:11
↓ 1 callers
Function
fetchSectorPerformance
()
components/stocks/SectorPerformance.tsx:3
↓ 1 callers
Function
formatMarketCap
(marketCap: number)
app/screener/components/columns.tsx:167
↓ 1 callers
Function
getMarketSentiment
(changePercentage: number | undefined)
app/page.tsx:78
↓ 1 callers
Function
isMarketOpen
()
app/page.tsx:23
↓ 1 callers
Function
isValidRange
(r: string)
components/chart/AreaClosedChart.tsx:304
↓ 1 callers
Function
timeAgo
(publishTime: string)
app/stocks/[ticker]/components/News.tsx:9
Function
Area
({ mask, id, data, x, y, yScale, color }: AreaProps)
components/chart/AreaClosedChart.tsx:127
Function
AreaClosedChart
({ chartQuotes, range }: any)
components/chart/AreaClosedChart.tsx:255
Function
CommandDialog
({ children, ...props }: CommandDialogProps)
components/ui/command.tsx:28
Function
CommandMenu
()
components/ui/command-menu.tsx:28
Function
CommandShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/command.tsx:130
Function
CompanySummaryCard
({ ticker, }: { ticker: string })
app/stocks/[ticker]/components/CompanySummaryCard.tsx:6
Function
DataTable
({ columns, data, }: DataTableProps<TData, TValue>)
components/stocks/markets/data-table.tsx:24
Function
DataTable
({ columns, data, }: DataTableProps<TData, TValue>)
app/screener/components/data-table.tsx:43
Function
DataTableViewOptions
({ table, }: DataTableViewOptionsProps<TData>)
app/screener/components/column-toggle.tsx:20
Function
DialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/dialog.tsx:70
Function
DialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/dialog.tsx:56
Function
Drawer
({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>)
components/ui/drawer.tsx:8
Function
DrawerFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/drawer.tsx:69
Function
DrawerHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/drawer.tsx:58
Function
DropdownMenuShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/dropdown-menu.tsx:176
Function
FearGreedIndex
()
components/stocks/fear-greed-index.tsx:23
Function
FinanceSummary
({ ticker }: { ticker: string })
app/stocks/[ticker]/components/FinanceSummary.tsx:36
Function
Footer
()
components/ui/footer.tsx:5
Function
GoBack
()
components/ui/go-back.tsx:6
Function
GraphSlider
({ data, width, height, top, state, dispatch }: any)
components/chart/AreaClosedChart.tsx:151
Function
Home
({ searchParams, }: { searchParams?: { ticker?: string range?: string interval?: string } })
app/page.tsx:91
Function
Interactions
({ width, height, xScale, data, dispatch, }: InteractionsProps)
components/chart/AreaClosedChart.tsx:67
Function
MarketsChart
({ ticker, range, interval, }: { ticker: string range: Range interval: Interval })
components/chart/MarketsChart.tsx:6
Function
Navigation
()
components/ui/navigation.tsx:22
Function
News
({ ticker }: { ticker: string })
app/stocks/[ticker]/components/News.tsx:26
Function
Pagination
({ className, ...props }: React.ComponentProps<"nav">)
components/ui/pagination.tsx:11
Function
PaginationEllipsis
({ className, ...props }: React.ComponentProps<"span">)
components/ui/pagination.tsx:98
Function
PaginationLink
({ className, isActive, size = "icon", ...props }: PaginationLinkProps)
components/ui/pagination.tsx:46
Function
PaginationNext
({ className, ...props }: React.ComponentProps<typeof PaginationLink>)
components/ui/pagination.tsx:82
Function
PaginationPrevious
({ className, ...props }: React.ComponentProps<typeof PaginationLink>)
components/ui/pagination.tsx:66
Function
ReadMoreText
({ text, truncateLength, }: { text: string truncateLength: number })
components/ui/read-more-text.tsx:4
Function
RootLayout
({ children, }: Readonly<{ children: React.ReactNode }>)
app/layout.tsx:17
Function
ScreenerPage
({ searchParams, }: { searchParams?: { screener?: string } })
app/screener/page.tsx:11
Function
SectorPerformance
()
components/stocks/SectorPerformance.tsx:24
Function
StockChart
({ ticker, range, interval, }: StockGraphProps)
components/chart/StockChart.tsx:27
Function
StocksPage
({ params, searchParams }: Props)
app/stocks/[ticker]/page.tsx:46
Function
ThemeProvider
({ children, ...props }: ThemeProviderProps)
components/ui/theme-provider.tsx:7
Function
ThemeToggle
()
components/ui/theme-toggle.tsx:15
Function
calculateInterval
(range: string)
lib/utils.ts:79
Function
down
(e: KeyboardEvent)
components/ui/command-menu.tsx:34
Function
formatNumber
(num: number)
app/stocks/[ticker]/components/FinanceSummary.tsx:3
Function
generateMetadata
({ params }: Props)
app/stocks/[ticker]/page.tsx:27
Function
getStartDate
(interval: Interval)
lib/utils.ts:9
Function
handleClick
(e: React.MouseEvent<HTMLButtonElement>)
components/chart/AreaClosedChart.tsx:311
Function
reducer
(state: any, action: any)
components/chart/AreaClosedChart.tsx:28