[price-service] Make the README better (#560)
* Make the README better * Now fix p2wrelay * Space in docker compose
This commit is contained in:
parent
8d73d07bbd
commit
40287f6dbd
|
@ -35,7 +35,19 @@ both the price service and spy. To run the mainnet docker compose file run
|
||||||
the following command:
|
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
|
The compose files use a public release of Pyth price service and spy. If you wish to change the
|
||||||
|
|
|
@ -41,6 +41,8 @@ services:
|
||||||
REMOVE_EXPIRED_VALUES_INTERVAL_SECONDS: "60"
|
REMOVE_EXPIRED_VALUES_INTERVAL_SECONDS: "60"
|
||||||
CACHE_TTL_SECONDS: "300"
|
CACHE_TTL_SECONDS: "300"
|
||||||
DB_API_ENDPOINT: "https://web-api.pyth.network"
|
DB_API_ENDPOINT: "https://web-api.pyth.network"
|
||||||
|
ports:
|
||||||
|
- "4200:4200"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
[
|
[
|
||||||
|
|
|
@ -41,6 +41,8 @@ services:
|
||||||
REMOVE_EXPIRED_VALUES_INTERVAL_SECONDS: "60"
|
REMOVE_EXPIRED_VALUES_INTERVAL_SECONDS: "60"
|
||||||
CACHE_TTL_SECONDS: "300"
|
CACHE_TTL_SECONDS: "300"
|
||||||
DB_API_ENDPOINT: "https://web-api.pyth.network"
|
DB_API_ENDPOINT: "https://web-api.pyth.network"
|
||||||
|
ports:
|
||||||
|
- "4200:4200"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue