Driftpy

Latest version: v0.7.55

Safety actively analyzes 638845 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 6

0.7.27

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

0.7.26

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

0.7.25

Fix bug in `decode_user()` where `remainder_base_amount` would decode incorrectly

0.7.24

Update `drift.json` IDL

0.7.23

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 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()`

Add `OraclePriceData.default()`

Add default values for padding in structs

Bump `requests` and `typing-extensions` to ^ instead of pinned

0.7.21

Fix blocking bug in `FastTxSender`

Page 4 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.