MCPcopy Create free account
hub / github.com/Open-Dev-Society/OpenStock / getAlertText

Function getAlertText

lib/utils.ts:144–147  ·  view source on GitHub ↗
(alert: Alert)

Source from the content-addressed store, hash-verified

142
143
144export const getAlertText = (alert: Alert) => {
145 const condition = alert.alertType === 'upper' ? '>' : '<';
146 return `Price ${condition} ${formatPrice(alert.threshold)}`;
147};
148
149export const getFormattedTodayDate = () => new Date().toLocaleDateString('en-US', {
150 weekday: 'long',

Callers

nothing calls this directly

Calls 1

formatPriceFunction · 0.85

Tested by

no test coverage detected