- Added visibility to
auth::TDauthfromTDAClientAuth. Easier to manage when running library from a server - Added error checking in
auth::TDauth - Able to now initialize
TDAClientAuthwithauth::TDauth - Refactoring in both
auth::TDauthandTDAClientAuth, including a couple of bug fixes - Added new models: PriceHistory, Quotes and modified Account model
- Doc corrections
- Added a new client (
TDAClientAuth) that manages ungoing token requirements. TDAClientAuthis just a wrapper aroundTDAClientbut includes token renewals as neededauth::TDauthwas updated to include expire times of tokens
- updated
Endpoint::WatchlistandEndpoint::Watchlists- incorrect in previous version. - cargo fmt and cargo clippy
- incremented version numbers on
attohttpcandserde
- Major change in approach of making requests. Requests are now made from an enum of endpoints instead of individual unique functions on client for each endpoint.
- added generic requests on client;
get,post,put,patchanddelete - removed endpoint funtions from
TDClientwhich will prevent backward compatibility to version 0.3 - caputured endpoints in
requestmodule - updated documentation, examples, and tests with new approach
- added model types for
SecuritiesAccountandUserPrincipalsresponse
- added
derive(Default)onTDClient
- add log crate and inserted a few log outputs for ERROR and INFO
- added endpoint
/instruments/and/instruments/{cusip} - added endpoint
/accounts/transactions/and/accounts/transactions/{transactionid} - added additional option for timeout on
attohttpc::session
- added expect() on any unwraps for error panic messages
- able to refresh the refresh token - added bool: new_fromrefresh(refresh: &str, clientid: &str, refreshupdate: bool)
- getter method to retrieve tokens: gettokens(&self) -> (&str, &str)
- convenience method to get updated refresh token: getrefresh_fromrefresh(refresh: &str, clientid: &str)
- added
/oauth2/tokenendpoint for API through newauthmodule - to manage tokens added
TDauthstruct along with functions to use/oauth2/tokenendpoint - added
[ignore]unit tests forTDauthto validate that fetch token works TDClientcan now be created withrefresh_tokenorcodewhich will fetch a validtoken- added
[ignore]unit tests forTDClientto make sure alternate constructors work - updated documentation throughout including
Readme.md
- fixed
/src/param.rsto correct bug forOptionChainEnum - updated documentation OptionChain parameters
- added disclaimer
- fixed
/src/param.rsto correct bug forOrderEnum - small corrections to
Readme.md
Created initial version
Completed TODO's
- grab account data (endpoint below /accounts)
- How do I use the enum better to correspond to the proper endpoint?
- able to view saved and current orders with filter (endpoint below /saveorders)
- modified so param are forced to enum and removed builder from pub
- [*] **(NOT USED)**able to create and delete saved order (endpoint below with POST and DELETE /saveorders)
- create example to pull history, optionchain, and quote
- able to specify type of orders to retrieve - add
OrderEnum - able to create, change and delete order (endpoint with POST, PUT and DELETE /orders)
- create example to create order