If isBuyer is equivalent to Real, then the most recent transaction was a BUY meaning that we want to sell the first image. The market price sellprice is then calculated to become sellprice = tp_price + delta due to the fact we wish to market in a better price https://r.valery.digital/content-4-1