https://github.com/ofen/tinkoff-invest-example
Tinkoff invest API gRPC example.
https://github.com/ofen/tinkoff-invest-example
api example go golang grpc tinkoff tinkoff-invest
Last synced: 10 months ago
JSON representation
Tinkoff invest API gRPC example.
- Host: GitHub
- URL: https://github.com/ofen/tinkoff-invest-example
- Owner: ofen
- License: apache-2.0
- Created: 2022-05-05T12:59:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-05T17:36:13.000Z (over 3 years ago)
- Last Synced: 2025-01-29T07:42:12.775Z (12 months ago)
- Topics: api, example, go, golang, grpc, tinkoff, tinkoff-invest
- Language: Go
- Homepage: https://pkg.go.dev/github.com/ofen/tinkoff-invest-example
- Size: 232 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Tinkoff invest API gRPC [go](https://go.dev) example.
## Usage
```sh
./tinkoff-invest-example -t your-api-token
```
## Build
```sh
go build .
```
## Generate gRPC client
1. Install `protoc` version 3 https://grpc.io/docs/protoc-installation/
1. Install plugins
```sh
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28 && \
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
```
1. Generate code
```sh
mkdir -p tinkoff/investapi/ && \
protoc --go-grpc_out=tinkoff/investapi/ --go_out=tinkoff/investapi/ \
--proto_path=protos/ protos/*.proto
```
## Update protocol buffer files
https://github.com/Tinkoff/investAPI/tree/main/src/docs/contracts
## Documentation
https://tinkoff.github.io/investAPI/