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

BilateralClearingMechanism needs to handle failure #31

Open
davidrpugh opened this issue Apr 22, 2015 · 0 comments
Open

BilateralClearingMechanism needs to handle failure #31

davidrpugh opened this issue Apr 22, 2015 · 0 comments
Assignees
Milestone

Comments

@davidrpugh
Copy link
Collaborator

Bilateral (or OTC?) clearing of a fill could fail for at least two reasons:

  1. bidTradingParty has insufficient funds
  2. askTradingParty has insufficient securities

In addition to making use of Try, Success, and Failure types I should create two new messages RefundPayment(amount) and RefundSecurities(instrument, quantity) to handle the refunding of payment and securities.

@davidrpugh davidrpugh self-assigned this Apr 22, 2015
@davidrpugh davidrpugh added this to the 1.0 milestone Apr 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant