description |
---|
Connect with Qonto |
{% embed url="https://qonto.com/" caption="" %}
{% hint style="danger" %} You must "Connect" before any other methods {% endhint %}
from naas_drivers import qonto
# Your credentials
user_id = 'YOUR_USER_ID'
api_key = 'YOUR_API_KEY'
# Connect to Qonto
qt = qonto.connect(user_id, api_key)
Get your bank account positions
# Get bank positions
df_positions = qt.positions.get()
df_positions
Get all flows by bank accounts
# Get all flows
df_flows = qt.flows.get_all()
df_flows
Get your statements with flows and positions
# Get bank statement aggregated by day
df_statement = qt.statement.aggregated()
df_statement
# Get bank statement aggregated by day filtered by date
df_statement = qt.statement.aggregated(date_from="2020-10-01",
date_to="2020-10-12")
df_statement
# Get your statement detailed
df_statement = qt.statement.detailed()
df_statement
# Get your statement detailed filtered by date
df_statement = qt.statement.detailed(date_from="2020-10-01",
date_to="2020-10-12")
df_statement
{% hint style="warning" %} Parameters "date_from" and "date_to" must be in format "%Y-%m-%d" {% endhint %}