diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..976d797 --- /dev/null +++ b/.env.example @@ -0,0 +1,5 @@ +INFURA_API_KEY=[your infura project api key] +WALLET_PRIVATE_KEY=[your wallet's private key] +PORT=8080 +REDIS_HOST=127.0.0.1 +REDIS_PORT=6379 \ No newline at end of file diff --git a/README.md b/README.md index 6be6adb..17b83ca 100644 --- a/README.md +++ b/README.md @@ -1 +1,22 @@ -# simple-price-feed +# Smart Vault API + +This application serves data related to The Standard Smart Vaults project. + +### Endpoints + +- `GET /asset_prices` delivers simple pricing data in $, by network (Arbitrum One, Arbitrum Goerli), then by asset. It includes prices for all assets which are accepted as collateral by the Smart Vaults. Designed to be consumed for pricing charts on https://app.thestandard.io/ +- `GET /stats` delivers statistical data about the Smart Vault projects as a whole + +## Setup + +Install the project dependencies: + +```npm install``` + +Edit the [example env file](.env.example), and rename it to `.env` in the root of the project. + +Start the application: + +```npm start``` + +The data served by this API is indexed at intervals by the [Smart Vault Jobs application](https://github.com/the-standard/smart-vault-jobs). You will need to run the jobs application in the background to use this API locally. \ No newline at end of file