allMids

Get the mid prices of all perp assets

Request

Field
Type
Description

type

string

Must be "allMids"

dex

string

optional will default to the first dex, can set to ALL_DEXS for all mids of all dexes

curl -X POST https://api.hydromancer.xyz/info \
  -H "Authorization: Bearer $HYDROMANCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "allMids",
    "dex": ""
  }'

Response Fields

Returns a JSON object where each key is a coin symbol and the value is the mid price as a string.

Field
Type
Description

{coin}

string

Mid price for the given coin

Response
{
  "BTC": "96500.50",
  "ETH": "3000.21",
  ....
}

Last updated