Path: blob/master/Agicap/Agicap_Export_treasury_plan.ipynb
2973 views
Agicap - Export treasury plan
Tags: #agicap #treasury #export #plan #finance #data #snippet
Author: Florent Ravenel
Last update: 2023-04-27 (Created: 2023-04-26)
Description: This notebook will export the Excel treasury plan consolidated by month from Agicap and return a dataframe.
References:
Input
Import libraries
Setup Variables
username
: Agicap usernamepassword
: Agicap passwordenterprise_id
: Agicap enterprise ID. Your Agicap account manager can provide you all your enterprises/accounts ids.date_start
: First date of the extract in format: "%Y-%m-%d" (example: 2023-01-01). If not set it will return the first day of the current monthdate_end
: Last date of the extract in format: "%Y-%m-%d" (example: 2023-01-31). If not set it will return the last day of the current monthoutput_csv
: csv file path to be saved as output
Model
Get token from Agicap
Get token using user credentials
Get date range
Transform date to timestamp to pass it as parameters in request.
Export treasury plan
Get export with request