Get live dashboard state
curl --request GET \
--url https://api.molq.site/api/dashboardimport requests
url = "https://api.molq.site/api/dashboard"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.molq.site/api/dashboard', 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://api.molq.site/api/dashboard",
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://api.molq.site/api/dashboard"
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://api.molq.site/api/dashboard")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.molq.site/api/dashboard")
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{
"portfolio": {},
"market": {
"mantleYieldApy": 123,
"fundingApy": 123,
"estimatedNetApy": 123,
"targetNetApy": 123,
"shieldContributionApy": 123,
"hedgeContributionApy": 123,
"hedgeRatio": 123,
"liquidityScore": 123,
"riskScore": 123,
"updatedAt": "2023-11-07T05:31:56Z"
},
"decisions": [
{}
],
"hedgeExecution": {
"configured": true,
"tradingEnabled": true,
"venue": "<string>",
"symbol": "<string>",
"targetNotionalUsd": 123,
"currentShortQuantity": 123,
"currentShortNotionalUsd": 123,
"accountEquityUsd": 123,
"unrealizedPnlUsd": 123,
"message": "<string>"
}
}Portfolio
Get live dashboard state
Returns vault balances, active and target APY projections, live market inputs, recent agent decisions, and hedge execution state.
GET
/
api
/
dashboard
Get live dashboard state
curl --request GET \
--url https://api.molq.site/api/dashboardimport requests
url = "https://api.molq.site/api/dashboard"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.molq.site/api/dashboard', 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://api.molq.site/api/dashboard",
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://api.molq.site/api/dashboard"
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://api.molq.site/api/dashboard")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.molq.site/api/dashboard")
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{
"portfolio": {},
"market": {
"mantleYieldApy": 123,
"fundingApy": 123,
"estimatedNetApy": 123,
"targetNetApy": 123,
"shieldContributionApy": 123,
"hedgeContributionApy": 123,
"hedgeRatio": 123,
"liquidityScore": 123,
"riskScore": 123,
"updatedAt": "2023-11-07T05:31:56Z"
},
"decisions": [
{}
],
"hedgeExecution": {
"configured": true,
"tradingEnabled": true,
"venue": "<string>",
"symbol": "<string>",
"targetNotionalUsd": 123,
"currentShortQuantity": 123,
"currentShortNotionalUsd": 123,
"accountEquityUsd": 123,
"unrealizedPnlUsd": 123,
"message": "<string>"
}
}⌘I