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

How to ensure the accuracy of the data(account / order / balance ) when saving the snapshot? E.g. transaction #34

Closed
JoyJava opened this issue Dec 17, 2019 · 1 comment

Comments

@JoyJava
Copy link

JoyJava commented Dec 17, 2019

Now we have a question: how to ensure the accuracy of the data(account / order / balance ) when saving the snapshot?
E.g. transaction

@mzheravin
Copy link
Collaborator

If you mean checking "consistency" - you can use TotalCurrencyBalanceReport for that (there is an example in tests).
If you mean "precision" - any operation inside the exchange core is performed with using smallest currency unit (cent, satoshi, zsabo, etc). So there is no accuracy loss possible.

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

No branches or pull requests

2 participants