-
Notifications
You must be signed in to change notification settings - Fork 25
Usage
mitochondrion edited this page Dec 23, 2016
·
14 revisions
This must occur before using any functionality of the SDK. If it is not called first, subsequent calls will cause the app to terminate!
TradeItSDK.configure(apiKey: API_KEY, environment: TradeItEmsTestEnv)
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 |