gRPC Клиент для Тинькофф Инвестиций (протокол v2)
First you need to install:
```toml [dependencies] tinkoff-invest-rust = { version = "0.1" }
[patch.crates-io]
tonic = { git = "https://github.com/hyperium/tonic", rev = "d6c0fc112b2288a080fd0a727453b24d666e3d79" } ```
Then, on your main.rs:
```rust let service = TinkoffInvestService::new("mytoken".tostring()); let channel = service.create_channel().await?; let mut users = service.users(channel).await?;
let accounts = users .getaccounts(tonic::Request::new( tinkoffinvest_rust::tcs::GetAccountsRequest {}, )) .await?;
println!("Response {:?}", accounts); ```
This project is licensed under the MIT license.