cli-php script that requests crypto prices from coinmarketcap API and stores them in a mariadb server.
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
docker build -t coinmarketcap-script .
docker run --rm --env-file .env coinmarketcap-script
- starting to work on outputing to SQL instead of json.
- switched to php
- updated filename to be more descriptive
- added update timestamp to json data
- intial release