gRPC Клиент для Тинькофф Инвестиций (протокол v2)
First you need to install:
[dependencies]
tinkoff-invest-rust = { version = "0.2" }
Then, on your main.rs:
let service = TinkoffInvestService::new("my_token".to_string());
let channel = service.create_channel().await?;
let mut users = service.users(channel).await?;
let accounts = users
.get_accounts(tonic::Request::new(
tinkoff_invest_rust::tcs::GetAccountsRequest {},
))
.await?;
println!("Response {:?}", accounts);
This project is licensed under the MIT license.