https://github.com/web3space/rate-service
Rate Service for New Coins for test purpose
https://github.com/web3space/rate-service
Last synced: 11 months ago
JSON representation
Rate Service for New Coins for test purpose
- Host: GitHub
- URL: https://github.com/web3space/rate-service
- Owner: web3space
- Created: 2018-11-20T17:43:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-20T18:20:10.000Z (over 7 years ago)
- Last Synced: 2025-01-25T14:13:15.586Z (over 1 year ago)
- Language: LiveScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rate Service for New Coin
### Motivation
In case when real rate is not available yet but it needs to define the rate url in the wallet
### Install
```
npm i pm2 -g
npm i
```
### Config
Example: HYPE coin
```
{
"constantRateUsd" : 0.3763, //Constant rate for test purpose
"useProxy" : false, //Use constant or use proxy
"proxyAddress" : "https://min-api.cryptocompare.com/data/pricemulti?fsyms=HYPE&tsyms=USD", //When useProxy: true then proxy Address should be defined
"port": 80,
"ip": "0.0.0.0",
"tokenSymbol": "HYPE"
}
```
### Start
```
pm2 start server.js
```