#для #grpc #tinkoff #клиент #протокол #инвестиций #тинькофф

tinkoff-invest-api

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

7 releases

0.2.3 Jun 26, 2023
0.2.2 Mar 7, 2023
0.2.1 Jan 11, 2023
0.2.0 Nov 12, 2022
0.1.2 Feb 17, 2022

#1087 in Network programming

Download history 2/week @ 2024-02-21 11/week @ 2024-02-28 8/week @ 2024-03-06 7/week @ 2024-03-13 1/week @ 2024-03-27 6/week @ 2024-04-03 106/week @ 2024-04-10

113 downloads per month

MIT license

4MB
7K SLoC

Rust 6.5K SLoC JavaScript 773 SLoC // 0.1% comments Shell 38 SLoC // 0.1% comments

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
~448K SLoC