Skip to content

Handle rpCode '7' (no data) as empty result instead of error#44

Open
olivier-babelcast wants to merge 1 commit intorundef:mainfrom
olivier-babelcast:fix-no-data
Open

Handle rpCode '7' (no data) as empty result instead of error#44
olivier-babelcast wants to merge 1 commit intorundef:mainfrom
olivier-babelcast:fix-no-data

Conversation

@olivier-babelcast
Copy link

Rithmic returns rpCode=['7', 'no data'] when a query has no results (e.g., order history for an account with no trades). This is not an error condition - treat it as an empty result and log at debug level instead of raising RithmicErrorResponse.

Fixes all three code paths: _send_and_recv_immediate, _send_and_recv, and _process_response (request manager flow).

Rithmic returns rpCode=['7', 'no data'] when a query has no results
(e.g., order history for an account with no trades). This is not an
error condition - treat it as an empty result and log at debug level
instead of raising RithmicErrorResponse.

Fixes all three code paths: _send_and_recv_immediate, _send_and_recv,
and _process_response (request manager flow).
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.

1 participant