assetContext
Get the asset context (mid-, mark- and oracle price for example) of one or more symbols.
Single coin
Field
Type
Description
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "assetContext",
"coin": "BTC"
}'import requests
import os
import json
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'assetContext',
'coin': 'BTC'
},
headers={
'Authorization': f'Bearer {os.environ["HYDROMANCER_API_KEY"]}',
'Content-Type': 'application/json'
}
)
print(json.dumps(response.json(), indent=2))Multiple coins
Field
Type
Description
Response Fields
Field
Type
Description
Last updated