tinkoff-invest-rust

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

Crates.io Documentation Crates.io

Example

First you need to install:

```toml [dependencies] tinkoff-invest-rust = { version = "0.1" }

[patch.crates-io]

Awaiting release with https://github.com/hyperium/tonic/commit/468e4221f0c496d9ffb4de24d3658b9267e884b1

tonic = { git = "https://github.com/hyperium/tonic", rev = "d6c0fc112b2288a080fd0a727453b24d666e3d79" } ```

Then, on your main.rs:

```rust let service = TinkoffInvestService::new("mytoken".tostring()); let channel = service.create_channel().await?; let mut users = service.users(channel).await?;

let accounts = users .getaccounts(tonic::Request::new( tinkoffinvest_rust::tcs::GetAccountsRequest {}, )) .await?;

println!("Response {:?}", accounts); ```

License

This project is licensed under the MIT license.