Skip to content

Commit 0e8c3bd

Browse files
TexasCodingclaude
andcommitted
style(realtime-data): format timeframe order list for readability
- Multi-line formatting of timeframe_order array in get_current_price method - Improves code readability and maintainability - No functional changes, pure formatting improvement 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 3dc0ff2 commit 0e8c3bd

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/project_x_py/realtime_data_manager.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,22 @@ def get_current_price(self) -> float | None:
12141214
# If no fast timeframes available, use the fastest of any configured timeframes
12151215
if not fastest_tf and self.timeframes:
12161216
# Order timeframes by frequency (fastest first)
1217-
timeframe_order = ["5sec", "15sec", "30sec", "1min", "5min", "15min", "30min", "1hr", "2hr", "4hr", "6hr", "8hr", "12hr", "1day"]
1217+
timeframe_order = [
1218+
"5sec",
1219+
"15sec",
1220+
"30sec",
1221+
"1min",
1222+
"5min",
1223+
"15min",
1224+
"30min",
1225+
"1hr",
1226+
"2hr",
1227+
"4hr",
1228+
"6hr",
1229+
"8hr",
1230+
"12hr",
1231+
"1day",
1232+
]
12181233
for tf in timeframe_order:
12191234
if tf in self.timeframes:
12201235
fastest_tf = tf

0 commit comments

Comments
 (0)