Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ovr/tinkoff-invest-rust
gRPC Клиент для Тинькофф Инвестиций (протокол v2)
https://github.com/ovr/tinkoff-invest-rust
grpc grpc-rust rust sdk tinkoff
Last synced: 3 months ago
JSON representation
gRPC Клиент для Тинькофф Инвестиций (протокол v2)
- Host: GitHub
- URL: https://github.com/ovr/tinkoff-invest-rust
- Owner: ovr
- License: mit
- Created: 2022-02-15T09:52:13.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-11T12:13:46.000Z (8 months ago)
- Last Synced: 2024-10-04T17:35:34.827Z (4 months ago)
- Topics: grpc, grpc-rust, rust, sdk, tinkoff
- Language: Rust
- Homepage:
- Size: 593 KB
- Stars: 9
- Watchers: 3
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tinkoff-invest-rust
> gRPC Клиент для Тинькофф Инвестиций (протокол v2)
[![Crates.io](https://img.shields.io/crates/v/tinkoff-invest-api)](https://crates.io/crates/tinkoff-invest-api)
[![Documentation](https://docs.rs/tinkoff-invest-api/badge.svg)](https://docs.rs/tinkoff-invest-api)
[![Crates.io](https://img.shields.io/crates/l/tinkoff-invest-api)](LICENSE)## Example
First you need to install:
```toml
[dependencies]
tinkoff-invest-api = { version = "0.2" }
```Then, on your main.rs:
```rust
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](LICENSE).