8 个版本
0.3.0 | 2024年6月6日 |
---|---|
0.2.3 | 2023年6月26日 |
0.2.2 | 2023年3月7日 |
0.2.1 | 2023年1月11日 |
0.1.2 | 2022年2月17日 |
#2 in #tinkoff
5.5MB
9K SLoC
tinkoff-invest-rust
gRPC 客户端用于 Тинькофф Инвестиций (协议 v2)
示例
首先需要安装
[dependencies]
tinkoff-invest-api = { version = "0.2" }
然后,在您的 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);
许可证
本项目采用 MIT 许可证。
依赖
~14–25MB
~446K SLoC