Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion price_service/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,19 @@ both the price service and spy. To run the mainnet docker compose file run
the following command:

```
docker-compose up -f docker-compose.mainnet.yaml
docker compose -f docker-compose.mainnet.yaml up
```

Now your own instance of the price service is up and running! Running the following command should give you the Pyth price of ETH/USD :

```
curl localhost:4200/api/latest_price_feeds?ids[]=0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace
```

If everything is working, you should get an output like this :

```
[{"ema_price":{"conf":"52359655","expo":-8,"price":"169041770000","publish_time":1675365813},"id":"ff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace","price":{"conf":"64041644","expo":-8,"price":"167043958356","publish_time":1675365813}}]
```

The compose files use a public release of Pyth price service and spy. If you wish to change the
Expand Down
2 changes: 2 additions & 0 deletions price_service/server/docker-compose.mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ services:
REMOVE_EXPIRED_VALUES_INTERVAL_SECONDS: "60"
CACHE_TTL_SECONDS: "300"
DB_API_ENDPOINT: "https://web-api.pyth.network"
ports:
- "4200:4200"
healthcheck:
test:
[
Expand Down
2 changes: 2 additions & 0 deletions price_service/server/docker-compose.testnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ services:
REMOVE_EXPIRED_VALUES_INTERVAL_SECONDS: "60"
CACHE_TTL_SECONDS: "300"
DB_API_ENDPOINT: "https://web-api.pyth.network"
ports:
- "4200:4200"
healthcheck:
test:
[
Expand Down