Skip to content
mitochondrion edited this page Dec 23, 2016 · 14 revisions

Configure the SDK

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)

Using 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.

Linked Brokers

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.

Environments

Environment Enum
Sandbox TradeItEmsTestEnv
Production TradeItEmsProductionEnv
Clone this wiki locally