Beispiel #1
0
 def test_pip(self):
     self.assertEquals(1000, money.pip(Currency('USD')))
Beispiel #2
0
 def update_price_from_bids(self, row):
     value = self.modelBid.get_price(row)
     pip = money.pip(self.get_quote_currency()) * View.SUB_FROM_ASK_PIPS
     self.set_trade_price(value + pip)
Beispiel #3
0
 def update_price_from_bids(self, row):
     value = self.orders_bid.get_price(row)
     pip = money.pip(self.get_quote_currency()) * self.preferences.get_proposed_pips()
     self.set_trade_price(value + pip)