Instantly share code, notes, and snippets.

Embed
What would you like to do?
Retrieve a Performance in Amatino Swift - A double-entry accounting library for iOS & MacOS
// Amatino Swift: https://github.com/amatino-code/amatino-swift
// Double entry accounting API
try Performance.retrieve(
session: session,
entity: starkIndustries,
startTime: Date(timeIntervalSinceNow: (-3600*24*10)),
endTime: Date(),
globalUnit: usd,
callback: { (error, performance) in
// performance.incomeAccounts & performance.expenseAccounts
// contain the performance of the Entity over the specified
// timeframe
})
@hwjeremy

This comment has been minimized.

Owner

hwjeremy commented Aug 5, 2018

The parameters supplied to Performance.retrieve() come from the following examples:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment