New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@drift-labs/sdk

Package Overview
Dependencies
Maintainers
0
Versions
1162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@drift-labs/sdk - npm Package Versions

1
116

2.13.0-beta.0

Diff

crispheaney
published 2.12.0 •

Changelog

Source

[2.12.0] - 2023-01-22

Features

  • program: allow for 2000 users
  • program: add resting limit order logic (#328)
  • ts-sdk: add calculateEstimatedSpotEntryPrice
  • ts-sdk: add ability to add priority fees (#331)
  • ts-sdk: new calculateEstimatedPerpEntryPrice that accounts for dlob & vamm (#326)

Fixes

  • program: better rounding for openbook limit price
  • program: fix paying fee_pool_delta when filling with open book
  • program: bitflags for exchange status (#330)
  • program: update fee calculation for filling against openbook
  • program: relax conditions for valid oracle price in fulfill_perp_order
  • program: handle fallback price when amm has no liquidity (#324)
  • sdk: add getRestingLimitBids/Asks to DLOB (#325)
  • program: tweak oracle price used for determine_perp_fulfillment_methods

Breaking

crispheaney
published 2.12.0-beta.3 •

crispheaney
published 2.12.0-beta.2 •

crispheaney
published 2.12.0-beta.1 •

crispheaney
published 2.12.0-beta.0 •

crispheaney
published 2.11.0 •

Changelog

Source

[2.11.0] - 2023-01-11

Features

  • program: remove canceling market orders with limit price after first fill
  • program: try to match against multiple of makers orders (#315)
  • program: limit number of users to 1500
  • program: more rigorous risk decreasing check in place_perp_order/place_stop_order

Fixes

  • program: avoid overflow when calculating overflow (#322)
  • ts-sdk: fix user.getUnrealizedPnl to account for lp position
  • program: cancel market order for not satisfying limit price only if there was some base asset amount filled

Breaking

crispheaney
published 2.11.0-beta.2 •

crispheaney
published 2.11.0-beta.1 •

crispheaney
published 2.11.0-beta.0 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc