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>"
}
}Get reward accruals
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>"
}
}Authorizations
User session token
Query Parameters
The trading account to read. Omit for the caller's default account.
Page size; defaults to DEFAULT_PAGE_SIZE.
x >= 0Rows to skip; defaults to 0.
x >= 0Restrict to one instrument symbol.
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.
accrued, awaiting, approved, paid, retained Inclusive YYYY-MM-DD lower bound on the epoch day.
Inclusive YYYY-MM-DD upper bound on the epoch day.
Response
The caller's reward accruals, with totals and a per-day trend
total_count is the filtered set's size, which accruals pages over.
x >= 0x >= 0x >= 0One page of the filtered set, newest epoch first.
Show child attributes
Show child attributes
Totals over the whole filtered set, not just the page.
Show child attributes
Show child attributes
Every symbol you have ever accrued on, over the whole ledger — so a caller can tell which instruments engaged the program without reading every page.
Per-day totals over the whole filtered set, not just the page.
Show child attributes
Show child attributes
Inclusive epoch-day bounds of the whole ledger, for date inputs.
Show child attributes
Show child attributes