The Hyperliquid info API publishes a short exchange status object. The @siebly/hyperliquid-api SDK (version 1.0.5, Node.js 22 or newer) exposes it as getExchangeStatus(). This post prints the mainnet result and the same call on testnet.
The info endpoint overview describes the public info requests. getExchangeStatus() is a public read. No API key is required, and the method takes no address or other parameters.
npm install @siebly/hyperliquid-api
The typed response has two fields: specialStatuses and time. The script prints specialStatuses as null when that is the value, and it prints time both as the raw millisecond figure and as an ISO 8601 timestamp in UTC. The same call is then repeated with new RestClient({ testnet: true }).
import { RestClient } from '@siebly/hyperliquid-api';
function printStatus(label, status) {
console.log(label);
console.log(' specialStatuses:', status.specialStatuses === null ? 'null' : JSON.stringify(status.specialStatuses));
console.log(' time (ms):', status.time);
console.log(' time (ISO UTC):', new Date(status.time).toISOString());
}
const client = new RestClient();
const status = await client.getExchangeStatus();
printStatus('Mainnet getExchangeStatus()', status);
const testnet = new RestClient({ testnet: true });
const testnetStatus = await testnet.getExchangeStatus();
console.log('');
printStatus('Testnet getExchangeStatus()', testnetStatus);
Mainnet getExchangeStatus()
specialStatuses: null
time (ms): 1796407607628
time (ISO UTC): 2026-12-04T18:06:47.628Z
Testnet getExchangeStatus()
specialStatuses: null
time (ms): 1796407608218
time (ISO UTC): 2026-12-04T18:06:48.218Z
specialStatuses: null. The field is typed as a string or null. A null result is a real response, not a missing field. If a later call returns a string, inspect that string before you treat it as a status you can act on.time is a Unix timestamp in milliseconds. Mainnet reported 1796407607628, which is 2026-12-04T18:06:47.628Z. Testnet reported 1796407608218, which is 2026-12-04T18:06:48.218Z. Those two clocks were close together in this run, but they are separate responses, not one shared clock you can assume is identical.getExchangeStatus().Is an API key needed to read exchange status?
No. getExchangeStatus() is a public info request. An API wallet is needed only when the same client sends orders.
Does the method need a user address? No. The call takes no parameters.
What does a null specialStatuses value mean?
In this run both networks returned null. That is the value the client received. It is not an error, and it is not a missing key in the object.
How is testnet selected?
new RestClient({ testnet: true }). Use that only when the rest of the client is also aimed at testnet.
Which versions of Node.js are supported? Node.js 22 or newer. The package ships ESM and CommonJS builds and TypeScript types.