auction-keepermaintains a collection of child processes, as each bidding model is its own dedicated process. New processes (new bidding model instances) are spawned by executing the command passed to
--model. These processes are automatically terminated (via
SIGKILL) by the keeper shortly after their associated auctions expire.
auction-keepercommunicates with bidding models via their standard input and output. When the auction state changes, the keeper sends a one-line JSON document to the standard input of the bidding model process.
auction-keeperreads one-line messages from the standard output of the bidding model process and tries to parse them as JSON documents. It then extracts two fields from that document:
price- the maximum (for debt auctions) or the minimum (for surplus auctions) price
gasPrice(optional) - gas price in WEI to use when sending the bid
sleepperiod, the keeper will restart the price model and read new price(s).