Generic HL info passthrough
curl --request POST \
--url https://hyper.polynode.dev/exchange/info \
--header 'Content-Type: application/json' \
--data '
{
"type": "allMids"
}
'import requests
url = "https://hyper.polynode.dev/exchange/info"
payload = { "type": "allMids" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({type: 'allMids'})
};
fetch('https://hyper.polynode.dev/exchange/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://hyper.polynode.dev/exchange/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' => 'allMids'
]),
CURLOPT_HTTPHEADER => [
"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://hyper.polynode.dev/exchange/info"
payload := strings.NewReader("{\n \"type\": \"allMids\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://hyper.polynode.dev/exchange/info")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"allMids\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hyper.polynode.dev/exchange/info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"allMids\"\n}"
response = http.request(request)
puts response.read_bodyPassthrough
Generic Passthrough
POST
/
exchange
/
info
Generic HL info passthrough
curl --request POST \
--url https://hyper.polynode.dev/exchange/info \
--header 'Content-Type: application/json' \
--data '
{
"type": "allMids"
}
'import requests
url = "https://hyper.polynode.dev/exchange/info"
payload = { "type": "allMids" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({type: 'allMids'})
};
fetch('https://hyper.polynode.dev/exchange/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://hyper.polynode.dev/exchange/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' => 'allMids'
]),
CURLOPT_HTTPHEADER => [
"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://hyper.polynode.dev/exchange/info"
payload := strings.NewReader("{\n \"type\": \"allMids\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://hyper.polynode.dev/exchange/info")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"allMids\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hyper.polynode.dev/exchange/info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"allMids\"\n}"
response = http.request(request)
puts response.read_bodyGeneric passthrough that accepts any HyperLiquid info request body. Use this for any query type not covered by the dedicated endpoints.
The request body is forwarded to HyperLiquid’s
/info endpoint as-is. The response is returned unchanged.
This means any future HyperLiquid query type works automatically without us shipping new endpoints.
Example
curl -X POST https://hyper.polynode.dev/exchange/info \
-H 'Content-Type: application/json' \
-d '{"type": "userRateLimit", "user": "0xc64cc00b46150e9274d09efc945c951710c4ef02"}'
Use cases
- Query types we haven’t built dedicated endpoints for yet
- Newly added HyperLiquid info methods
- Specialized debugging or one-off queries
- Building your own client library against the full HL API surface
Query Parameters
Body
application/json
The body is of type object.
Response
200
HL info response (forwarded as-is)