Skip to content

Feat/buy sell panel#415

Draft
dileepfrog wants to merge 78 commits into
betafrom
feat/buy-sell-panel
Draft

Feat/buy sell panel#415
dileepfrog wants to merge 78 commits into
betafrom
feat/buy-sell-panel

Conversation

@dileepfrog

Copy link
Copy Markdown
Collaborator

No description provided.

fubar and others added 30 commits May 23, 2024 03:05
- 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))
## [4.0.0-alpha.9](v4.0.0-alpha.8...v4.0.0-alpha.9) (2024-05-23)

### Features

* allow undefined to narrow ws message type ([bb22470](bb22470))
* implement ws order type refactoring ([c3cee5e](c3cee5e))

### Bug Fixes

* types around removing lev and liq ([dad1cc1](dad1cc1))
- 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))
fubar and others added 29 commits July 30, 2024 14:34
…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))
## [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))
## [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))
## [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))
Base automatically changed from alpha to beta April 18, 2025 17:12
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

Successfully merging this pull request may close these issues.

6 participants