oraclePriceHistory
Returns the most recent oracle price updates for a coin in descending order (newest first).
Field
Type
Description
type
string
Must be "oraclePriceHistory"
coin
string
symbol e.g. "BTC" or with dex prefix "xyz:XYZ100"
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": "oraclePriceHistory",
"coin": "BTC",
"limit": 100
}'import json
import os
import requests
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'oraclePriceHistory',
'coin': 'BTC',
'limit': 100
},
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
Unix timestamp in milliseconds
dex
string
DEX source (e.g. "hyna")
coin
string
Coin symbol
oraclePx
string?
Oracle price (null if not available)
markPx
string?
Mark price (null if not available)
markPx2
string?
Secondary mark price, only relevant for some HIP-3 dexes (available from 12 Jan 2026, null for earlier data or non-HIP-3 assets)
extPerpPx
string?
External perp price (null if not available)
Last updated