This server is created to parse the prices used originally by Bisq to fit the CashX needs.
Django is an easy and understandable (maybe for a few?) framework for fast building web services and pages. Although Django REST Framework exists, it is too much of a hassle to deal with.
It takes a request to the same endpoint that the Bisq ones use and hijacks it, then it asks for the real server and then parses it in a different way. It strips the BTC price and uses BCH as base, then it calculates how much of a BCH the other coins are and modifies the JSON that came from the real server.
Clone this repo, then create a virtual environment with whatever tool you use, activate it and use
pip install -r requirements.txton the cloned folder. Then just use
python manage.py migratepython manage.py runserver 8080 --noreloadand that's all. Well, if you do mind, change the secret key in cashxserver/settings.py and now it would be everything you need to do.
- Make a monitoring main page for prices and requests.
- Make two modes, a Core Mode and a Sync Mode.
Nah, just use it.