-
Notifications
You must be signed in to change notification settings - Fork 100
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
sdk: add option to get signed settlepnl tix from a market order #813
Merged
Conversation
This file contains 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
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #813 +/- ##
=======================================
Coverage 74.66% 74.66%
=======================================
Files 128 128
Lines 29765 29765
=======================================
Hits 22224 22224
Misses 7541 7541
|
wphan
added a commit
that referenced
this pull request
Feb 27, 2024
* sdk: release v2.54.0-beta.5 * sdk: tweak polling tx confirmation (#812) * sdk: fix tests not building * sdk: tweak polling tx confirmation * sdk: release v2.54.0-beta.6 * sdk: add option to get signed settlepnl tix from a market order (#813) * sdk: add option to get signed settlepnl tix from a market order * fix lint * sdk: release v2.54.0-beta.7 * ts-sdk: remove unncessary logs on tx failure * linter * prettify * sdk: release v2.54.0-beta.8 * math/constants.rs: correct QUOTE AMOUNTS constant name * ts-sdk: filter out erroneous logs in EventSubscriber (#815) * sdk: release v2.54.0-beta.9 * program: auto derisk lp positions in settle pnl (#766) * bigz/add-lp-order-risk-mitigations * friendly perp position iter * update parmams mutability * add time_since_last_liquidity_change * add new variable to margin context mode * add attempt to burn shares in force cancel/settle pnl * remove from force cancel orders * sdk: fix tests not building * change place orders * rmeove unused mut * address some comments * add to settle_pnl * use oracle orders * tweak order params * oracle order tests * add typescript test, fix order param market_type * remove logic from settle_expired_position * CHANGELOG --------- Co-authored-by: Chris Heaney <[email protected]> * sdk: release v2.54.0-beta.10 * v2.54.0 * sdk: release v2.55.0-beta.0 * Revert "sdk: release v2.55.0-beta.0" This reverts commit 21c4a46. * Revert "v2.54.0" This reverts commit 63c7208. * sdk: release v2.54.0-beta.11 * ts-sdk: fix mixing stopWaiting * sdk: release v2.54.0-beta.12 * v2.54.0 * sdk: release v2.55.0-beta.0 * Added handling for signature time measurement (#818) * Added handling for signature time measurement * Added opt-in metrics flag to drift client * fixed prettier --------- Co-authored-by: lowkeynicc <[email protected]> * sdk: release v2.55.0-beta.1 * sdk: fix ts timeout * sdk: fix getUnrealizedPNL for market index 0 * sdk: release v2.55.0-beta.2 * sdk: release v2.55.0-beta.3 * sdk: dlp updates (#822) * dlp updates * add optional custom margin ratio param to initAndDeposit * prettify * sdk: release v2.55.0-beta.4 * program: fix risk reduction dlp burn from not being step size (#826) * program: fix risk reduction dlp burn from not being step size * CHANGELOG * fix lp burn * v2.55.0 * sdk: release v2.56.0-beta.0 * Luke/extra tx sending (#827) * added raw tx endpoints to tx senders * Swapped additional tx endpoints for callbacks * sdk: account for settle lp in accoutnt breakdown (#828) * sdk: add settle pnl option to cost basis calc * sdk: catch error in priorityFeeSubscriber.load (#834) * Replace sendRawTransaction with sendTransaction (#833) * program: make it easier for jit fills (#835) * program: make it easier for jit fills * CHANGELOG * sdk: prettify:fix * sdk: release v2.56.0-beta.1 * v2.56.0 * sdk: release v2.57.0-beta.0 * devnet-market-index-23 (#837) * devnet-market-index-23 * comment out used oracle * sdk: release v2.57.0-beta.1 * program: add recenter amm ix (#836) * bigz/add-amm-recenter-fcn * add recenter-amm-2 test * passing recenter_amm_2 test * add test_move_amm test * update todo msg * add to adminClient * add get_lower_bound_sqrt_k functor * CHANGELOG --------- Co-authored-by: Chris Heaney <[email protected]> * sdk: release v2.57.0-beta.2 * v2.57.0 * sdk: release v2.58.0-beta.0 * add helius method to PriorityFeeSubscriber (#832) * add helius method to PriorityFeeSubscriber * eagerly convert PubicKey to string * use helius from connection obj, or optional rpc url * lints * sdk: release v2.58.0-beta.1 * program: AmmPaused doesnt block all fills * v2.58.0 * sdk: release v2.59.0-beta.0 * sdk: allow hotswap addresses in PriorityFeeSubscriber * sdk: release v2.59.0-beta.1 * sdk: fix priorityFeeSubscriber rpc endpoint loading * sdk: release v2.59.0-beta.2 * sdk: add max fee clamp to priority fee * sdk: release v2.59.0-beta.3 * sdk: fix priority fee clamp, add getter * sdk: release v2.59.0-beta.4 * program: bump phoenix dependency * no state ws resub * sdk: release v2.59.0-beta.5 * program: use decayed last_oracle_conf_pct as lower bound for update (#840) * bigz/add-oracle-volatility-protections * fix pct vs price bug, add test + changelog * cleanup code (naming, mutables) * program: add paused operations flag (#839) * program: init pause_operations flag * tweaks * write tests for paused operations * split out spot and perp operations * fixes * add sdk and use PerpOperation/SpotOperation naming convention * fix update funding ix * stop update to deprecated market status * add admin fn * add logging for admin fn * CHANGELOG * sdk: release v2.59.0-beta.6 * v2.59.0 * sdk: release v2.60.0-beta.0 * implement parallel processing in sync() method --------- Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: lil perp <[email protected]> Co-authored-by: lowkeynicc <[email protected]> Co-authored-by: wphan <[email protected]> Co-authored-by: 0xbigz <[email protected]> Co-authored-by: Luke <[email protected]> Co-authored-by: lowkeynicc <[email protected]> Co-authored-by: Chester Sim <[email protected]> Co-authored-by: Evan Pipta <[email protected]> Co-authored-by: Nour Alharithi <[email protected]>
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.
optionally return a signed settlePnl tx after closing position so ui can cleanup after closes