Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matching engine and trade executor generating errors (#1324) #1328

Merged
merged 2 commits into from Jun 20, 2018
Merged

Matching engine and trade executor generating errors (#1324) #1328

merged 2 commits into from Jun 20, 2018

Conversation

dinesh-skyach
Copy link

Matching engine and trade executor generating errors #1324

Copy link

@mod mod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a rake task or a command line tool to count error by code and flush error queue ?

@@ -17,6 +17,7 @@ def initialize(payload)
def execute
execute!
rescue StandardError => e
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Catch only TradeExecution Errors and send to trade error queue

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mod done

raise TradeExecutionError.new \
ask: @ask, bid: @bid, price: @price, volume: @volume, funds: @funds
end
valid?
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename in validate

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mod done

@dinesh-skyach
Copy link
Author

@mod to count error by code run rake failures:trade_errors

@mod mod changed the title [WIP] #1324 Matching engine and trade executor generating errors Matching engine and trade executor generating errors (#1324) Jun 20, 2018
@mod mod merged commit 7072203 into openware:1-8-stable Jun 20, 2018
@dinesh-skyach dinesh-skyach deleted the trade_executor_errors branch December 27, 2018 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants