Cryptorank Cron-Job Dashboard

How to do: Trigger the API to fetch data and save to GitHub

Environment Variables Checking
Check if all required environment variables are configured on the server
Test GitHub Connection
Verify your GitHub token and repository access before running the cron job
Manual Trigger for API Request
Test your cron job endpoint before setting up automated scheduling
Regenerate the json Light Version
Re-filter and regenerate light.json from the existing raw.json file in your repository
Fear & Greed Index Update
Fetch global market data and update light.json with Fear & Greed Index (runs every 2 hours)
JSON File URLs
Direct links to access your raw and filtered cryptocurrency data

Note: These URLs will work after you run the cron job at least once and the files are committed to your GitHub repository.

Setup Instructions

1. Configure Environment Variables

Add these to your Vercel project settings:

  • EXTERNAL_API_URL - The API endpoint to fetch data from
  • EXTERNAL_API_KEY - API key (if required)
  • GITHUB_TOKEN - GitHub personal access token
  • GITHUB_OWNER - GitHub username or organization
  • GITHUB_REPO - Repository name
  • GITHUB_BRANCH - Branch name (default: main)

2. Setup cron-job.org

Create two cron jobs:

Cryptocurrency Data (Every 30 minutes):

https://esp-uno-ft811.vercel.app/api/cron

Fear & Greed Index (Every 2 hours):

https://esp-uno-ft811.vercel.app/api/cron-fgi

3. Customize Filtering Logic

Edit the filterData function in app/api/cron/route.ts to implement your custom filtering logic.