cURL
curl --request GET \
--url https://gateway.architect.exchange/api/mmlp/v2/reward-accruals \
--header 'Authorization: Bearer <token>'import requests
url = "https://gateway.architect.exchange/api/mmlp/v2/reward-accruals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway.architect.exchange/api/mmlp/v2/reward-accruals', 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://gateway.architect.exchange/api/mmlp/v2/reward-accruals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://gateway.architect.exchange/api/mmlp/v2/reward-accruals"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gateway.architect.exchange/api/mmlp/v2/reward-accruals")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.architect.exchange/api/mmlp/v2/reward-accruals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"limit": 1,
"offset": 1,
"total_count": 1,
"accruals": [
{
"account_share": "<string>",
"cap_adjustment_usd": "<string>",
"epoch_end_ts": "2023-11-07T05:31:56Z",
"epoch_start_ts": "2023-11-07T05:31:56Z",
"final_accrued_usd": "<string>",
"id": "<string>",
"payout_status": "accrued",
"raw_reward_usd": "<string>",
"symbol": "<string>"
}
],
"summary": {
"accrued_today_usd": "<string>",
"awaiting_approval_usd": "<string>",
"paid_this_month_usd": "<string>",
"retained_usd": "<string>"
},
"symbols": [
"<string>"
],
"trend": [
{
"accrued_usd": "<string>",
"epoch_day": "2023-12-25",
"paid_usd": "<string>",
"symbol": "<string>"
}
],
"window": {
"max_day": "<string>",
"min_day": "<string>"
}
}Liquidity program
Get reward accruals
GET
/
mmlp
/
v2
/
reward-accruals
cURL
curl --request GET \
--url https://gateway.architect.exchange/api/mmlp/v2/reward-accruals \
--header 'Authorization: Bearer <token>'import requests
url = "https://gateway.architect.exchange/api/mmlp/v2/reward-accruals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway.architect.exchange/api/mmlp/v2/reward-accruals', 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://gateway.architect.exchange/api/mmlp/v2/reward-accruals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://gateway.architect.exchange/api/mmlp/v2/reward-accruals"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gateway.architect.exchange/api/mmlp/v2/reward-accruals")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.architect.exchange/api/mmlp/v2/reward-accruals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"limit": 1,
"offset": 1,
"total_count": 1,
"accruals": [
{
"account_share": "<string>",
"cap_adjustment_usd": "<string>",
"epoch_end_ts": "2023-11-07T05:31:56Z",
"epoch_start_ts": "2023-11-07T05:31:56Z",
"final_accrued_usd": "<string>",
"id": "<string>",
"payout_status": "accrued",
"raw_reward_usd": "<string>",
"symbol": "<string>"
}
],
"summary": {
"accrued_today_usd": "<string>",
"awaiting_approval_usd": "<string>",
"paid_this_month_usd": "<string>",
"retained_usd": "<string>"
},
"symbols": [
"<string>"
],
"trend": [
{
"accrued_usd": "<string>",
"epoch_day": "2023-12-25",
"paid_usd": "<string>",
"symbol": "<string>"
}
],
"window": {
"max_day": "<string>",
"min_day": "<string>"
}
}Query Parameters
Restrict to rewards at one point in the payout lifecycle. Where a reward stands on its way to being paid.
accrued— earned on the most recently closed epoch, not yet put up for approval.awaiting— submitted for approval.approved— cleared for payment.paid— credited to the account.retained— forfeited and kept by the exchange, because the reward fell below the minimum payout. Not a stage on the way topaid.
Available options:
accrued, awaiting, approved, paid, retained Response
200 - application/json
The caller's reward accruals, with totals and a per-day trend
total_count is the filtered set's size, which accruals pages over.