text: # IMPORTATIONS
  import datetime
  import json
  import logging
  
  from degiro_connector.trading.api import API as TradingAPI
  from degiro_connector.trading.models.trading_pb2 import (
      CashAccountReport,
      Credentials,
  )
  
  # SETUP LOGGING LEVEL
  logging.basicConfig(level=logging.DEBUG)
  
  # SETUP CONFIG DICT
  with open("config/config.json") as config_file:
      config_dict = json.load(config_file)
  
  # SETUP CREDENTIALS
  int_account = config_dict.get("int_account")
  username = config_dict.get("username")
  password = config_dict.get("password")
  totp_secret_key = config_dict.get("totp_secret_key")
  one_time_password = config_dict.get("one_time_password")
  
  credentials = Credentials(
      int_account=int_account,
      username=username,
      password=password,
      totp_secret_key=totp_secret_key,
      one_time_password=one_time_password,
  )
  
  # SETUP TRADING API
  trading_api = TradingAPI(credentials=credentials)
  
  # CONNECT
  trading_api.connect()
  
  # SETUP REQUEST
  today = datetime.date.today()
  from_date = CashAccountReport.Request.Date(
      year=2020,
      month=1,
      day=1,
  )
  to_date = CashAccountReport.Request.Date(
      year=today.year,
      month=today.month,
      day=today.day,
  )
  request = CashAccountReport.Request(
      format=CashAccountReport.Format.CSV,
      country="FR",
      lang="fr",
      from_date=from_date,
      to_date=to_date,
  )
  
  # FETCH DATA
  cash_account_report = trading_api.get_cash_account_report(
      request=request,
      raw=False,
  )
  format = cash_account_report.Format.Name(cash_account_report.format)
  content = cash_account_report.content
  
  # DISPLAY FILE CONTENT
  print("Format :", format)
  print("Content :", content)
  