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
4
Versions
1122
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
111

2.17.0

Diff

Changelog

Source

[2.17.0] - 2023-02-17

Features

  • program: order params utilize post only enum (#361)

Fixes

  • program: twap tweaks, update only on new cluster time (#362)

Breaking

crispheaney
published 2.17.0-beta.0 •

crispheaney
published 2.16.0 •

Changelog

Source

[2.16.0] - 2023-02-14

Features

  • sdk: add support for market lookup table (#359)
  • program: tweak calculate_size_premium_liability_weight to have smaller effect on initial margin (#350)
  • ts-sdk: updates for accounting for spot leverage (#295)
  • ts-sdk: added new methods for modifying orders to include spot and more params (#353)
  • ts-sdk: flagged old modifyPerpOrder and modifyPerpOrderByUserOrderId as deprecated

Fixes

  • ts-sdk: DLOB matching logic accounts for zero-price spot market orders not matching resting limit orders
  • ts-sdk: new squareRootBN implementation using bit shifting (2x speed improvement)
  • program: fix overflow in calculate_long_short_vol_spread (#352)
  • program: dont let users disable margin trading if they have margin orders open
  • program: tweaks to fix max leverage order param flag with imf factor (#351)
  • program: improve bid/ask twap calculation for funding rate stability (#345)
  • ts-sdk: fix borrow limit calc (#356)

Breaking

crispheaney
published 2.16.0-beta.3 •

crispheaney
published 2.16.0-beta.2 •

crispheaney
published 2.16.0-beta.0 •

crispheaney
published 2.15.0 •

Changelog

Source

[2.15.0] - 2023-02-07

Features

  • ts-sdk: add aptos

Fixes

Breaking

crispheaney
published 2.15.0-beta.0 •

crispheaney
published 2.14.0 •

Changelog

Source

[2.14.0] - 2023-02-06

Features

  • program: flag to set max leverage for orders (#346)
  • program: do imf size discount for maintainance spot asset weight (#343)
  • ts-sdk: new liquidation price to account for delta neutral strategies (#340)
  • ts-sdk: add txParams to all instructions, bump @solana/web3.js (#344)

Fixes

  • program: extend time before limit order is considered resting (#349)
  • ts-sdk: improve funding rate prediction
  • program: block jit maker orders from cross vamm
  • program: cancel_order_by_user_order_id fails if order is not found

Breaking

willphan
published 2.14.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