Skip to content

fix: don't crash on invalid order_timestamp in trades() - #256

Open
Vedant1442 wants to merge 1 commit into
zerodha:masterfrom
Vedant1442:fix/trades-invalid-order-timestamp
Open

Vedant1442 wants to merge 1 commit into
zerodha:masterfrom
Vedant1442:fix/trades-invalid-order-timestamp

Conversation

@Vedant1442

Copy link
Copy Markdown

Fixes #235. _format_response now skips date fields that cannot be parsed (e.g. "0000-01-01 ...") instead of crashing the whole trades() call. The original string value is retained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KiteConnect Python client crashes on kite.trades() because API returns invalid order_timestamp as "0000-01-01 HH:MM:SS".

1 participant