userFillsByTime
curl --request POST \
--url 'https://api.uniblock.dev/uni/v1/hyperliquid/info#42' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"type": "userFillsByTime",
"startTime": 1704067200000,
"user": "0x000000000000000000000000000000000000dEaD"
}
'const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
type: 'userFillsByTime',
startTime: 1704067200000,
user: '0x000000000000000000000000000000000000dEaD'
})
};
fetch('https://api.uniblock.dev/uni/v1/hyperliquid/info#42', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.uniblock.dev/uni/v1/hyperliquid/info#42"
payload = {
"type": "userFillsByTime",
"startTime": 1704067200000,
"user": "0x000000000000000000000000000000000000dEaD"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)[
{
"coin": "@162",
"px": "1.42",
"sz": "0.057423",
"side": "A",
"time": 1753056000039,
"startPosition": "0.057423",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 117789741944,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@188",
"px": "0.0035998",
"sz": "0.917835",
"side": "A",
"time": 1755216000002,
"startPosition": "0.917835",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 134586652141,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@142",
"px": "108376.0",
"sz": "0.000009169",
"side": "A",
"time": 1756512000046,
"startPosition": "0.000009169",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 148186330902,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@142",
"px": "115538.0",
"sz": "0.00000008",
"side": "A",
"time": 1757635200055,
"startPosition": "0.00000008",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 159725296618,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@210",
"px": "0.31764",
"sz": "0.0405",
"side": "A",
"time": 1762732800049,
"startPosition": "0.0405",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 229209068373,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@156",
"px": "164.56",
"sz": "0.000685",
"side": "A",
"time": 1762732800049,
"startPosition": "0.000685",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 229209068363,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@243",
"px": "0.030574",
"sz": "0.09241",
"side": "A",
"time": 1764028800027,
"startPosition": "0.09241",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 247895591441,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@230",
"px": "0.99997",
"sz": "0.00188948",
"side": "A",
"time": 1766102400067,
"startPosition": "0.00188948",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 273606103340,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@166",
"px": "0.9997",
"sz": "0.003306",
"side": "A",
"time": 1766188800049,
"startPosition": "0.003306",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 274644835733,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@206",
"px": "0.1032",
"sz": "0.0496",
"side": "A",
"time": 1772409600044,
"startPosition": "0.0496",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 334663993966,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@166",
"px": "0.99997",
"sz": "0.00702922",
"side": "A",
"time": 1772755200030,
"startPosition": "0.00702922",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 339777806137,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@305",
"px": "0.071916",
"sz": "0.028766",
"side": "A",
"time": 1779580800038,
"startPosition": "0.028766",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 439553311407,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@188",
"px": "0.0017754",
"sz": "0.090505",
"side": "A",
"time": 1779580800038,
"startPosition": "0.090505",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 439553311402,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
}
]Hyperliquid
userFillsByTime
Native Hyperliquid /info operation. Returns the user’s fills within a time range. Set aggregateByTime to merge fills that occurred at the same time, and reversed to return oldest-first.
POST
/
v1
/
hyperliquid
/
info#42
userFillsByTime
curl --request POST \
--url 'https://api.uniblock.dev/uni/v1/hyperliquid/info#42' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"type": "userFillsByTime",
"startTime": 1704067200000,
"user": "0x000000000000000000000000000000000000dEaD"
}
'const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
type: 'userFillsByTime',
startTime: 1704067200000,
user: '0x000000000000000000000000000000000000dEaD'
})
};
fetch('https://api.uniblock.dev/uni/v1/hyperliquid/info#42', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.uniblock.dev/uni/v1/hyperliquid/info#42"
payload = {
"type": "userFillsByTime",
"startTime": 1704067200000,
"user": "0x000000000000000000000000000000000000dEaD"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)[
{
"coin": "@162",
"px": "1.42",
"sz": "0.057423",
"side": "A",
"time": 1753056000039,
"startPosition": "0.057423",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 117789741944,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@188",
"px": "0.0035998",
"sz": "0.917835",
"side": "A",
"time": 1755216000002,
"startPosition": "0.917835",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 134586652141,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@142",
"px": "108376.0",
"sz": "0.000009169",
"side": "A",
"time": 1756512000046,
"startPosition": "0.000009169",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 148186330902,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@142",
"px": "115538.0",
"sz": "0.00000008",
"side": "A",
"time": 1757635200055,
"startPosition": "0.00000008",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 159725296618,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@210",
"px": "0.31764",
"sz": "0.0405",
"side": "A",
"time": 1762732800049,
"startPosition": "0.0405",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 229209068373,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@156",
"px": "164.56",
"sz": "0.000685",
"side": "A",
"time": 1762732800049,
"startPosition": "0.000685",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 229209068363,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@243",
"px": "0.030574",
"sz": "0.09241",
"side": "A",
"time": 1764028800027,
"startPosition": "0.09241",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 247895591441,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@230",
"px": "0.99997",
"sz": "0.00188948",
"side": "A",
"time": 1766102400067,
"startPosition": "0.00188948",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 273606103340,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@166",
"px": "0.9997",
"sz": "0.003306",
"side": "A",
"time": 1766188800049,
"startPosition": "0.003306",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 274644835733,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@206",
"px": "0.1032",
"sz": "0.0496",
"side": "A",
"time": 1772409600044,
"startPosition": "0.0496",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 334663993966,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@166",
"px": "0.99997",
"sz": "0.00702922",
"side": "A",
"time": 1772755200030,
"startPosition": "0.00702922",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 339777806137,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@305",
"px": "0.071916",
"sz": "0.028766",
"side": "A",
"time": 1779580800038,
"startPosition": "0.028766",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 439553311407,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
},
{
"coin": "@188",
"px": "0.0017754",
"sz": "0.090505",
"side": "A",
"time": 1779580800038,
"startPosition": "0.090505",
"dir": "Spot Dust Conversion",
"closedPnl": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 439553311402,
"crossed": true,
"fee": "0.0",
"tid": 0,
"feeToken": "USDC"
}
]Query Parameters
Body
application/json
Response
200 - application/json
Successful response.
Example:
[ { "coin": "@162", "px": "1.42", "sz": "0.057423", "side": "A", "time": 1753056000039, "startPosition": "0.057423", "dir": "Spot Dust Conversion", "closedPnl": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 117789741944, "crossed": true, "fee": "0.0", "tid": 0, "feeToken": "USDC" }, { "coin": "@188", "px": "0.0035998", "sz": "0.917835", "side": "A", "time": 1755216000002, "startPosition": "0.917835", "dir": "Spot Dust Conversion", "closedPnl": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 134586652141, "crossed": true, "fee": "0.0", "tid": 0, "feeToken": "USDC" }, { "coin": "@142", "px": "108376.0", "sz": "0.000009169", "side": "A", "time": 1756512000046, "startPosition": "0.000009169", "dir": "Spot Dust Conversion", "closedPnl": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 148186330902, "crossed": true, "fee": "0.0", "tid": 0, "feeToken": "USDC" }, { "coin": "@142", "px": "115538.0", "sz": "0.00000008", "side": "A", "time": 1757635200055, "startPosition": "0.00000008", "dir": "Spot Dust Conversion", "closedPnl": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 159725296618, "crossed": true, "fee": "0.0", "tid": 0, "feeToken": "USDC" }, { "coin": "@210", "px": "0.31764", "sz": "0.0405", "side": "A", "time": 1762732800049, "startPosition": "0.0405", "dir": "Spot Dust Conversion", "closedPnl": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 229209068373, "crossed": true, "fee": "0.0", "tid": 0, "feeToken": "USDC" }, { "coin": "@156", "px": "164.56", "sz": "0.000685", "side": "A", "time": 1762732800049, "startPosition": "0.000685", "dir": "Spot Dust Conversion", "closedPnl": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 229209068363, "crossed": true, "fee": "0.0", "tid": 0, "feeToken": "USDC" }, { "coin": "@243", "px": "0.030574", "sz": "0.09241", "side": "A", "time": 1764028800027, "startPosition": "0.09241", "dir": "Spot Dust Conversion", "closedPnl": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 247895591441, "crossed": true, "fee": "0.0", "tid": 0, "feeToken": "USDC" }, { "coin": "@230", "px": "0.99997", "sz": "0.00188948", "side": "A", "time": 1766102400067, "startPosition": "0.00188948", "dir": "Spot Dust Conversion", "closedPnl": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 273606103340, "crossed": true, "fee": "0.0", "tid": 0, "feeToken": "USDC" }, { "coin": "@166", "px": "0.9997", "sz": "0.003306", "side": "A", "time": 1766188800049, "startPosition": "0.003306", "dir": "Spot Dust Conversion", "closedPnl": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 274644835733, "crossed": true, "fee": "0.0", "tid": 0, "feeToken": "USDC" }, { "coin": "@206", "px": "0.1032", "sz": "0.0496", "side": "A", "time": 1772409600044, "startPosition": "0.0496", "dir": "Spot Dust Conversion", "closedPnl": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 334663993966, "crossed": true, "fee": "0.0", "tid": 0, "feeToken": "USDC" }, { "coin": "@166", "px": "0.99997", "sz": "0.00702922", "side": "A", "time": 1772755200030, "startPosition": "0.00702922", "dir": "Spot Dust Conversion", "closedPnl": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 339777806137, "crossed": true, "fee": "0.0", "tid": 0, "feeToken": "USDC" }, { "coin": "@305", "px": "0.071916", "sz": "0.028766", "side": "A", "time": 1779580800038, "startPosition": "0.028766", "dir": "Spot Dust Conversion", "closedPnl": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 439553311407, "crossed": true, "fee": "0.0", "tid": 0, "feeToken": "USDC" }, { "coin": "@188", "px": "0.0017754", "sz": "0.090505", "side": "A", "time": 1779580800038, "startPosition": "0.090505", "dir": "Spot Dust Conversion", "closedPnl": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 439553311402, "crossed": true, "fee": "0.0", "tid": 0, "feeToken": "USDC" } ]
Was this page helpful?