Risk Management
Manage portfolio and position risk.
Monitor Liquidation Risk
import requests
response = requests.get(
"https://api.synthdata.co/insights/liquidation",
headers={"Authorization": "Apikey YOUR_API_KEY"},
params={"asset": "BTC"}
)
data = response.json()
current_price = data['current_price']
for level in data['data']:
price_change = level['price_change']
long_prob_24h = level['long_liquidation_probability']['24']
short_prob_24h = level['short_liquidation_probability']['24']
print(f"{price_change} move - Long liq: {long_prob_24h:.1%}, Short liq: {short_prob_24h:.1%}")Dynamic Stop-Loss
Portfolio VaR
Last updated