- Given an API response which returns a list of transactions, aggregate (sum) the transactions'
amount
s of a specific type- The aggregation function will run either daily or weekly, must return the correct response either way
- How would you optimize this function?
API Endpoint: https://530a-5-107-84-27.ngrok.io/transactions
- Given the same API method above, write a function which returns the counts of each transaction type