TradableAuthDelegate

@objc public protocol TradableAuthDelegate: class

A delegate protocol for authentication/authorization events.

  • A delegate hook for knowing when the SDK methods are ready to be used. Called when the access token has been updated for specified account.

    Declaration

    Swift

    @objc optional func tradableReady(for account: TradableAccount)
  • A delegate hook for knowing when the SDK has been deactivated and trading has been disabled. Called when the SDK has gone from an active state to inactive state (by removing all access tokens).

    Declaration

    Swift

    @objc optional func tradableDeactivated()
  • A delegate hook for authentication error handling.

    Declaration

    Swift

    @objc optional func tradableAuthenticationError(error: TradableError)

    Parameters

    error

    A TradableError object that contains detailed information about the error.