Display accounts balances

This commit is contained in:
2025-04-21 12:31:00 +02:00
parent 6ee250d872
commit 1621fe41e2
5 changed files with 60 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
import { APIClient } from "./ApiClient";
export interface Balances {
[key: number]: number;
}
export class MovementApi {
/**
* Get all accounts balances
*/
static async GetAllBalances(): Promise<Balances> {
return (
await APIClient.exec({
uri: `/accounts/balances`,
method: "GET",
})
).data;
}
}