Skip to content

Releases: nktkas/hyperliquid

v0.32.2

27 Mar 03:18
c2ce6fe

Choose a tag to compare

What's Changed

  • feat(info/userNonFundingLedgerUpdates): add vaultLeaderCommission delta type (by @Ty-Sir in #124)
  • feat(api/perpAnnotation): add displayName and keywords (by @damjankuznar in #123)
  • feat(info/userNonFundingLedgerUpdates): update regex pattern for accountValue to allow negative numbers (7804b3a)
  • feat(info/outcomeMeta): make token optional and add settledNamedOutcomes to schema (08a6286)
  • feat(info/perpConciseAnnotations): add perpConciseAnnotations method (b524bb5)
  • fix(subscription/spotState): pass ignorePortfolioMargin parameter (9bdbcfd)

Full Changelog: v0.32.1...v0.32.2

v0.32.1

01 Mar 23:37
d2b0977

Choose a tag to compare

What's Changed

  • feat(api): add setPerpAnnotation in perpDeploy action and perpAnnotation info method (by @damjankuznar in #122)

Full Changelog: v0.32.0...v0.32.1

v0.32.0

28 Feb 18:35
64976de

Choose a tag to compare

BREAKING CHANGE

  • refactor(schemas)!: replace *Response schemas with pure types (f2b6600, 08d7124)
  • refactor(cli)!: remove cli and PrivateKeySigner (61e606c)
  • refactor!: replace ValiError with ValidationError (9175a6a)
  • refactor(http)!: replace body property with cloned Response in HttpRequestError (1d10bf0)
  • chore(deps)!: update dependency versions (558d1bf)

Features

  • feat(api/exchange): add sendToEvmWithData method (69cf06a)
  • feat(api/exchange): add topUpIsolatedOnlyMargin method (af7c9f4)
  • feat(api/info): add userAbstraction method (0777cf3)
  • feat(api/info): add approvedBuilders method (5ddabf1)
  • feat(api/exchange): add setFundingInterestRates to perpDeploy method (55c6337)
  • feat(api/info): add perpCategories method (7970938)
  • feat(api/info): add outcomeMeta method (0b103f7)
  • feat(api/info): add reversed parameter to UserFillsByTimeRequest (c0426b5)

Other Changes

Full Changelog: v0.31.0...v0.32.0

v0.31.0

05 Feb 22:32
8246029

Choose a tag to compare

What's Changed

  • feat(info/userFills): adds missing builderFee in UserFillSchema type (by @0xwetzo in #113)
  • feat(exchange): add new API method userSetAbstraction (by @shinitakunai in #114)
  • feat(info/l2book): add spread field to L2BookResponse schemas (by @vipineth in #116)
  • feat(exchange): add new API method agentSetAbstraction (by @nktkas in #118)
  • feat(info/spotMeta): add questions array to SpotMetaResponse schema (in dbb5a8f)
  • refactor(schemas)!: remove v.description (in c339911)
  • refactor(cli)!: change arguments for twapOrder and spotUser methods (in 56a4192)
  • refactor(exchange/client)!: rename userDexAbstraction types for consistency (in 1f3fa5d)
  • refactor(cli): enhance cli (in c940ecf)

Explanation of breaking changes

refactor(schemas)!: remove v.description (in c339911)

The code that imports valibot schemes for v.description will be broken.

refactor(cli)!: change arguments for twapOrder and spotUser methods (in 56a4192)

Now the SDK does not ignore wrappers over parameters specified in the Hyperliquid API (to stay more raw).

refactor(exchange/client)!: rename userDexAbstraction types for consistency (in 1f3fa5d)

userDexAbstraction exists in the info and exchange endpoints. The renaming was done to make a clearer distinction between the endpoints.

Full Changelog: v0.30.3...v0.31.0

v0.30.3

20 Jan 23:46
605d0fa

Choose a tag to compare

What's Changed

  • fix(exchange/approveAgent): correct calculation of max character limit for agentName by @umutkutlu in #106
  • fix(info): change raw USD types from UnsignedDecimal to Decimal by @nktkas in #109
  • feat: add new API methods by @nktkas in #111
  • feat(info/userNonFundingLedgerUpdates): add new update types by @nktkas in #112
  • feat(info/perpDexs): add funding interest rates mapping to PerpDexsResponse in 82fece3
  • feat(info/spotMeta): add outcome markets metadata to SpotMetaResponse in e4d855a

Full Changelog: v0.30.2...v0.30.3

v0.30.2

01 Jan 14:42
aa2333e

Choose a tag to compare

Forgot to update the version in deno.json

v0.30.1

01 Jan 14:37
7acae8c

Choose a tag to compare

What's Changed

  • fix(exchange/order): missing string in array of union type in OrderResponse type by @stoyanov-kaloyan in #96
  • fix(exchange/order): loosen overly strict builder fee validation by @benisgold in #98
  • feat(subscription/twapStates): add DEX name parameter by @nktkas in #99
  • fix(info/userFunding): update input argument types to make startTime optional by @nktkas in #103

Full Changelog: v0.30.0...v0.30.1

v0.30.0

16 Dec 13:38
158d34a

Choose a tag to compare

What's Changed

  • fix: match allDexsClearinghouseState user before invoking listener by @chrisling-dev in #90
  • fix: add DOMException polyfill by @nktkas in #94
  • feat(subscription): add twapStates method in 3267ffd
  • feat(userNonFundingLedgerUpdates): enhance response schema with new update types in 2539015
  • revert: restore basic transport interfaces in 96698c7
  • refactor(schemas)!: stricter schemes in 7c82575
  • refactor(lint)!: add custom lint plugin and fix lint in 7c82575

Explanation of breaking changes

  • Schemas are now more stringent to detect errors before sending a request (i.e., the error v.ValiError is possible instead of ApiRequestError)
  • Error message slightly changed due to new Lint rules

Full Changelog: v0.29.1...v0.30.0

v0.29.1

06 Dec 20:23
d78ff6c

Choose a tag to compare

  • fix(transport): count unique users instead of user subscriptions for limit check (ee88d9a)

Full Changelog: v0.29.0...v0.29.1

v0.29.0

05 Dec 06:55
daf02ad

Choose a tag to compare

  • refactor(exchange)!: rename wallet to signers for multi-sig (447128c)
  • refactor(exchange)!: use ExchangeSingleWalletConfig as default type in ExchangeClient (447128c)
  • feat(subscription): add allDexsAssetCtxs method (b0a147b)
  • feat(subscription): add allDexsClearinghouseState method (b0a147b)

Full Changelog: v0.28.0...v0.29.0