slippageHistory
Get historical slippage estimates for a specific market and notional size.
Last updated
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "slippageHistory",
"coin": "BTC",
"amount": 100000,
"startTime": 1706000000000,
"limit": 500
}'import requests
import os
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'slippageHistory',
'coin': 'BTC',
'amount': 100000,
'startTime': 1706000000000,
'limit': 500
},
headers={
'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
'Content-Type': 'application/json'
}
)
print(response.json())import axios from 'axios';
try {
const response = await axios.post('https://api.hydromancer.xyz/info', {
type: 'slippageHistory',
coin: 'BTC',
amount: 100000,
startTime: 1706000000000,
limit: 500
}, {
headers: {
'Authorization': `Bearer ${process.env.HYDROMANCER_API_KEY}`,
'Content-Type': 'application/json'
}
});
console.log(response.data);
} catch (error) {
console.error('Error:', error.message);
}[
{
"timestamp": 1764777547234,
"dex": "hyperliquid",
"coin": "BTC",
"halfSpreadBps": 0.05,
"amountUsd": 100000.0,
"buySlippageBps": 1.36,
"sellSlippageBps": 0.05
},
{
"timestamp": 1764778383619,
"dex": "hyperliquid",
"coin": "BTC",
"halfSpreadBps": 0.05,
"amountUsd": 100000.0,
"buySlippageBps": 0.05,
"sellSlippageBps": 0.05
}
]