Retrieve a Position in Amatino Swift - A double-entry accounting library for iOS & MacOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Amatino Swift: https://github.com/amatino-code/amatino-swift | |
// Double entry accounting API | |
try Position.retrieve( | |
session: session, | |
entity: starkIndustries, | |
globalUnit: usd, | |
callback: { (error, position) in | |
// position.assets, position.liabilities, | |
// and position.equities combine to give | |
// a financial position for the Entity. | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The parameters supplied to
Position.retrieve()
come from the following examples:session
- Create SessionstarkIndustries
- Retrieve Entityusd
- Retrieve GlobalUnit