Skip to content

Conversation

guillaumedebavelaere
Copy link
Contributor

…unt doesn't contain order capabilities

https://www.pivotaltracker.com/story/show/161465877

// MARK: private

private func updateTradeButtonVisibility() {
guard let _ = self.selectedPosition?.linkedBrokerAccount.orderCapabilities(forInstrument: TradeItTradeInstrumentType.equities) else {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a tradeable flag in the account response we don't have in the TradeItLinkedBrokerAccount. Should we add and use this flag instead of checking the capabilities?

@mitochondrion
Copy link
Contributor

@gdebavelaere @guillaumedebavelaere Does this change just hide the trade buttons or does it also disable swipe-to-trade?

@guillaumedebavelaere
Copy link
Contributor Author

@mitochondrion updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants