-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17d80d3
commit 02172f0
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |