For the complete documentation index, see llms.txt. This page is also available as Markdown.

spotclearinghouseState

Get the spot clearinghouse state for a single user.

Get the spot clearinghouse state for a single user.

POST Request

Field
Type
Description

type

string

Must be "spotClearinghouseState"

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": "spotClearinghouseState",
    "user": "0x0000000000000000000000000000000000000000"
  }'
import requests
import os

response = requests.post(
    'https://api.hydromancer.xyz/info',
    json={
        'type': 'spotClearinghouseState',
        'user': '0x0000000000000000000000000000000000000000'
    },
    headers={
        'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
        'Content-Type': 'application/json'
    }
)

print(response.json())

Response Fields

Field
Type
Description

balances

array

Array of spot balance objects

balances[n].coin

string

Coin symbol

balances[n].token

int

Token index

balances[n].total

string

Total balance

balances[n].hold

string

Amount on hold

balances[n].entryNtl

string

Entry notional

Response

Last updated