Skip to content

Commit

Permalink
fix future warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Carver committed Nov 21, 2023
1 parent f6b2e1b commit 04d94ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysdata/production/historic_strategy_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_current_position_for_instrument_strategy_object(
if len(position_series) == 0:
return 0

return position_series[-1]
return position_series.iloc[-1]

def update_position_for_instrument_strategy_object(
self,
Expand Down

0 comments on commit 04d94ed

Please sign in to comment.