curl --request GET \
--url 'https://api.sprinter.tech/liquidity/protocol/{protocol}/events' \
--header 'X-Auth-Token: YOUR_API_KEY'
import requests
response = requests.get("https://api.sprinter.tech/liquidity/protocol/{protocol}/events", headers={"X-Auth-Token": "YOUR_API_KEY"})
print(response.json())
const response = await fetch(
"https://api.sprinter.tech/liquidity/protocol/{protocol}/events",
{ 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/protocol/{protocol}/events", 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))
}
"<string>"Liquidity Info
Stream Available Liquidity Updates via SSE
Opens a Server-Sent Events stream that pushes a LiquidityEvent whenever a pool’s available liquidity changes and a FeeEvent whenever a route fee updates. Current fee and liquidity state is pushed immediately on a new connection. Liquidity events fire when a reservation is created, increased, or deleted; duration-only extensions do not trigger an event.
GET
/
liquidity
/
protocol
/
{protocol}
/
events
curl --request GET \
--url 'https://api.sprinter.tech/liquidity/protocol/{protocol}/events' \
--header 'X-Auth-Token: YOUR_API_KEY'
import requests
response = requests.get("https://api.sprinter.tech/liquidity/protocol/{protocol}/events", headers={"X-Auth-Token": "YOUR_API_KEY"})
print(response.json())
const response = await fetch(
"https://api.sprinter.tech/liquidity/protocol/{protocol}/events",
{ 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/protocol/{protocol}/events", 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))
}
"<string>"curl --request GET \
--url 'https://api.sprinter.tech/liquidity/protocol/{protocol}/events' \
--header 'X-Auth-Token: YOUR_API_KEY'
import requests
response = requests.get("https://api.sprinter.tech/liquidity/protocol/{protocol}/events", headers={"X-Auth-Token": "YOUR_API_KEY"})
print(response.json())
const response = await fetch(
"https://api.sprinter.tech/liquidity/protocol/{protocol}/events",
{ 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/protocol/{protocol}/events", 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))
}