def set_state(self, state):
    assert (self._order_book_id == state['order_book_id'])
    self._buy_old_holding_list = state['buy_old_holding_list']
    self._sell_old_holding_list = state['sell_old_holding_list']
    self._buy_today_holding_list = state['buy_today_holding_list']
    self._sell_today_holding_list = state['sell_today_holding_list']
    self._buy_transaction_cost = state['buy_transaction_cost']
    self._sell_transaction_cost = state['sell_transaction_cost']
    self._buy_avg_open_price = state['buy_avg_open_price']
    self._sell_avg_open_price = state['sell_avg_open_price']
def set_state(self, state):
    assert (self._order_book_id == state['order_book_id'])
    self._buy_old_holding_list = state['buy_old_holding_list']
    self._sell_old_holding_list = state['sell_old_holding_list']
    self._buy_today_holding_list = state['buy_today_holding_list']
    self._sell_today_holding_list = state['sell_today_holding_list']
    self._buy_transaction_cost = state['buy_transaction_cost']
    self._sell_transaction_cost = state['sell_transaction_cost']
    self._buy_avg_open_price = state['buy_avg_open_price']
    self._sell_avg_open_price = state['sell_avg_open_price']