@ttech-pub/grpc-web-client
v1.44.5
Published
T-Tech Invest GRPC Web API client
Readme
T-Tech Invest API grpc-web Typescript library
Provides browser modules with promise api grpc stubs
Install using npm
npm install @ttech-pub/grpc-web-client --saveUsage
import { TTechApiClient } from '@ttech-pub/grpc-web-client'
const client = new TTechApiClient({ token: 't.invest.secret-token', metadata : {'x-app-name':'node-ts-myapp'}})
async function allInstruments() {
const shares = await client.instruments.shares({})
const bonds = await client.instruments.bonds({})
const etfs = await client.instruments.etfs({})
return {shares, bonds, etfs}
}
allInstruments()
.catch(console.log)
Примеры
Подробные примеры использования смотри в ./examples.
