oraclePriceHistory
Returns the most recent oracle price updates for a coin in descending order (newest first).
Field
Type
Description
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
Last updated