Skip to content

Releases: jbertovic/tdameritradeclient

v0.4.5

25 Aug 00:20
b3f2824
Compare
Choose a tag to compare
  • (BREAKING CHANGE) all reqests (get, post, put, patch and delete) will now return Result<T, TDAClientError> instead of just T
  • Added library errors crate::error
  • Removed all expect and unwrap on requests from TDAClient
  • updated option chain model
  • cleaned up code with cargo clippy and cargo fmt

v0.4.4

22 Jun 14:09
4205412
Compare
Choose a tag to compare
  • Added visibility to auth::TDauth from TDAClientAuth. Easier to manage when running library from a server
  • Added error checking in auth::TDauth
  • Able to now initialize TDAClientAuth with auth::TDauth
  • Refactoring in both auth::TDauth and TDAClientAuth, including a couple of bug fixes
  • Added new models: PriceHistory, Quotes and modified Account model
  • Doc corrections

v0.4.3

18 Jan 00:23
3db49d7
Compare
Choose a tag to compare
  • Added a new client (TDAClientAuth) that manages ungoing token requirements.
  • TDAClientAuth is just a wrapper around TDAClient but includes token renewals as needed
  • auth::TDauth was updated to include expire times of tokens

v0.4.2

09 Oct 17:38
Compare
Choose a tag to compare
  • Updated endpoints in watchlist request
  • Ran cargo clippy and cargo fmt
  • increment versions on serde derive and attohttpc
  • removed Cargo.lock

v0.4.1

03 Oct 12:56
9d2f981
Compare
Choose a tag to compare
  • Incremented version numbers on serde derive and attohttpc

v0.4.0

28 Sep 22:04
9d3854c
Compare
Choose a tag to compare
  • 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, patch and delete
  • removed endpoint funtions from TDClient which will prevent backward compatibility to version 0.3
  • caputured endpoints in request module
  • updated documentation, examples, and tests with new approach
  • added model types for SecuritiesAccount and UserPrincipals response

v0.3.1

28 Sep 21:59
06ef374
Compare
Choose a tag to compare
  • add derive(Default) on TDClient

v0.3.0

20 Feb 22:28
216b6e3
Compare
Choose a tag to compare

Changes include:

  • refactored how parameters were used in queries
  • renaming functions to Rust standards
  • adding account module and struct #17 and #20 from @Epictetzu
  • created additional examples and fixed optionchain.rs example
  • document cleanup

Please note that the function names have been changed from v0.2 and will need updating if you are using this library in your own projects.

v0.2.2

05 Aug 01:47
1190975
Compare
Choose a tag to compare
  • added endpoint /instruments/ and /instruments/{cusip}
  • added endpoint /accounts/transactions/ and /accounts/transactions/{transactionid}
  • added additional option for timeout on attohttpc::session

v0.2.1

02 Jul 21:42
c866660
Compare
Choose a tag to compare
  • 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)