BinancePremiums is a simple tool to track crypto spot-perp premia on Binance.
You should be able to run the app as follows:
pip install -r requirements.txt
streamlit run dashboard.py
##Structure
data_downloader.py
scrapes data from binancedashboard.py
is the main dashboardcontent/
for markdown files called bydashboard
.
I originally deployed this on heroku, but now they are killing the free plans so I am using Streamlit Cloud.
Heroku deployment following this tutorial.
Scheduled restarts (SO):
curl -n -X DELETE https://api.heroku.com/apps/binancepremiums/dynos \n -H "Content-Type: application/json" \n -H "Accept: application/vnd.heroku+json; version=3" \n -H "Authorization: Bearer 4c136a81-9889-4267-9f65-325b6b1ce8d2"
```<!-- -->
binance2Premiums
DO steps:
ssh root@ip
apt upgrade
apt install python3-pip
git clone https://github.com/robertmartin8/BinancePremiums
cd BinancePremiums
pip3 install -r requirements.txt
tmux
`ctrl b c` to create new
`ctrl b 0-9` to swap between
python3 fix_streamlit.py
streamlit run dashboard.py --server.headless=true --server.enableCORS=false
## Setting up HTTPS
control panel -> manage -> networking -> domains.
https://www.digitalocean.com/community/questions/how-to-protect-a-website-droplet-with-https
https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04