Understanding the hyperliquid DEX and data characteristics
meta
response.Spot - 10000 + index in the universe field returned by the spotMeta
response.For example, when submitting an order for PURR/USDC, theset that should be used is 10000 because its asset index in the spot metadata is 0.107
with name @107
@107
is what you will see in the hyperliquid data, and this refer to the trading pair HYPE/USDC
status = 'filled'
type = 'market'
status = 'filled'
type = 'limit'
0x0000000000000000000000000000000000000000000000000000000000000000
as the transaction hash.For trades this means one side of the trade is a TWAP.For fill this means it is a TWAP fill.hash = '0x0000000000000000000000000000000000000000000000000000000000000000'
action:type = 'twapOrder'
action:type = 'twapCancel'
inner: { CDeposit
for depositsinner: { CWithdrawal
for withdrawalsfills
it will show up with both sides, and one side being the HLP Vault.
orders
and applying it to a snapshot of the L2 Orderbook.
L2 Orderbook snapshot
Once you have the snapshot, you can use the orders
datastream to update the snapshot.
All the possible order statuses can be found in the Hyperliquid Docs