How to do: Trigger the API to fetch data and save to GitHub
Note: These URLs will work after you run the cron job at least once and the files are committed to your GitHub repository.
Add these to your Vercel project settings:
EXTERNAL_API_URL - The API endpoint to fetch data fromEXTERNAL_API_KEY - API key (if required)GITHUB_TOKEN - GitHub personal access tokenGITHUB_OWNER - GitHub username or organizationGITHUB_REPO - Repository nameGITHUB_BRANCH - Branch name (default: main)Create two cron jobs:
Cryptocurrency Data (Every 30 minutes):
https://esp-uno-ft811.vercel.app/api/cronFear & Greed Index (Every 2 hours):
https://esp-uno-ft811.vercel.app/api/cron-fgiEdit the filterData function in app/api/cron/route.ts to implement your custom filtering logic.