tradingticket / tradeitiosticketsdk2 Goto Github PK
View Code? Open in Web Editor NEWTradeIt iOS SDK to integrate trading and portfolio management.
Home Page: https://www.trade.it
License: Apache License 2.0
TradeIt iOS SDK to integrate trading and portfolio management.
Home Page: https://www.trade.it
License: Apache License 2.0
Or how would I know the result after calling TradeItLauncher.launchTrading?
Previously, I was getting a completion handler with TradeItTicketControllerResult.
This is super important to know if the trade is being placed or not so I can communicate with the user.
For example, the API in TradeItOrder
public func preview(onSuccess: @escaping (TradeItPreviewTradeResult, @escaping TradeItPlaceOrderHandlers) -> Void, onFailure: @escaping (TradeItErrorResult) -> Void
Give this error while writing ObjC code:-
Also, for this API
[TradeItSDK configureWithApiKey:PUBLISHER_NAME environment:TradeItEmsProductionEnv];
Please make sure NOT to set a default value for the parameter, otherwise, I am getting this error:-
symbolClass : BUY_WRITES, CASH, COMBO, EQUITY_OR_ETF, FIXED_INCOME, FUTURE, FX, MULTILEG, MUTUAL_FUNDS, OPTION, SPREADS, UNKNOWN.
Is it possible to know the exact value as Equity or ETF. But, its combined value.
The public APIs needs to be Obj-C ready, for example:-
open func launchTrading(fromViewController viewController: UIViewController, withOrder order: TradeItOrder = TradeItOrder())
When attempting to connect a Dummy account, I get this error message:
Trading and Account Information with Dummy has been momentarily paused as we upgrade our connection. Please check back soon.
I can't get the latest using pod update.
Thanks,
Options ticker shouldn't have any spaces in them, please remove the spaces so we can parse them properly.
This is ASAP please.
It doesn't look good to have two objects inside this position, one for forex and one for equity! Why not have one base portfolio position (TradeItPortfolioPosition) and then have forex (TradeItPortfolioFXPosition) and equity (TradeItPortfolioEquityPosition) derived from it. The caller will then check the type if needed and it will be simpler code.
There is a copy of this framework inside TradeItIosAdAdapterSDK.
Thanks,
After launchTradingFromViewController and if you tap on an account to change the current account, you will see the accounts in a table view then there is a jump to accommodate for the header of the table. It seems something happened inside viewDidAppear() but it should be inside viewWillAppear. Please make the transition smooth.
Broker name for the Dummy and DummyMultiple account is same as "Dummy". Will be helpful, If the name is different. So, that we can use it as different broker account.
Tried to run the given example app project, but not able. Facing multiple error regarding missing framework like promiseKit, MBProgressHUD, SwiftyUserDefaults . Can you guide me, what are the setup need to do?
Thanks
Many brokers, like TD and Robinhood, have margin cash, it is an important field to give the overall view of the account total value.
I remember this field was added but I can't see it in the new SDK.
Thanks,
Most properties are written as @property (nullable) Type *thing
. This means that the default atomic
keyword is implied. So, every property has a thread synchronization lock included. That’s a lot of unneeded overhead for a UI Framework where everything is expected to be used by a single thread.
Atomic properties are a farce anyway. If you are setting one property on thread A and another property on thread B, it’s almost guaranteed to create bugs as the property values can get out of sync. IMO is vastly preferable to state that the classes are explicitly not thread safe, unless you actually intend for them to be (which is a lot of work to do correctly).
It would be quite nice to have a single place to look at general changes for each version.
Thanks,
Hi, Apple has announced that new apps using UIWebView will no longer be accepted to the App Store in April 2020, and existing apps using UIWebView will no longer be allowed to update starting December 2020. Apple Announcement
Can you please work on this issue as it is urgent.
Thank you,
This is needed for clients who integrated the SDK UI. Before, there was a call like this:-
- [TradeItTicketController getSessions: self withApiKey:@"tradeit-test-api-key"
onCompletion:^(NSArray *sessions) {
NSDictionary \* firstSession = [sessions objectAtIndex: 0];
NSString \* sessionToken = [firstSession valueForKey:@"token"];
NSString \* accountNumber = [firstSession valueForKey:@"accountNumber"];
//use sessionToken with anything here: https://www.trade.it/documentation/api
//or to use with the existing services in the library
TradeItConnector * myConnector = [[TradeItConnector alloc] initWithApiKey: @"tradeit-test-api-key"];
TradeItSession * mySession = [[TradeItSession alloc] initWithConnector: myConnector];
mySession.token = sessionToken;
TradeItGetPositionsRequest * positionRequest = [[TradeItGetPositionsRequest alloc] initWithAccountNumber:accountNumber];
TradeItPositionService * positionRequester = [[TradeItPositionService alloc] initWithSession: mySession];
[positionRequester getAccountPositions: positionRequest withCompletionBlock:^(TradeItResult * result) {
//update UI with position data
}];
}];
These generate compiler warnings for the framework, and since the public headers are included client apps, the warnings cascade to the clients. It’s very very annoying if your team (responsibly) uses “Treat warnings as errors”.
In order to allow users to change what they sync (from one account to another), we need to display the selection controller with an already selected account if any.
I identify the accounts by accountNumber in my data model.
Also, the cells need to have a checkmark accessory UITableViewCellAccessoryCheckmark
, not the current UITableViewCellAccessoryDisclosureIndicator
.
Builds and runs with Xcode 9, but when attempting to archive, I get the error “command failed due to signal: abort trap: 6”.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.