UNPKG

@tinkoff/invest-js

Version:
147 lines (146 loc) 10.4 kB
import { ClientUnaryCall, requestCallback } from '@grpc/grpc-js'; import { SharesResponse } from '../generated/tinkoff/public/invest/api/contract/v1/SharesResponse'; import { InstrumentResponse } from '../generated/tinkoff/public/invest/api/contract/v1/InstrumentResponse'; import { InstrumentRequest } from '../generated/tinkoff/public/invest/api/contract/v1/InstrumentRequest'; import { Client } from '../types'; declare const contract: { AccruedInterest: import("@grpc/proto-loader").MessageTypeDefinition; Asset: import("@grpc/proto-loader").MessageTypeDefinition; AssetBond: import("@grpc/proto-loader").MessageTypeDefinition; AssetClearingCertificate: import("@grpc/proto-loader").MessageTypeDefinition; AssetCurrency: import("@grpc/proto-loader").MessageTypeDefinition; AssetEtf: import("@grpc/proto-loader").MessageTypeDefinition; AssetFull: import("@grpc/proto-loader").MessageTypeDefinition; AssetInstrument: import("@grpc/proto-loader").MessageTypeDefinition; AssetRequest: import("@grpc/proto-loader").MessageTypeDefinition; AssetResponse: import("@grpc/proto-loader").MessageTypeDefinition; AssetSecurity: import("@grpc/proto-loader").MessageTypeDefinition; AssetShare: import("@grpc/proto-loader").MessageTypeDefinition; AssetStructuredProduct: import("@grpc/proto-loader").MessageTypeDefinition; AssetType: import("@grpc/proto-loader").EnumTypeDefinition; AssetsRequest: import("@grpc/proto-loader").MessageTypeDefinition; AssetsResponse: import("@grpc/proto-loader").MessageTypeDefinition; Bond: import("@grpc/proto-loader").MessageTypeDefinition; BondResponse: import("@grpc/proto-loader").MessageTypeDefinition; BondType: import("@grpc/proto-loader").EnumTypeDefinition; BondsResponse: import("@grpc/proto-loader").MessageTypeDefinition; Brand: import("@grpc/proto-loader").MessageTypeDefinition; BrandData: import("@grpc/proto-loader").MessageTypeDefinition; CountryResponse: import("@grpc/proto-loader").MessageTypeDefinition; Coupon: import("@grpc/proto-loader").MessageTypeDefinition; CouponType: import("@grpc/proto-loader").EnumTypeDefinition; CurrenciesResponse: import("@grpc/proto-loader").MessageTypeDefinition; Currency: import("@grpc/proto-loader").MessageTypeDefinition; CurrencyResponse: import("@grpc/proto-loader").MessageTypeDefinition; Dividend: import("@grpc/proto-loader").MessageTypeDefinition; EditFavoritesActionType: import("@grpc/proto-loader").EnumTypeDefinition; EditFavoritesRequest: import("@grpc/proto-loader").MessageTypeDefinition; EditFavoritesRequestInstrument: import("@grpc/proto-loader").MessageTypeDefinition; EditFavoritesResponse: import("@grpc/proto-loader").MessageTypeDefinition; ErrorDetail: import("@grpc/proto-loader").MessageTypeDefinition; Etf: import("@grpc/proto-loader").MessageTypeDefinition; EtfResponse: import("@grpc/proto-loader").MessageTypeDefinition; EtfsResponse: import("@grpc/proto-loader").MessageTypeDefinition; FavoriteInstrument: import("@grpc/proto-loader").MessageTypeDefinition; FilterOptionsRequest: import("@grpc/proto-loader").MessageTypeDefinition; FindInstrumentRequest: import("@grpc/proto-loader").MessageTypeDefinition; FindInstrumentResponse: import("@grpc/proto-loader").MessageTypeDefinition; Future: import("@grpc/proto-loader").MessageTypeDefinition; FutureResponse: import("@grpc/proto-loader").MessageTypeDefinition; FuturesResponse: import("@grpc/proto-loader").MessageTypeDefinition; GetAccruedInterestsRequest: import("@grpc/proto-loader").MessageTypeDefinition; GetAccruedInterestsResponse: import("@grpc/proto-loader").MessageTypeDefinition; GetAssetFundamentalsRequest: import("@grpc/proto-loader").MessageTypeDefinition; GetAssetFundamentalsResponse: import("@grpc/proto-loader").MessageTypeDefinition; GetAssetReportsRequest: import("@grpc/proto-loader").MessageTypeDefinition; GetAssetReportsResponse: import("@grpc/proto-loader").MessageTypeDefinition; GetBondCouponsRequest: import("@grpc/proto-loader").MessageTypeDefinition; GetBondCouponsResponse: import("@grpc/proto-loader").MessageTypeDefinition; GetBondEventsRequest: import("@grpc/proto-loader").MessageTypeDefinition; GetBondEventsResponse: import("@grpc/proto-loader").MessageTypeDefinition; GetBrandRequest: import("@grpc/proto-loader").MessageTypeDefinition; GetBrandsRequest: import("@grpc/proto-loader").MessageTypeDefinition; GetBrandsResponse: import("@grpc/proto-loader").MessageTypeDefinition; GetConsensusForecastsRequest: import("@grpc/proto-loader").MessageTypeDefinition; GetConsensusForecastsResponse: import("@grpc/proto-loader").MessageTypeDefinition; GetCountriesRequest: import("@grpc/proto-loader").MessageTypeDefinition; GetCountriesResponse: import("@grpc/proto-loader").MessageTypeDefinition; GetDividendsRequest: import("@grpc/proto-loader").MessageTypeDefinition; GetDividendsResponse: import("@grpc/proto-loader").MessageTypeDefinition; GetFavoritesRequest: import("@grpc/proto-loader").MessageTypeDefinition; GetFavoritesResponse: import("@grpc/proto-loader").MessageTypeDefinition; GetForecastRequest: import("@grpc/proto-loader").MessageTypeDefinition; GetForecastResponse: import("@grpc/proto-loader").MessageTypeDefinition; GetFuturesMarginRequest: import("@grpc/proto-loader").MessageTypeDefinition; GetFuturesMarginResponse: import("@grpc/proto-loader").MessageTypeDefinition; IndicativeResponse: import("@grpc/proto-loader").MessageTypeDefinition; IndicativesRequest: import("@grpc/proto-loader").MessageTypeDefinition; IndicativesResponse: import("@grpc/proto-loader").MessageTypeDefinition; Instrument: import("@grpc/proto-loader").MessageTypeDefinition; InstrumentExchangeType: import("@grpc/proto-loader").EnumTypeDefinition; InstrumentIdType: import("@grpc/proto-loader").EnumTypeDefinition; InstrumentLink: import("@grpc/proto-loader").MessageTypeDefinition; InstrumentRequest: import("@grpc/proto-loader").MessageTypeDefinition; InstrumentResponse: import("@grpc/proto-loader").MessageTypeDefinition; InstrumentShort: import("@grpc/proto-loader").MessageTypeDefinition; InstrumentStatus: import("@grpc/proto-loader").EnumTypeDefinition; InstrumentType: import("@grpc/proto-loader").EnumTypeDefinition; InstrumentsRequest: import("@grpc/proto-loader").MessageTypeDefinition; InstrumentsService: (new (address: string, credentials: import("@grpc/grpc-js").ChannelCredentials, options?: import("@grpc/grpc-js").ClientOptions | undefined) => import("../generated/tinkoff/public/invest/api/contract/v1/InstrumentsService").InstrumentsServiceClient) & { service: import("../generated/tinkoff/public/invest/api/contract/v1/InstrumentsService").InstrumentsServiceDefinition; }; MoneyValue: import("@grpc/proto-loader").MessageTypeDefinition; Option: import("@grpc/proto-loader").MessageTypeDefinition; OptionDirection: import("@grpc/proto-loader").EnumTypeDefinition; OptionPaymentType: import("@grpc/proto-loader").EnumTypeDefinition; OptionResponse: import("@grpc/proto-loader").MessageTypeDefinition; OptionSettlementType: import("@grpc/proto-loader").EnumTypeDefinition; OptionStyle: import("@grpc/proto-loader").EnumTypeDefinition; OptionsResponse: import("@grpc/proto-loader").MessageTypeDefinition; Page: import("@grpc/proto-loader").MessageTypeDefinition; PageResponse: import("@grpc/proto-loader").MessageTypeDefinition; Ping: import("@grpc/proto-loader").MessageTypeDefinition; PingDelaySettings: import("@grpc/proto-loader").MessageTypeDefinition; PingRequest: import("@grpc/proto-loader").MessageTypeDefinition; PriceType: import("@grpc/proto-loader").EnumTypeDefinition; Quotation: import("@grpc/proto-loader").MessageTypeDefinition; RealExchange: import("@grpc/proto-loader").EnumTypeDefinition; Recommendation: import("@grpc/proto-loader").EnumTypeDefinition; ResponseMetadata: import("@grpc/proto-loader").MessageTypeDefinition; ResultSubscriptionStatus: import("@grpc/proto-loader").EnumTypeDefinition; RiskLevel: import("@grpc/proto-loader").EnumTypeDefinition; SecurityTradingStatus: import("@grpc/proto-loader").EnumTypeDefinition; Share: import("@grpc/proto-loader").MessageTypeDefinition; ShareResponse: import("@grpc/proto-loader").MessageTypeDefinition; ShareType: import("@grpc/proto-loader").EnumTypeDefinition; SharesResponse: import("@grpc/proto-loader").MessageTypeDefinition; StructuredProductType: import("@grpc/proto-loader").EnumTypeDefinition; TradingDay: import("@grpc/proto-loader").MessageTypeDefinition; TradingInterval: import("@grpc/proto-loader").MessageTypeDefinition; TradingSchedule: import("@grpc/proto-loader").MessageTypeDefinition; TradingSchedulesRequest: import("@grpc/proto-loader").MessageTypeDefinition; TradingSchedulesResponse: import("@grpc/proto-loader").MessageTypeDefinition; }; export declare class InstrumentsService extends contract.InstrumentsService { /** * Метод получения списка акций для базовонго списка инструментов. */ baseShares(callback: requestCallback<SharesResponse>): ClientUnaryCall; /** * Метод получения списка акций для всех инструментов. */ allShares(callback: requestCallback<SharesResponse>): ClientUnaryCall; /** * Метод получения основной информации об инструменте c идентификатором FIGI. */ getInstrumentByFIGI(argument: InstrumentRequest, callback: requestCallback<InstrumentResponse>): ClientUnaryCall; /** * Метод получения основной информации об инструменте c идентификатором Ticker. */ getInstrumentByTicker(argument: InstrumentRequest, callback: requestCallback<InstrumentResponse>): ClientUnaryCall; /** * Метод получения расписания торгов торговых площадок */ tradingSchedules: Client<typeof contract.InstrumentsService>['tradingSchedules']; } export {};