casualjim / rs-etrade

Rust client for the etrade api
MIT License
9 stars 6 forks source link

no external crate `KeychainStore` #5

Open write2bapun opened 1 year ago

write2bapun commented 1 year ago

Hi,

Could you please explain how to compile the example. I did setup all and when i tried to compile its giving error about use etrade::KeychainStore; Its not finding the module. Could you please update the readme when you get a chance.

I am interested to learn rs-etrade. I do have python version but i would like to explore in rust.

error[E0432]: unresolved import KeychainStore --> src/bin/etradectl/main.rs:7:5 | 7 | use KeychainStore; | ^^^^^^^^^^^^^ no external crate KeychainStore

Thanks Sam

casualjim commented 1 year ago

you can add it to your Cargo.toml with:

cargo add etrade --features keychain
write2bapun commented 1 year ago

Thank you. I am able to compile it.

Do i need to run ./etradectl init and provide consumer key and secret key it will able to create a session using Oauth 1.0? and subsequent commands will use those keys?

I tried to provide keys but ended up with error.. Error: failed to acquire secret service: no secret service provider or dbus session found. Anything i am missing?