OrderWatcher
functionality for 0x-api.
This repo enables devs to run the 0x-api locally.
This manages the orders tracked by SQL db in 0x-api, so it is responsible for adding/removing orders from it
- by sync'ing order statuses from the chain
- by receiving new orders submitted through the api
- by removing expired orders from the db
0x-api is a decentralized exchange infrastructure. It seems that 0x-api is not fully open-source.
That infracture depends on the following service called OrderWatcher. This repo provides OrderWatcher
functionality to 0x-api.
Type:
yarn
setup the .env
file below:
# Required
EXCHANGE_RPOXY= # ZeroEx contract address
RPC_URL=http://localhost:8545 # Local or Mainnet RPC URL
Type:
yarn build
This project depends on 0x-api. For development make sure you run the 0x-api on a terminal.
Type:
docker-compose up
yarn dev
Type the following command on an another terminal:
yarn dev
Type:
yarn start