Skip to content

Releases: drift-labs/driftpy

0.7.29

28 Feb 15:01
d386a68
Compare
Choose a tag to compare

Fix bug where DriftClient.unsubscribe() wasn't properly awaited

0.7.28

27 Feb 15:50
7ccc9c5
Compare
Choose a tag to compare

Fix bug where MarketMap.unsubscribe() wasn't properly awaited

0.7.27

26 Feb 21:53
Compare
Choose a tag to compare
Bump version: 0.7.26 → 0.7.27

0.7.26

26 Feb 14:57
356c4d1
Compare
Choose a tag to compare

Filter out logs with errors in websocket_log_provider.py to avoid EventSubscriber returning false positive events

0.7.25

20 Feb 20:34
Compare
Choose a tag to compare

fix remainder_base_amount decoder bug

0.7.24

10 Feb 17:06
82ebe51
Compare
Choose a tag to compare

Update drift.json IDL

0.7.23

08 Feb 19:22
671bf56
Compare
Choose a tag to compare

Add derive_oracle_auction_params()

Add time_remaining_until_update()

Add calculate_borrow_rate()

Add calculate_interest_rate()

Add calculate_utilization()

Add calculate_spot_market_borrow_capacity()

Add calculate_reference_price_offset()

Add calculate_inventory_liquidity_ratio()

Add get_new_oracle_conf_pct()

Add DriftUser.is_being_liquidated()

Fix several bugs in several math functions

Fix bug in DriftClient.get_jupiter_swap_ix_v6()

Add OraclePriceData.default()

Add default values for padding in structs

Bump requests and typing-extensions to ^ instead of pinned

Add math unit tests for derive_oracle_auction_params(), calculate_long_short_funding_and_live_twaps(), time_remaining_until_update(), calculate_size_premium_liability_weight(), calculate_borrow_rate(), calculate_deposit_rate(), calculate_spot_market_borrow_capacity, calculate_inventory_scale(), calculate_spread_bn(), calculate_price(), calculate_spread_reserves(), calculate_reference_price_offset(), calculate_inventory_liquidity_ratio(), calculate_live_oracle_twap(), calculate_live_oracle_std(), get_new_oracle_conf_pct(), is_oracle_valid(), calculate_position_pnl(), get_worst_case_token_amounts(), DriftUser.get_free_collateral(), DriftUser.get_health(), DriftUser.get_max_leverage_for_perps(), DriftUser.get_active_perp_positions(), DriftUser.get_unrealized_pnl(), DriftUser.can_be_liquidated(), DriftUser.get_token_amount(), DriftUser.get_net_spot_market_value(), DriftUser.get_spot_market_asset_and_liability_value()

0.7.22

04 Feb 01:40
Compare
Choose a tag to compare

update market constants

0.7.21

02 Feb 00:59
75e8320
Compare
Choose a tag to compare

Fix blocking bug in FastTxSender

0.7.20

31 Jan 00:13
7e9abc6
Compare
Choose a tag to compare

Add determine_maker_and_taker and find_crossing_resting_limit_orders to DLOB

Fix bugs with lambda functions in DLOB

Add get_settle_perp_ixs, get_fill_perp_order_ix get_revert_fill_ix, get_trigger_order_ix, force_cancel_orders, and get_force_cancel_orders_ix to DriftClient

Fix bugs in amm.py

Fix bugs in exchange_status.py

Update funding calculations in funding.py/calculate_all_estimated_funding_rate

Increase RPC timeout in PriorityFeeSubscriber.load() from 5 to 20 seconds

Increase RPC timeout in UserMap.sync() from 10 to 30 seconds

Fix bug with python versions > 3.10 with mutable default struct fields in types.py/OrderParams

Several semantics changes throughout the codebase