activeAssetData

Get asset data for a specific user and coin.

POST Request

Field
Type
Description

type

string

Must be "activeAssetData"

user

string

Ethereum address (0x-prefixed, 42 characters)

coin

string

symbol e.g. "BTC"

curl -X POST https://api.hydromancer.xyz/info \
  -H "Authorization: Bearer $HYDROMANCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "activeAssetData",
    "user": "0x0000000000000000000000000000000000000000",
    "coin": "BTC"
  }'

Response Fields

Field
Type
Description

user

string

User address

coin

string

Coin symbol

leverage.type

string

Leverage type ("cross" or "isolated")

leverage.value

int

Leverage value

leverage.rawUsd

string | null

Raw USD margin (only present if isolated)

maxTradeSzs

array

Maximum trade sizes [long, short]

availableToTrade

array

Available to trade [long, short]

markPx

string

Current mark price

Response

Last updated