curl --request GET \
--url https://tars.loopscale.com/v1/markets/earn/vaultsimport requests
url = "https://tars.loopscale.com/v1/markets/earn/vaults"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://tars.loopscale.com/v1/markets/earn/vaults', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tars.loopscale.com/v1/markets/earn/vaults",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://tars.loopscale.com/v1/markets/earn/vaults"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://tars.loopscale.com/v1/markets/earn/vaults")
.asString();require 'uri'
require 'net/http'
url = URI("https://tars.loopscale.com/v1/markets/earn/vaults")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"acceptedAssetMint": "<string>",
"address": "<string>",
"cancelEnabled": true,
"createdAt": "<string>",
"instantEnabled": true,
"managerAuthority": "<string>",
"metadataJson": {},
"parsedAccountJson": {},
"providerKind": 1,
"queueEnabled": true,
"requiresAcknowledgment": true,
"shareMint": "<string>",
"status": 1,
"lastUpdatedSlot": "<string>",
"lastUpdatedTs": "<string>",
"latestSnapshot": {
"navPerShareE18": "<string>",
"pendingWithdrawalsAssets": "<string>",
"shareSupply": "<string>",
"snapshotSlot": "<string>",
"snapshotTs": "<string>",
"totalAumAssets": "<string>",
"displayApyBps": 123,
"leverageX100": 1,
"realizedApyBps24h": 123,
"realizedApyBps30d": 123,
"realizedApyBps7d": 123,
"realizedReturnBps24h": 123,
"realizedReturnBps30d": 123,
"realizedReturnBps7d": 123,
"rewardsApyBps": 123,
"utilizationBps": 1
}
}
]{
"error": {
"code": 400,
"message": "Request could not be processed."
}
}Get Earn Vaults
Returns every registered Earn vault with its latest snapshot (share supply, NAV per share, AUM, realized and display APY).
status is 0 Draft, 1 Active, 2 Paused, 3 Deprecated. acceptedAssetMint is the vault’s underlying deposit mint and shareMint is its LP token. metadataJson.tags may include urlAccessOnly for vaults that are reachable by link but not listed.
curl --request GET \
--url https://tars.loopscale.com/v1/markets/earn/vaultsimport requests
url = "https://tars.loopscale.com/v1/markets/earn/vaults"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://tars.loopscale.com/v1/markets/earn/vaults', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tars.loopscale.com/v1/markets/earn/vaults",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://tars.loopscale.com/v1/markets/earn/vaults"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://tars.loopscale.com/v1/markets/earn/vaults")
.asString();require 'uri'
require 'net/http'
url = URI("https://tars.loopscale.com/v1/markets/earn/vaults")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"acceptedAssetMint": "<string>",
"address": "<string>",
"cancelEnabled": true,
"createdAt": "<string>",
"instantEnabled": true,
"managerAuthority": "<string>",
"metadataJson": {},
"parsedAccountJson": {},
"providerKind": 1,
"queueEnabled": true,
"requiresAcknowledgment": true,
"shareMint": "<string>",
"status": 1,
"lastUpdatedSlot": "<string>",
"lastUpdatedTs": "<string>",
"latestSnapshot": {
"navPerShareE18": "<string>",
"pendingWithdrawalsAssets": "<string>",
"shareSupply": "<string>",
"snapshotSlot": "<string>",
"snapshotTs": "<string>",
"totalAumAssets": "<string>",
"displayApyBps": 123,
"leverageX100": 1,
"realizedApyBps24h": 123,
"realizedApyBps30d": 123,
"realizedApyBps7d": 123,
"realizedReturnBps24h": 123,
"realizedReturnBps30d": 123,
"realizedReturnBps7d": 123,
"rewardsApyBps": 123,
"utilizationBps": 1
}
}
]{
"error": {
"code": 400,
"message": "Request could not be processed."
}
}Response
Earn vaults with their latest snapshot
accepted deposit asset mint
on-chain vault address
user cancellation supported
row creation timestamp
instant withdrawals supported
curator or manager authority
off-chain display/product metadata
Show child attributes
Show child attributes
cached ParsedEarnVault JSON
Show child attributes
Show child attributes
provider enum discriminant
x >= 0queued withdrawals supported
deposit flow acknowledgment required
provider share mint
vault status enum discriminant
x >= 0latest applied slot
latest applied timestamp
Show child attributes
Show child attributes