Skip to content

v0.33.3

Latest

Choose a tag to compare

@nktkas nktkas released this 02 Aug 04:07
bb82eba

Syncs the SDK with the latest Hyperliquid API changes.

New API

  • InfoClient: new methods outcomeTemplates (#171), usdcRouting (#187)
  • ExchangeClient: new method activateOutcomeDeployer (#172)
  • exchange.spotDeploy(): add outcome deployer actions registerStandaloneOutcomeFromTemplate, registerQuestionFromTemplate, settleOutcome, settleQuestion2 (#173)
  • exchange.twapOrder(): add optional details carrying the trigger (t) and stop (s) prices (#178)
  • exchange.order(): priority grouping p now allows up to 1e8 (#169)
  • exchange.reserveRequestWeight(): add optional destination to reserve weight for another user (#170)
  • info.marginTable(): add optional dex (#186)

Schema changes

  • info.borrowLendUserState(): health widened to "healthy" | "atRisk" | "marketLiquidatable" | "backstopLiquidatable", and healthFactor is now string | null (was null) (#174)
  • TwapState: add stopPx and trigger (#175)
  • info.twapHistory(): status adds "waitingForTrigger" and "stopped" (#175)
  • info.outcomeMeta(): add optional deployer (#176)
  • info.validatorL1Votes(): add registerTemplate and settleQuestion2 action variants (#177)
  • FrontendOpenOrder.orderType: add "Twap Slice", "Vault Close", "Spot Dust Conversion" (#179)
  • OrderProcessingStatus: add "outcomeSettledCanceled", "internalCancel", "tooManyOpenOrdersRejected" (#179)
  • info.spotClearinghouseState(): outcome coin widened to `+${number}` | `o${number}` (oN is a settled outcome), and add optional tokenToPortfolioSupplyRatio (#180)
  • info.userFees(): nextTrialAvailableTimestamp is now number | null (was unknown | null), and stakingLink is now discriminated by typestakingUser for "requested" / "tradingUser", tradingUser for "stakingUser" (#181)
  • info.legalCheck(): restrictions is now required and resolves to "n" | "a" | "o" | "u" (#182)
  • UserFill: add optional feeTrialEscrow (#183)
  • info.userFills(): liquidation liquidatedUser is now optional (#183)
  • info.settledOutcome(): add optional spec.deployer and question (#184)
  • info.subAccounts2(): add optional abstraction (#185)

Full Changelog: v0.33.2...v0.33.3