-
Notifications
You must be signed in to change notification settings - Fork 0
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
6pm-3: Buy and Sell working through Swagger/Backend #60
Conversation
…e sense to save a usercommons to a nonexistent commons
…l as 2 for non-existing sell and buy
…ing for when only commons doesn't exist
… to match with the way they are called from playpage
…added in onBuy, onSell
Codecov Report
@@ Coverage Diff @@
## main #60 +/- ##
=============================================
- Coverage 81.09% 69.96% -11.14%
- Complexity 75 79 +4
=============================================
Files 52 21 -31
Lines 439 273 -166
Branches 12 12
=============================================
- Hits 356 191 -165
+ Misses 83 82 -1 Continue to review full report at Codecov.
|
Overview
This PR adds the functionality of buy and sell to the backend and can be used through Swagger. The proper equations for buy and sell (using the weighted scale when selling) are not implemented at the moment through this PR.
All that has been changed is that the backend was pulled from PR #58 , and the frontend code is from main.
Issues Addressed
#14 is partially addressed in this PR
Details
The two images below show that "Buy" is working.
The images below show that "Sell" is working.