curl --request GET \
--url 'https://api.sprinter.tech/liquidity/v2/chain/{srcChain}/protocol/{protocol}/type/{type}/quote' \
--header 'X-Auth-Token: YOUR_API_KEY'
import requests
response = requests.get("https://api.sprinter.tech/liquidity/v2/chain/{srcChain}/protocol/{protocol}/type/{type}/quote", headers={"X-Auth-Token": "YOUR_API_KEY"})
print(response.json())
const response = await fetch(
"https://api.sprinter.tech/liquidity/v2/chain/{srcChain}/protocol/{protocol}/type/{type}/quote",
{ headers: { "X-Auth-Token": "YOUR_API_KEY" } }
);
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.sprinter.tech/liquidity/v2/chain/{srcChain}/protocol/{protocol}/type/{type}/quote", nil)
req.Header.Set("X-Auth-Token", "YOUR_API_KEY")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
{
"data": {
"borrowCost": "150000",
"duration": 300,
"estimatedFillDuration": 180,
"feeBps": 5,
"id": "qt_a1b2c3d4e5f6",
"liquidityPool": "0xLiqPool1234567890AbCdEf1234567890AbCdEf12",
"quoteDuration": 60,
"repaymentChain": 1,
"repaymentRecipient": "0xRepayRecip234567890AbCdEf1234567890AbCdEf1",
"requiredInput": "100000000",
"requiredOutput": "99850000"
}
}
Liquidity Actions
Get the Borrow Quote for a Liquidity Transaction
Calculates the borrow quote including borrow cost, required input/output, and duration
GET
/
liquidity
/
v2
/
chain
/
{srcChain}
/
protocol
/
{protocol}
/
type
/
{type}
/
quote
curl --request GET \
--url 'https://api.sprinter.tech/liquidity/v2/chain/{srcChain}/protocol/{protocol}/type/{type}/quote' \
--header 'X-Auth-Token: YOUR_API_KEY'
import requests
response = requests.get("https://api.sprinter.tech/liquidity/v2/chain/{srcChain}/protocol/{protocol}/type/{type}/quote", headers={"X-Auth-Token": "YOUR_API_KEY"})
print(response.json())
const response = await fetch(
"https://api.sprinter.tech/liquidity/v2/chain/{srcChain}/protocol/{protocol}/type/{type}/quote",
{ headers: { "X-Auth-Token": "YOUR_API_KEY" } }
);
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.sprinter.tech/liquidity/v2/chain/{srcChain}/protocol/{protocol}/type/{type}/quote", nil)
req.Header.Set("X-Auth-Token", "YOUR_API_KEY")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
{
"data": {
"borrowCost": "150000",
"duration": 300,
"estimatedFillDuration": 180,
"feeBps": 5,
"id": "qt_a1b2c3d4e5f6",
"liquidityPool": "0xLiqPool1234567890AbCdEf1234567890AbCdEf12",
"quoteDuration": 60,
"repaymentChain": 1,
"repaymentRecipient": "0xRepayRecip234567890AbCdEf1234567890AbCdEf1",
"requiredInput": "100000000",
"requiredOutput": "99850000"
}
}
curl --request GET \
--url 'https://api.sprinter.tech/liquidity/v2/chain/{srcChain}/protocol/{protocol}/type/{type}/quote' \
--header 'X-Auth-Token: YOUR_API_KEY'
import requests
response = requests.get("https://api.sprinter.tech/liquidity/v2/chain/{srcChain}/protocol/{protocol}/type/{type}/quote", headers={"X-Auth-Token": "YOUR_API_KEY"})
print(response.json())
const response = await fetch(
"https://api.sprinter.tech/liquidity/v2/chain/{srcChain}/protocol/{protocol}/type/{type}/quote",
{ headers: { "X-Auth-Token": "YOUR_API_KEY" } }
);
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.sprinter.tech/liquidity/v2/chain/{srcChain}/protocol/{protocol}/type/{type}/quote", nil)
req.Header.Set("X-Auth-Token", "YOUR_API_KEY")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
{
"data": {
"borrowCost": "150000",
"duration": 300,
"estimatedFillDuration": 180,
"feeBps": 5,
"id": "qt_a1b2c3d4e5f6",
"liquidityPool": "0xLiqPool1234567890AbCdEf1234567890AbCdEf12",
"quoteDuration": 60,
"repaymentChain": 1,
"repaymentRecipient": "0xRepayRecip234567890AbCdEf1234567890AbCdEf1",
"requiredInput": "100000000",
"requiredOutput": "99850000"
}
}
Authorizations
Path Parameters
Protocol name (e.g., Across)
Quote algorithm type (e.g., ExactInput, ExactOutput)
Source CAIP chain ID (e.g., eip155:1)
Query Parameters
Destination CAIP chain ID (e.g., eip155:1)
Exclusive fill flag (true/false)
Amount of tokens for which we are requesting borrow quote (in the smallest denomination)
Token address on destination (hex)
Preferred liquidity pool address to borrow from (hex)
Response
Successfully retrieved borrow quote
Show child attributes
Show child attributes