Skip to content

Commit

Permalink
fix #1135
Browse files Browse the repository at this point in the history
  • Loading branch information
rob committed Jul 6, 2023
1 parent d2c90e5 commit d2e8272
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions systems/accounts/account_buffering_system.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from typing import Callable
import pandas as pd

from syscore.exceptions import missingData
from sysdata.config.configdata import Config
from systems.accounts.account_buffering_subsystem import apply_buffer
from syscore.pandas.strategy_functions import turnover
from systems.system_cache import diagnostic
Expand Down Expand Up @@ -79,9 +81,8 @@ def get_buffered_position(

optimal_position = self.get_notional_position(instrument_code)

try:
self.config.get_element("buffer_method")
except missingData:
buffer_method = self.config.get_element_or_default("buffer_method", "none")
if buffer_method == "none":
if roundpositions:
return optimal_position.round()
else:
Expand Down

0 comments on commit d2e8272

Please sign in to comment.