This repo works as Privx.exchange backend service, do below tasks:
- Sync with aleo chain to retrieve orders.
- Trade with orders and notify new-generated trades onchain.
- Provide rest api for privx-exchange-frontend.
$ cat .env
NODE_HOST=http://127.0.0.1:3030
CONTRACT_HOST=http://127.0.0.1:4040
PSQLURL=postgresql://xxx:xxxxxx@127.0.0.1:5436/root
PRIVATE_KEY=APrivateKeyxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
CONTRACT_NAME=privx_exchange.aleo
$ pip install -r requirements.txt
$ python init_db.py
$ python main.py