Skip to content

Instantly share code, notes, and snippets.

@hwjeremy
Created August 5, 2018 04:37
Embed
What would you like to do?
Retrieve a Position 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 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.
})
@hwjeremy
Copy link
Author

hwjeremy commented Aug 5, 2018

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

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