-
Notifications
You must be signed in to change notification settings - Fork 25
Usage
James Robert Somers edited this page Dec 7, 2016
·
14 revisions
To use the SDK, first instantiate the TradeItLauncher
:
let launcher = TradeItLauncher(apiKey: API_KEY, environment: TradeItEmsTestEnv)
It serves as the global managing object for the SDK.
There are two ways to use the TradeIt SDK:
- The SDK includes pre-built screens and UI workflows that minimize the effort to integrate TradeIt trading, portfolio, and account management into an app. See Launching pre built UI.
- The SDK also includes a set of classes that allow developers to build custom screens and UI workflows for "deep integration" with the TradeIt API trading workflow and users' portfolio data. See Deep Integration.
Whenever a user links their broker, the SDK will automatically save the link (in the form of the associated TradeIt OAuth token) in the secure iOS keychain. When the app is relaunched and the TradeItLauncher
is reinstantiated, the saved brokers are loaded from the keychain.
Environment | Enum |
---|---|
Sandbox | TradeItEmsTestEnv |
Production | TradeItEmsProductionEnv |