Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

rssnyder/coingecko-cache

Repository files navigation

coingecko-cache

+--------------------+ 
|discord-stock-ticker|-----\ 
| |--\ ---------\ 
+--------------------+ -----\ ---------\
 --> +-----+ ----> +---------+
 |redis| |coingecko|
 --> +-----+ ----> +---------+
 +----------------+ -----/ ---------/ 
 |coingecko-cache |--/ ---------/ 
 | |-----/ 
 +----------------+ 

a cache system for avoiding coingecko rate limits for crypto prices. uses the coins/markets endpoint documented here.

items are stored in redis under the keys <coin id>#<attribute>. requires you have a redis server running locally on port 6379.

stores info on the top 100 coins by market cap.

build

make build-<linux/osx>

run

 -db int
 redis db to use
 -expiry int
 number of seconds to keep entries in the cache (default 60)
 -frequency int
 seconds between updates (default 1)
 -hostname string
 connection address for redis (default "localhost:6379")
 -pages int
 number of pages (100 coin each) to pull from (default 1)
 -password string
 redis password
 + any additional args for coins to fetch individually
make run

install

make install

references

Powered by CoinGecko

image

About

process to cache data from coingecko api

Resources

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /