Skip to content

joshespi/crypto-price-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Crypto Price API

cli-php script that requests crypto prices from coinmarketcap API and stores them in a mariadb server.

Requires

Docker Engine

.env file with the following API variable from coinmarket cap.

CMC_API_KEY=
DB_HOST=
DB_USER=
DB_PASSWORD=
DB_NAME=
DB_PORT=
TOKEN_SYMBOLS=BTC,ETH,ADA,SOL

build

docker build -t coinmarketcap-script .

start

docker run --rm --env-file .env coinmarketcap-script

Changes

1.2

  • starting to work on outputing to SQL instead of json.
  • switched to php

1.1

  • updated filename to be more descriptive
  • added update timestamp to json data

1.0

  • intial release

About

gets updated crypto prices for desired coins from coinmarketcap api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published