Guest User

Untitled

a guest
Mar 19th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. def get_adjusted_prices(price, slippage):
  2. adj_sell_price = price * (1 - slippage)
  3. adj_buy_price = price * (1 + slippage)
  4.  
  5. return round(adj_sell_price, 5), round(adj_buy_price, 5)
Add Comment
Please, Sign In to add comment