The examples on this page use Hyperliquid (
provider: 'hyperliquid'). Replace the provider value with any supported DEX from getProviders().getRunningTwaps is an optional capability on the PerpsProvider plugin interface — not every registered provider implements it. Call it through the plugin instance resolved from the client, the same way any direct-to-venue read is reached:
Parameters
Returns
TwapOrder[]:
TwapOrderStatus
On Lighter,
placeTwapOrder’s own result carries a submit-time transaction hash on twapId — Lighter assigns the parent’s real order index asynchronously. This read resolves that real index (TwapOrder.twapId), which is the value cancelTwapOrder actually expects.