Skip to content
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: change modify order params to be object #353

Merged
merged 3 commits into from
Feb 13, 2023

Conversation

evanpipta
Copy link
Collaborator

Also allow changing order type and trigger price

@evanpipta evanpipta force-pushed the evan/modify-order-params branch from 872e6f1 to e2221fe Compare February 10, 2023 19:19
@evanpipta evanpipta merged commit 8f36c52 into master Feb 13, 2023
crispheaney pushed a commit that referenced this pull request Feb 18, 2023
* sdk: change modify order params to be object

* Update CHANGELOG.md
crispheaney added a commit that referenced this pull request Feb 20, 2023
* new is_amm_available_liquidity_source

* tweak how trigger orders work

* tweak get_limit_price to allow limit orders to have auction price

* allow limit order to pass auction params

* do order validation

* make the resting limit order logic based on auction being complete

* dlob trigger order matches on chain

* ts client reflects price changes

* fix ts dlob tests

* add rust tests

* add failing test

* prototype of updateRestingLimitOrders

* address pr feedback

* program: tweak calculate_size_premium_liability_weight to have smaller effect on initial margin (#350)

* bigz/improve-calculate_size_premium_liability_weight

* fmt fix

* margin.ts: sync w/ contract

* CHANGELOG

---------

Co-authored-by: Chris Heaney <chrisheaney30@gmail.com>

* v2.16.0-beta.2

* sdk: fix borrow limit calc (#356)

* update CHANGELOG.md

* sdk: new squareRootBN implementation using bit shifting

* sdk: change modify order params to be object (#353)

* sdk: change modify order params to be object

* Update CHANGELOG.md

* sdk: DLOB matching logic accounts for zero-price spot market orders not matching resting limit orders

* v2.16.0-beta.3

* sdk: add market lookup table (#359)

* sdk: add look up table to config

* add ability to send version tx with retry sender

* tweak LOOK UP to LOOKUP

* add fetchMarketLookupTableAccount to driftClient

* CHANGELOG

* v2.16.0

* getMarketBids/Asks becomes getTakingBids/Asks

* remove updateRestingLimitOrder from getbestNode

* tests working

* update isFallbackAvailableLiquiditySource

* tweak is_maker_for_taker

* tweaks

* fix updateRestingLimitOrders

* add test for updating resting limit ordres

* add tests for is_maker_for_taker

* fix broken ts test

* tweak some syntax choices

* simplify is_maker_for_taker

* dont let auction prices be zero for market or limit orders

* tweak findJitAuctionNodesToFill

* CHANGELOG

---------

Co-authored-by: bigzPubkey <zane@lunoho.company>
Co-authored-by: wphan <william@drift.trade>
Co-authored-by: Evan Pipta <3pipta@gmail.com>
Co-authored-by: 0xbigz <83473873+0xbigz@users.noreply.github.com>
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.

1 participant