Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Commit da4c738

Browse files
Copilottheshadow76
andcommitted
Add format comment to _parse_stream_candles for consistency
Co-authored-by: theshadow76 <59869868+theshadow76@users.noreply.github.com>
1 parent d034c3c commit da4c738

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pocketoptionapi_async/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,7 @@ def _parse_stream_candles(
12561256
)
12571257
candles.append(candle)
12581258
elif isinstance(item, (list, tuple)) and len(item) >= 5:
1259+
# Server format: [timestamp, open, close, high, low]
12591260
candle = Candle(
12601261
timestamp=datetime.fromtimestamp(item[0]),
12611262
open=float(item[1]),

0 commit comments

Comments
 (0)