Charts API
Use the Charts API to generate the charts shown on Midaz console.
Request a chart
POST
/v1/organizations/{{id}}/ledgers/{{id}}/charts
Use this endpoint to create one of the following charts:
Total Transactions: We will compile the
SENT
transactions in the database for that particular ledger. This provides an overview of the transaction volume processed, offering insights into the total activity over the selected period.Transactions by Status: We will present the total number of transactions according to their statuses. This detailed view by status allows for a more granular analysis of the health and flow of transactions, aiding in identifying potential bottlenecks or points of attention in the operation.
Top Assets: We will provide the total amount allocated in accounts for the ledger's assets. This indicator is crucial to understanding the distribution of resources and identifying which assets are capturing the most asset allocation, offering a clear view of investment preferences and trends.
As it does not make sense to consider this value over time, the
startDate
andendDate
parameters are not necessary.Additionally, the
limit
query parameter can be sent to define how many assets will be returned. If not specified, the default is 3 assets.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Response codes
Last updated