currentDepth
Get real-time cumulative orderbook depth at multiple BPS levels for all markets.
Last updated
# All markets, all DEXes
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type": "currentDepth"}'
# Filter by DEX
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type": "currentDepth", "dex": "hyperliquid"}'import requests
import os
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'currentDepth',
'dex': 'hyperliquid' # optional
},
headers={
'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
'Content-Type': 'application/json'
}
)
print(response.json())import axios from 'axios';
try {
const response = await axios.post('https://api.hydromancer.xyz/info', {
type: 'currentDepth',
dex: 'hyperliquid' // optional
}, {
headers: {
'Authorization': `Bearer ${process.env.HYDROMANCER_API_KEY}`,
'Content-Type': 'application/json'
}
});
console.log(response.data);
} catch (error) {
console.error('Error:', error.message);
}{
"timestampMs": 1712930000000,
"data": [
{
"coin": "BTC",
"dex": "hyperliquid",
"levels": [
{ "bps": 10, "bidDepthUsd": 4523891.23, "askDepthUsd": 3891234.56 },
{ "bps": 25, "bidDepthUsd": 12345678.90, "askDepthUsd": 11234567.89 },
{ "bps": 50, "bidDepthUsd": 28456789.01, "askDepthUsd": 26789012.34 },
{ "bps": 100, "bidDepthUsd": 45678901.23, "askDepthUsd": 43210987.65 },
{ "bps": 200, "bidDepthUsd": 67890123.45, "askDepthUsd": 65432109.87 },
{ "bps": 500, "bidDepthUsd": 89012345.67, "askDepthUsd": 87654321.09 }
]
},
{
"coin": "ETH",
"dex": "hyperliquid",
"levels": [
{ "bps": 10, "bidDepthUsd": 1234567.89, "askDepthUsd": 1123456.78 },
{ "bps": 25, "bidDepthUsd": 3456789.01, "askDepthUsd": 3234567.89 },
{ "bps": 50, "bidDepthUsd": 6789012.34, "askDepthUsd": 6543210.98 },
{ "bps": 100, "bidDepthUsd": 12345678.90, "askDepthUsd": 11234567.89 },
{ "bps": 200, "bidDepthUsd": 18901234.56, "askDepthUsd": 17890123.45 },
{ "bps": 500, "bidDepthUsd": 23456789.01, "askDepthUsd": 22345678.90 }
]
}
]
}