historicalOrders | Hyperliquid Info API
curl --request POST \
--url https://hypercore.goldrushdata.com/info \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "<string>",
"user": "<string>",
"limit": 123
}
'import requests
url = "https://hypercore.goldrushdata.com/info"
payload = {
"type": "<string>",
"user": "<string>",
"limit": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({type: '<string>', user: '<string>', limit: 123})
};
fetch('https://hypercore.goldrushdata.com/info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://hypercore.goldrushdata.com/info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'type' => '<string>',
'user' => '<string>',
'limit' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://hypercore.goldrushdata.com/info"
payload := strings.NewReader("{\n \"type\": \"<string>\",\n \"user\": \"<string>\",\n \"limit\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://hypercore.goldrushdata.com/info")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"<string>\",\n \"user\": \"<string>\",\n \"limit\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hypercore.goldrushdata.com/info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"<string>\",\n \"user\": \"<string>\",\n \"limit\": 123\n}"
response = http.request(request)
puts response.read_body{
"[]": [
{
"order": {
"coin": "<string>",
"side": "<string>",
"limitPx": "<string>",
"sz": "<string>",
"origSz": "<string>",
"oid": 123,
"cloid": {},
"timestamp": 123,
"orderType": "<string>",
"tif": {},
"reduceOnly": true,
"isTrigger": true,
"triggerCondition": "<string>",
"triggerPx": "<string>",
"isPositionTpsl": true,
"children": [
{}
]
},
"status": "<string>",
"statusTimestamp": 123
}
]
}Info API
historicalOrders | Hyperliquid Info API
Hyperliquid historicalOrders: fetch a user’s recent orders - both open and finalized - each with its current status and status timestamp.
POST
/
info
historicalOrders | Hyperliquid Info API
curl --request POST \
--url https://hypercore.goldrushdata.com/info \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "<string>",
"user": "<string>",
"limit": 123
}
'import requests
url = "https://hypercore.goldrushdata.com/info"
payload = {
"type": "<string>",
"user": "<string>",
"limit": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({type: '<string>', user: '<string>', limit: 123})
};
fetch('https://hypercore.goldrushdata.com/info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://hypercore.goldrushdata.com/info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'type' => '<string>',
'user' => '<string>',
'limit' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://hypercore.goldrushdata.com/info"
payload := strings.NewReader("{\n \"type\": \"<string>\",\n \"user\": \"<string>\",\n \"limit\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://hypercore.goldrushdata.com/info")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"<string>\",\n \"user\": \"<string>\",\n \"limit\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hypercore.goldrushdata.com/info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"<string>\",\n \"user\": \"<string>\",\n \"limit\": 123\n}"
response = http.request(request)
puts response.read_body{
"[]": [
{
"order": {
"coin": "<string>",
"side": "<string>",
"limitPx": "<string>",
"sz": "<string>",
"origSz": "<string>",
"oid": 123,
"cloid": {},
"timestamp": 123,
"orderType": "<string>",
"tif": {},
"reduceOnly": true,
"isTrigger": true,
"triggerCondition": "<string>",
"triggerPx": "<string>",
"isPositionTpsl": true,
"children": [
{}
]
},
"status": "<string>",
"statusTimestamp": 123
}
]
}Credit Cost
1 per call
Processing
Realtime
type: "historicalOrders" is used to fetch a user’s recent orders - both open and finalized - each with its current status and status timestamp.
Estimate your monthly cost for this API using the Pricing Calculator.
- Wire-equal to
POST api.hyperliquid.xyz/infowith{"type": "historicalOrders", "user": "0x..."}. - Returns the user’s most recent orders across every coin, open and finalized (filled, canceled, and other terminal states). For only the currently-resting orders, use
openOrdersorfrontendOpenOrders. limitcaps the number returned; the default and maximum is 2000.
status and the millisecond timestamp that status was set. Use it to reconstruct recent order history, audit fills/cancels, or drive an activity view.
Endpoint
POST https://hypercore.goldrushdata.com/info
Authorization: Bearer <GOLDRUSH_API_KEY>
Content-Type: application/json
Request
string
default:"historicalOrders"
required
Always
"historicalOrders".string
required
The account address in 42-character hex format, e.g.
"0x0000000000000000000000000000000000000000".int
Maximum number of orders to return. Defaults to
2000; values above 2000 are capped at 2000.Example
curl -X POST https://hypercore.goldrushdata.com/info \
-H "Authorization: Bearer $GOLDRUSH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "historicalOrders",
"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",
"limit": 100
}'
const response = await fetch("https://hypercore.goldrushdata.com/info", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.GOLDRUSH_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
type: "historicalOrders",
user: "0x31ca8395cf837de08b24da3f660e77761dfb974b",
limit: 100,
}),
});
const orders = await response.json();
for (const { order, status, statusTimestamp } of orders) {
console.log(order.coin, order.side, order.oid, status, statusTimestamp);
}
import os, requests
response = requests.post(
"https://hypercore.goldrushdata.com/info",
headers={"Authorization": f"Bearer {os.environ['GOLDRUSH_API_KEY']}"},
json={"type": "historicalOrders", "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b", "limit": 100},
)
for entry in response.json():
o = entry["order"]
print(o["coin"], o["side"], o["oid"], entry["status"], entry["statusTimestamp"])
Response
An array of order entries. Each element pairs theorder with its status and the millisecond timestamp that status took effect.
[
{
"order": {
"coin": "POPCAT",
"side": "A",
"limitPx": "0.043668",
"sz": "16812.0",
"oid": 513957677284,
"timestamp": 1786384269962,
"triggerCondition": "N/A",
"isTrigger": false,
"triggerPx": "0.0",
"children": [],
"isPositionTpsl": false,
"reduceOnly": false,
"orderType": "Limit",
"origSz": "16812.0",
"tif": "Alo",
"cloid": null
},
"status": "canceled",
"statusTimestamp": 1786384274789
}
]
Field descriptions
limitPx, sz, origSz, and triggerPx are returned as decimal strings, preserving upstream precision. Do not parse them as floats.array<object>
One entry per order.
Show entry fields
Show entry fields
object
The order.
Show order fields
Show order fields
string
Asset symbol, e.g.
"BTC", "POPCAT", or "@107" for spot.string
"B" = bid (buy), "A" = ask (sell).string
Limit price (decimal string).
string
Remaining size (decimal string).
string
Original order size (decimal string).
int
Order id.
string | null
Client order id (hex) if one was supplied, else
null.int
Order creation time (ms since epoch).
string
e.g.
"Limit", "Stop Market", "Stop Limit".string | null
Time-in-force, e.g.
"Alo", "Gtc", "Ioc".bool
Whether the order is reduce-only.
bool
Whether it is a trigger (stop/take-profit) order.
string
Human-readable trigger condition, or
"N/A".string
Trigger price (decimal string).
bool
Whether it is a position-level TP/SL.
array
Child orders (e.g. TP/SL legs) attached to this order.
string
The order’s current or terminal status. Hyperliquid defines many values; observed examples include
"open", "filled", "canceled", "selfTradeCanceled", and "iocCancelRejected".int
Millisecond timestamp when the status took effect.
Related endpoints
frontendOpenOrders
fetch a user’s currently open orders enriched with frontend metadata.
openOrders
list a user’s resting open orders by wallet address.
orderStatus
look up the status of a single order for a user by order id (oid) or client order id (cloid).