API Reference
Get price quote
Returns a live price quote for a swap between two assets. Optionally computes a worked example for a specific input or output amount.
Returns a live price quote for a swap between two assets. Optionally computes a worked example for a specific input or output amount.
Query Parameters
input_asset*string
Asset you are sending (e.g. BTC)
output_asset*string
Asset you want to receive (e.g. ETH)
input_amount?number
If provided, compute the expected output for this input amount
Format
floatoutput_amount?number
If provided, estimate the required input to receive this output amount
Format
floatResponse Body
application/json
curl -X GET "https://feather-prod.tristero.com/price?input_asset=BTC&output_asset=ETH"{
"InputAsset": {
"AssetName": "BTC",
"UsdMarketMid": 65432.18,
"HalfSpread": 0.0012,
"MarketHalfSpread": 0.0008,
"HalfFee": 0.00015,
"MinAmount": 0.001,
"MaxOutput": 10.5,
"MaxInput": 15,
"PriceImpactRate": 0.00005,
"CapacityFraction": 0.73,
"TargetBalance": 20,
"CurrentBalance": 14.6,
"FundingAddress": "bc1qfeatherfundingaddress1234567890abcdef"
},
"OutputAsset": {
"AssetName": "ETH",
"UsdMarketMid": 3456.78,
"HalfSpread": 0.0008,
"MarketHalfSpread": 0.0005,
"HalfFee": 0.0025,
"MinAmount": 0.01,
"MaxOutput": 150,
"MaxInput": 200,
"PriceImpactRate": 0.00002,
"CapacityFraction": 0.85,
"TargetBalance": 200,
"CurrentBalance": 170,
"FundingAddress": "0xFeatherFundingAddress1234567890abcdef1234"
},
"ExchangeRate": 18.92,
"InputFee": 0.0003,
"MaxInput": 10.5,
"MinInput": 0.001,
"MaxOutput": 150
}