assetContext

Get the asset context (mid-, mark- and oracle price for example) of one or more symbols.

Single coin

Request

Field
Type
Description

type

string

Must be "assetContext"

coin

string

symbol e.g. "BTC" or with dex prefix "xyz:XYZ100"

curl -X POST https://api.hydromancer.xyz/info \
  -H "Authorization: Bearer $HYDROMANCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "assetContext",
    "coin": "BTC"
  }'
Response
{
  "oraclePx": "96500.50",
  "markPx": "96485.25",
  "midPx": "96490.50",
  "impactPxs": [ "96490", "96491" ],
  "openInterest": "25401.1214"
}

Multiple coins

Query up to 20 coins in a single request. Use coins instead of coin.

Field
Type
Description

type

string

Must be "assetContext"

coins

string[]

Array of symbols, max 20. e.g. ["BTC", "ETH"]

Response

Coins that are not found return null in the response map instead of causing a 404.


Response Fields

Field
Type
Description

oraclePx

string?

Oracle price (null if not available)

markPx

string?

Mark price (null if not available)

midPx

string?

Mid price (null if not available)

impactPxs

array?

Avg execution price to trade impact notional (20k$ BTC/ETH, 6k$ other coins) on the bid and ask (null if not available)

openInterest

string?

Number of outstanding contracts (null if not available)

Last updated