#для #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

#1666 in Network programming

Download history 8/week @ 2024-07-29 2/week @ 2024-09-23 4/week @ 2024-09-30

481 downloads per month

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

~13–24MB
~431K SLoC