I added a simple market making script.
Quote from: JianJolly on April 04, 2017, 08:16:24 PM
This one fetches price data from an outer source (this source is Bitstamp below) and gives market making orders in the DEX. Bitstamp's "last price" in the BTC/USD market is converted to TRY via python-forex, and this data is checked once a minute. The script gives bid orders at the prices which are 1%, 1.5% and 2% lower than the "last price", and records the price as Bot.ref_price, i.e., the reference price. Three corresponding ask orders are also given at the prices which are 1%, 1.5% and 2% above the reference price. If the price source changes more than 0.5% according to the reference price, the orders are canceled and a new set of bids and asks are given, changing the reference price.
