This app connect to the binance websocket endpoint :
wss://stream.binance.com:9443/ws/
And with collected data, make and store statistic on market trend into postgresqul depthstats relation entity.
- Have operationnal postgresql user and database
- configure environnement parameter
- configure application parameter
At project root directory in a .env
file :
# POSTGRESQL
PG_URL=postgres://[USER]:[PASSWORD]@[DOMAIN]:[PORT]/[DATABASE]
At project root directory in a app.json
file :
{
"symbols": [
"btcusdt"
]
}
At project root directory, execute command :
$ node server.js