Get statement barline
Tags: #qonto #bank #statement #plotly #barline #naas_drivers
Author: Florent Ravenel

Input

Import library

1
from naas_drivers import qonto
Copied!

Get your Qonto credentials

1
QONTO_USER_ID = 'YOUR_USER_ID'
2
QONTO_SECRET_KEY = 'YOUR_SECRET_KEY'
Copied!

Parameters

1
# Date to start extraction, format: "AAAA-MM-JJ", example: "2021-01-01"
2
date_from = None
3
# Date to end extraction, format: "AAAA-MM-JJ", example: "2021-01-01", default = now
4
date_to = None
5
# Title of the graph, default = "Evolution du {date_from} au {date_to}"
6
title = f"💵<b> Qonto - Suivi des encaissements / Décaissements</b><br>"
7
# Name of line displayed in legend
8
line_name = "Solde"
9
# Line color
10
line_color = "#1ea1f1"
11
# Name of cash in bar displayed in legend
12
cashin_name = "Encaissements"
13
# Cash in bar color
14
cashin_color = "#47dd82"
15
# Name of cash out bar displayed in legend
16
cashout_name = "Décaissements"
17
# Cash out bar color
18
cashout_color = "#ea484f"
Copied!

Model

Create barline chart

1
barline = qonto.connect(QONTO_USER_ID, QONTO_SECRET_KEY).statements.barline(date_from=date_from,
2
date_to=date_to,
3
title=title,
4
line_name=line_name,
5
line_color=line_color,
6
cashin_name=cashin_name,
7
cashin_color=cashin_color,
8
cashout_name=cashout_name,
9
cashout_color=cashout_color)
Copied!

Output

Display chart

1
barline
Copied!
1
Copied!
Copy link
Edit on GitHub