TradableOrderStatusDelegate
@objc public protocol TradableOrderStatusDelegate
A delegate protocol for getting notifications about order status changes. The delegate methods will not be called if full/orders updates are not running!
-
A delegate hook for getting order status changes.
Declaration
Swift
@objc func tradableOrderStatusChanged(for order: TradableOrder)
Parameters
order
A TradableOrder object whose status changed (from .pending into one of the final states: .executed or .cancelled). It is in its most recent state.
-
A delegate hook for getting order status errors.
Declaration
Swift
@objc func tradableOrderStatusUnknown(for orderId: String)
Parameters
orderId
The id of the TradableOrder’s object whose status is unknown due to system error (such as server crash, connection loss, etc.).