webData2

Get aggregated web data including clearinghouse state, metadata, and market info.

This is a composite endpoint returning clearinghouse state, open orders, metadata, asset contexts, and more.

POST Request

Field
Type
Description

type

string

Must be "webData2"

user

string

Ethereum address (0x-prefixed, 42 characters)

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

Response Fields

Field
Type
Description

clearinghouseState

object

User's clearinghouse state (margin summary, positions, etc.)

clearinghouseState.marginSummary

object

Margin summary with accountValue, totalNtlPos, totalRawUsd, totalMarginUsed

clearinghouseState.crossMarginSummary

object

Cross margin summary (same fields as marginSummary)

clearinghouseState.crossMaintenanceMarginUsed

string

Cross maintenance margin used

clearinghouseState.withdrawable

string

Withdrawable amount

clearinghouseState.assetPositions

array

List of asset positions

clearinghouseState.time

int

Timestamp (ms)

leadingVaults

array

Leading vaults for the user

totalVaultEquity

string

Total vault equity

openOrders

array

Open orders

agentAddress

string?

Agent address (null if none)

agentValidUntil

int?

Agent validity timestamp (null if none)

cumLedger

string

Cumulative ledger value

meta

object

Metadata including universe and margin tables

meta.universe

array

List of perp assets with szDecimals, name, maxLeverage, marginTableId, isDelisted (optional)

meta.marginTables

array

Margin table definitions with tiers

meta.collateralToken

int

Collateral token index

assetCtxs

array

Asset contexts

serverTime

int

Server timestamp (ms)

isVault

boolean

Whether the user is a vault

user

string

User address

twapStates

array

Active TWAP order states

perpsAtOpenInterestCap

array

List of perp symbols at open interest cap

Response (truncated)

Last updated