oraclePriceHistoryByTime
Returns oracle price updates for a coin within a time range in ascending order (oldest first).
Field
Type
Description
type
string
Must be "oraclePriceHistoryByTime"
coin
string
symbol e.g. "BTC" or with dex prefix "xyz:XYZ100"
startTime
int
ms unix timestamp
endTime
int
ms unix timestamp (optional)
limit
int
max 2000
dex
string
DEX identifier e.g. "hyna", "xyz" (optional, returns all if omitted)
Request
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "oraclePriceHistoryByTime",
"coin": "BTC",
"startTime": 1765641292010,
"endTime": 1765641295024
}'import requests
import os
import json
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'oraclePriceHistoryByTime',
'coin': 'BTC',
'startTime': 1765641292010,
'endTime': 1765641295024
},
headers={
'Authorization': f'Bearer {os.environ["HYDROMANCER_API_KEY"]}',
'Content-Type': 'application/json'
}
)
print(json.dumps(response.json(), indent=2))Response Fields
Field
Type
Description
time
int
Timestamp (ms)
dex
string
DEX identifier
coin
string
Trading pair
oraclePx
string?
Oracle price
markPx
string?
Mark price (first input)
markPx2
string?
Mark price (second input) — added from 2026-01-12, only present if hip3 dex pushes 2 mark prices
extPerpPx
string?
External perp price
Last updated