get https://api.mercury.com/api/v1/treasury
Response schema:
{
"accounts" : [
{
// Balances in dollars
"availableBalance" : number,
"currentBalance" : number,
"createdAt" : date-time,
"id" : string,
"status": "active" | "deleted" | "pending" | "archived",
}
]
}
The id
field returned here is a valid argument to /accounts
endpoints, such as /accounts/:id/transactions
, where you can fetch deposits and withdrawals from Treasury.
However, Treasury-specific events, such as dividend payments, price changes, and changes or assessments to a fee schedule are not represented as transactions, and will be available in forthcoming api endpoints specific to Treasury.