-
Notifications
You must be signed in to change notification settings - Fork 609
Futures position details #1479
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
Merged
Merged
Futures position details #1479
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
d0a2dbf
Remove roundIds.
zyzek dcba0b1
Futures trades confirm at spot.
zyzek c14ce70
Remove lingering order details.
zyzek 13d0b83
Improve position closure errors message.
zyzek eca5a05
Fix up some tests.
zyzek 2cc817f
Reorder closePosition function for efficiency.
zyzek 213c6cd
Remove unused constant
zyzek 6d59ea1
Allow headroom on max leverage when modifying positions.
zyzek 4410e5f
Eliminate superfluous internal function.
zyzek 5c7ed44
Add slippage protection.
zyzek d026cc0
Fix a bunch of test cases.
zyzek f43274c
Update futures mutative function interface test.
zyzek 301244b
Eliminate redundant function stub.
zyzek 018385d
Remove unnecessary TODO.
zyzek 5731d43
Merge branch 'futures-implementation' into futures-order-refactor
zyzek 49bca14
Remove unnecessary TODO.
zyzek ee1113d
Fix liquidation tests.
zyzek f362e7f
stateless liquidation price helper
liamzebedee 9d14b76
start fleshing out calcPositionDetails
liamzebedee a0e528f
1st pass at view helper
liamzebedee 29db53f
refactor calcLiquidationPrice
liamzebedee a8dd34e
* set margin during call
liamzebedee c120371
add test for position details helper
liamzebedee ce309d5
Merge branch 'futures-implementation' into futures-position-details
liamzebedee 7271349
simplify calcPositionDetails
liamzebedee bf485cc
rm calcLiquidationPrice
liamzebedee 098965c
remove library for position calculations
liamzebedee 2477f73
avoid multiple memory copies of position
liamzebedee a7725ac
refactor
liamzebedee 6087412
refactor 2
liamzebedee d986cab
minor updates to names
liamzebedee 024df34
tests passing
liamzebedee c771260
Tidy up post trade details logic.
zyzek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.