Hyperliquid historical trades for one market
Returns BTC perp fills on Hyperliquid from the last 7 days, newest first, with price, size, direction, fees and position.
What it returns
- block number
- block time
- market symbol
- coin raw
- kind
- execution price
- size
- notional USD
- side
- direction
- is aggressor
- execution index
- tid
- execution hash
- fees fee
- fee token
- leverage
- is cross
- size before
- realized PnL
- trader address
Filters
- market coin raw is BTC
The query
{
Hyperliquid {
Trades(
where: {
Trade: { Market: { CoinRaw: { is: "BTC" } } }
Block: { Time: { since_relative: { days_ago: 7 } } }
}
orderBy: { descending: [Block_Time, Trade_Execution_Index] }
limit: { count: 100 }
) {
Block {
Number
Time
}
Trade {
Market {
Symbol
CoinRaw
Kind
}
Execution {
Price
Size
NotionalUSD
Side
Direction
IsAggressor
Index
Tid
Hash
}
Fees {
Fee
FeeToken
}
Position {
Leverage
IsCross
SizeBefore
Size
RealizedPnl
}
Trader {
Address
}
}
}
}
}