#для #grpc #tinkoff #sdk #invest #клиент #инвестиций

tinkoff-invest-api

gRPC Клиент для Тинькофф Инвестиций (протокол v2)

8 releases

0.3.0 Jun 6, 2024
0.2.3 Jun 26, 2023
0.2.2 Mar 7, 2023
0.2.1 Jan 11, 2023
0.1.2 Feb 17, 2022

#1456 in Network programming

MIT license

5.5MB
9K SLoC

tinkoff-invest-rust

gRPC Клиент для Тинькофф Инвестиций (протокол v2)

Crates.io Documentation Crates.io

Example

First you need to install:

[dependencies]
tinkoff-invest-api = { 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);

License

This project is licensed under the MIT license.

Dependencies

~14–25MB
~449K SLoC