Download src/constants/timeframes.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 836 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/src/constants/timeframes.js
- Command line
-
hf download hf://NKessler/Horizon/src/constants/timeframes.js
-
curl -L -o timeframes.js https://huggingface.co/NKessler/Horizon/resolve/main/src/constants/timeframes.js
836 Bytes
| export const NEWS_TIMEFRAMES = [ | |
| { value: "6m", label: "Last 6 months", hours: 24 * 30 * 6 }, | |
| { value: "3m", label: "Last 3 months", hours: 24 * 30 * 3 }, | |
| { value: "1m", label: "Last 1 month", hours: 24 * 30 }, | |
| { value: "2w", label: "Last 2 weeks", hours: 24 * 14 }, | |
| { value: "1w", label: "Last 1 week", hours: 24 * 7 }, | |
| { value: "48h", label: "Last 48 hours", hours: 48 }, | |
| ]; | |
| export const DEFAULT_NEWS_TIMEFRAME = NEWS_TIMEFRAMES[0].value; | |
| export const INTEREST_TIMEFRAMES = [ | |
| { value: "3m", label: "3 months", months: 3 }, | |
| { value: "6m", label: "6 months", months: 6 }, | |
| { value: "12m", label: "12 months", months: 12 }, | |
| { value: "24m", label: "24 months", months: 24 }, | |
| ]; | |
| export function getNewsTimeframeLabel(value) { | |
| return NEWS_TIMEFRAMES.find((item) => item.value === value)?.label ?? "Last 6 months"; | |
| } | |