def get_higher_price(self, price: str) -> Decimal:
higher_price = Decimal(price).quantize(self.quote_increment, rounding=ROUND_HALF_EVEN) + self.quote_increment
return higher_price
# Note that this rounds down
评论列表
文章目录