Shell Python Node PHP C# Ruby

Reporting & Analytics

Custom reporting & analytics is simple by utilizing our query language combined with the aggregate response value modifier functions and group by capabilities.

Using the ARM (API Relational Model) design of our software libraries, constructing complex reporting queries is simple and intuitive.

Example Query

Below is an example of an API query that can be used to generate a monthly and weekly report.

Average Volume by Day of Week

results = pl.Transaction.select(
        pl.attr.completed_date.dayofweek(),
        pl.attr.amount.avgsum()
    ).filter_by(
        pl.attr.status == 'complete',
        pl.attr.completed_date.year() == 2020
    ).group_by(
        pl.attr.completed_date.dayofweek()
    ).all()
pl.Transaction.select(
        pl.attr.completed_date.dayofweek(),
        pl.attr.amount.avgsum()
    ).filter_by(
        pl.attr.status.eq('complete'),
        pl.attr.completed_date.year().eq(2020)
    ).group_by(
        pl.attr.completed_date.dayofweek()
    ).then(function(results) {
    })
var results = pl.Transaction.select(
        pl.attr.completed_date.dayofweek(),
        pl.attr.amount.avgsum()
    ).filter_by(
        pl.attr.status.eq("complete"),
        pl.attr.completed_date.year().eq(2020)
    ).group_by(
        pl.attr.completed_date.dayofweek()
    ).all();
dayofweek(completed_date) avgsum(amount)
sunday 24960.22
monday 8060.74
tuesday 15732.97
wednesday 15732.97
thursday 26703.59
friday 29253.64
saturday 25357.85