SmartConnect.getMarginApi() throws exception.