@property
def margin_rate(self):
    env = Environment.get_instance()
    margin_info = env.data_proxy.get_margin_info(self.order_book_id)
    margin_multiplier = env.config.base.margin_multiplier
    return (margin_info['long_margin_ratio'] * margin_multiplier)
@property
def margin_rate(self):
    env = Environment.get_instance()
    margin_info = env.data_proxy.get_margin_info(self.order_book_id)
    margin_multiplier = env.config.base.margin_multiplier
    return (margin_info['long_margin_ratio'] * margin_multiplier)