This README describes how to run a dfbuyer bot.
Follow directions in predictoor.md
First, install barge.
Then, run barge. In barge console:
#run barge with all bots (agents) except dfbuyer
./start_ocean.sh --no-provider --no-dashboard --predictoor --with-thegraph --with-pdr-trueval --with-pdr-predictoor --with-pdr-publisher --with-pdr-trader
Open a new console and:
# Setup virtualenv
cd pdr-backend
source venv/bin/activate
# Set envvar
export PRIVATE_KEY="0xc594c6e5def4bab63ac29eed19a134c130388f74f019bc74b8f4389df2837a58"
Copy ppss.yaml
into your own file my_ppss.yaml
and change parameters as you see fit. The section "dfbuyer_ss" has parameters for this bot.
Then, run dfbuyer bot. In console:
pdr dfbuyer my_ppss.yaml development
The bot will consume "weekly_spending_limit" worth of assets each week. This amount is distributed equally among all DF eligible assets. (This parameter is set in the yaml file.)
In the CLI, simply point to a different network:
# run on testnet
pdr dfbuyer my_ppss.yaml sapphire-testnet
# or, run on mainnet
pdr dfbuyer my_ppss.yaml sapphire-mainnet