Feat/buy sell panel#415
Draft
dileepfrog wants to merge 78 commits into
Draft
Conversation
- With support for slider and incremental IMF
feat: calculate buy/sell panel estimate
## [4.0.0-alpha.8](v4.0.0-alpha.7...v4.0.0-alpha.8) (2024-05-23) ### Features * calculate buy/sell panel estimate ([51d31a2](51d31a2)) ### Bug Fixes * dust liquidation ws type ([372c2ca](372c2ca))
chore: update alpha
- Provide either a slider value or desired base or quote trade qty
…ired-position-qty feat: buy/sell panel estimate by desired trade qty (base or quote)
## [4.0.0-alpha.10](v4.0.0-alpha.9...v4.0.0-alpha.10) (2024-05-23) ### Features * buy/sell panel estimate by desired trade qty (base or quote) ([3510957](3510957))
- Only one qty input value in buy/sell panel estimate is allowed
…ping feat: improve type declarations of mutually exclusive arguments
## [4.0.0-alpha.11](v4.0.0-alpha.10...v4.0.0-alpha.11) (2024-05-24) ### Features * improve type declarations of mutually exclusive arguments ([4e967cd](4e967cd))
…crease-of-available-collateral feat(buy/sell panel): support trades that increase available collateral
## [4.0.0-alpha.12](v4.0.0-alpha.11...v4.0.0-alpha.12) (2024-05-24) ### Features * **buy/sell panel:** support trades that increase available collateral ([a3b3617](a3b3617))
- Group input values (form inputs, wallet values)
- Adds a function that calculates the maximum maker order size that can be supported by an available collateral amount
feat: update realtime obs to better handle sequence issues
## [4.0.0-alpha.13](v4.0.0-alpha.12...v4.0.0-alpha.13) (2024-05-28) ### Features * update realtime obs to better handle sequence issues ([dda8032](dda8032))
feat: also reset fully if stopped manually
## [4.0.0-alpha.14](v4.0.0-alpha.13...v4.0.0-alpha.14) (2024-05-28) ### Features * also reset fully if stopped manually ([880b19e](880b19e))
## [4.0.0-alpha.15](v4.0.0-alpha.14...v4.0.0-alpha.15) (2024-05-28) ### Features * merge beta to alpha ([ba78b5f](ba78b5f)) ### Bug Fixes * polish updates on rt sync fixes ([fa0b56f](fa0b56f))
- Determine max. size of a maker order that can be added to the books based on available collateral that does not match order book liquidity
…nsions feat: buy/sell panel estimate extensions
## [4.0.0-alpha.16](v4.0.0-alpha.15...v4.0.0-alpha.16) (2024-05-28) ### Features * **buy/sell panel:** calculate maker order size (quantities) ([d48470f](d48470f)) * **buy/sell panel:** support taker limit price input ([b10abf4](b10abf4)) * calculate max maker order size for available collateral ([d3c7234](d3c7234))
…public feat: make function that calculates IMF public
## [4.0.0-alpha.22](v4.0.0-alpha.21...v4.0.0-alpha.22) (2024-07-30) ### Features * expose util function to make leverage parameter input argument ([0edb92c](0edb92c)) * make function that calculates IMF public ([38e6854](38e6854))
…nly-qty feat: determine maximum reduce-only qty available at given price level
## [4.0.0-alpha.23](v4.0.0-alpha.22...v4.0.0-alpha.23) (2024-07-31) ### Features * determine maximum reduce-only qty available at given price level ([bbabd8e](bbabd8e))
chore: update alpha
## [4.0.0-alpha.24](v4.0.0-alpha.23...v4.0.0-alpha.24) (2024-07-31) ### Features * add stargate targets ([b417452](b417452)) ### Bug Fixes * add bridge tx id to deposits ([67a239f](67a239f)) * add index price to fills ws and rest responses ([b0979d9](b0979d9)) * flag new chains as supported ([cec7227](cec7227)) * make index price optional on fills ([df9805a](df9805a))
feat: export type LeverageParameters
## [4.0.0-alpha.25](v4.0.0-alpha.24...v4.0.0-alpha.25) (2024-08-06) ### Features * export type LeverageParameters ([b6fa792](b6fa792))
IMR changes with in/decreasing positions, and IMR exemptions for reducing standing orders change with changing position sizes. This change adds support for all these competing inputs, including the slider.
- Keep `orderbook/quantities` focused on public functions - Group margin and collateral functions in new `leverage` file
…nsions-3 feat(buy/sell panel): fully support slider with reducing trades & orders
## [4.0.0-alpha.26](v4.0.0-alpha.25...v4.0.0-alpha.26) (2024-08-29) ### Features * **buy/sell panel:** fully support slider with reducing trades & orders ([8c34c94](8c34c94))
Inclusion of reducing standing orders in the max trade qty calculation was correct only when no position is currently open. This change fixes the logic that determines the position in the sequence of standing orders (sorted by best price) with which the matching loop starts.
…ing-standing-orders-calcs fix(buy/sell panel): reducing standing orders applied incorrectly
## [4.0.0-alpha.27](v4.0.0-alpha.26...v4.0.0-alpha.27) (2024-08-30) ### Bug Fixes * **buy/sell panel:** reducing standing orders applied incorrectly ([53a0646](53a0646))
chore: update alpha
## [4.0.0-alpha.28](v4.0.0-alpha.27...v4.0.0-alpha.28) (2024-09-04) ### Features * add earnings escrow abi ([2fac806](2fac806)) * add referral reward deposit source ([b742321](b742321)) * advance "calc max reduce-only qty" function from alpha ([f7f6935](f7f6935)) * advance "calculate IMF" function from alpha ([9f85765](9f85765)) * estimate deposit gas with added buffer ([7ae1011](7ae1011)) ### Bug Fixes * auth client initialize race condition ([ed7da9d](ed7da9d)) * file extension ([8dcd95b](8dcd95b)) * incomplete lz endpoint mapping ([7ff6824](7ff6824)) * update to new stargate v2 abi ([04cea7a](04cea7a))
- Reducing standing orders that are in total smaller than the position size were applied at the start of the reduction of the position instead of the end (closer to position closure) - Increase/reduction in held funds did not carry over between iterations of matching loop
…-of-reducing-standing-orders fix(buy/sell panel): reducing standing orders applied incorrectly (2)
## [4.0.0-alpha.29](v4.0.0-alpha.28...v4.0.0-alpha.29) (2024-09-05) ### Bug Fixes * **buy/sell panel:** reducing standing orders applied incorrectly (2) ([feba522](feba522))
In some situations, incremental IMR thresholds limit the amount of collateral that can be converted into a taker qty. The remaining collateral may not be converted into a maker qty because it would cross the spread.
fix(buy/sell panel): maker quantities can cross the spread
## [4.0.0-alpha.30](v4.0.0-alpha.29...v4.0.0-alpha.30) (2024-09-10) ### Bug Fixes * **buy/sell panel:** maker quantities can cross the spread ([2753008](2753008))
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.