tinkoff-invest-api

Crates.iotinkoff-invest-api
lib.rstinkoff-invest-api
version0.3.0
sourcesrc
created_at2022-02-15 10:31:25.801293
updated_at2024-06-06 12:31:37.14674
descriptiongRPC Клиент для Тинькофф Инвестиций (протокол v2)
homepage
repositoryhttps://github.com/ovr/tinkoff-invest-rust
max_upload_size
id532677
size16,617,025
Dmitry Patsura (ovr)

documentation

README

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.

Commit count: 42

cargo fmt