Closed StephanAkkerman closed 10 months ago
Could open one Binance websocket for crypto, such as the mini ticker socket https://github.com/binance/binance-spot-api-docs/blob/master/web-socket-streams.md#all-market-mini-tickers-stream.
For now settle with Binance mini ticker socket. Maybe in the future we could check coingecko or tradingview every 5 min, or yahoo finance for stocks.
To keep it simple: when we fetch the price of a mentioned ticker, check if it's in this db and alert if the price is above or below it
TBH it does not really feel necessary to add this, you could just do this on the exchange you are planning to buy it from
/alert <ticker> <above/below> <price>