Skip to content

Commit

Permalink
api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ewansheldon committed Sep 8, 2023
1 parent 17d80d3 commit 02172f0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .env.example
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
23 changes: 22 additions & 1 deletion README.md
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.

0 comments on commit 02172f0

Please sign in to comment.