marketLiquidity
Get aggregated orderbook depth for a specific market
Overview
The marketLiquidity endpoint returns aggregated orderbook depth data for a specific market.
Key details:
Refreshed every second
Data retained for 24 hours
Depth available at multiple bps levels (2, 5, 10, 25, 25-500)
Supports time-based filtering (up to 24h back)
Request
Endpoint: POST /info
type
string
Must be "marketLiquidity"
market
string
Market symbol (e.g., "BTC", "flx:TSLA") - required
startTime
integer
Start timestamp in milliseconds, must be within 24h (optional)
endTime
integer
End timestamp in milliseconds, used with startTime (optional)
limit
integer
Max rows to return, default/max 500 (optional)
Note: When startTime is provided, results are returned in ascending order (oldest first). Without startTime, results are returned in descending order (newest first).
import requests
import os
response = requests.post(
'https://api.hydromancer.xyz/info',
json={ 'type': 'marketLiquidity', 'market': 'BTC', 'limit': 100 },
headers={
'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
'Content-Type': 'application/json'
}
)
print(response.json())Rate limits
10 points per request
Common errors
400:
market parameter is required- must provide market symbol400:
startTime cannot be more than 24 hours in the past- time filter limit403: Permission denied - check API key
429: Rate limit exceeded
Last updated