Skip to content

Ai-chan-0411/crypto-ticker-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crypto-ticker-api

Lightweight, self-hostable crypto price & gas API. Perfect for Raspberry Pi, home servers, or any Node.js environment.

Features

  • Real-time crypto prices via CoinGecko (no API key needed)
  • Trending coins endpoint
  • Ethereum gas prices
  • Built-in response caching (1 min TTL)
  • Zero dependencies - pure Node.js
  • CORS enabled

Quick Start

node server.js
# or
PORT=8080 node server.js

API Endpoints

Endpoint Description
GET / API info and available endpoints
GET /prices Top coin prices (default: BTC, ETH, SOL)
GET /prices?ids=bitcoin,dogecoin&vs=eur Custom coins and currency
GET /trending Trending coins on CoinGecko
GET /gas Ethereum gas prices
GET /health Server health and uptime

Example

curl http://localhost:3456/prices?ids=bitcoin,ethereum&vs=usd

Deploy

# systemd service
sudo cp crypto-ticker.service /etc/systemd/system/
sudo systemctl enable --now crypto-ticker

Donations

If this project is useful to you, consider supporting development:

  • ETH: 0xa977ED7922703Bf4F9A14cFd27c56d3Cc571908C
  • SOL: 3TcijsNw7kL97QmaLHNE8gDeKt177w4PsJd8XMWDQjUn

License

MIT

About

Lightweight self-hostable crypto price & gas API - zero dependencies, perfect for Raspberry Pi

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors