marginTable
Returns the margin requirements table for a specific perpetual asset by index.
Field
Type
Description
type
string
Must be "marginTable"
id
int
Asset index (required)
Request
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "marginTable",
"id": 1
}'import requests
import os
import json
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'marginTable',
'id': 1
},
headers={
'Authorization': f'Bearer {os.environ["HYDROMANCER_API_KEY"]}',
'Content-Type': 'application/json'
}
)
print(json.dumps(response.json(), indent=2))Response Fields
Field
Type
Description
description
string
Description of the margin table
marginTiers
array
List of margin tier objects
marginTiers[].lowerBound
string
Lower bound of the notional position for this tier
marginTiers[].maxLeverage
int
Maximum leverage allowed at this tier
Last updated