def test_pip(self): self.assertEquals(1000, money.pip(Currency('USD')))
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)
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)