Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tinkoff_invest_client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinkoff_invest_client

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

tinkoff_invest_client

TinkoffInvestClient - the Ruby gem for the OpenAPI

tinkoff.ru/invest OpenAPI.

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build tinkoff_invest_client.gemspec

Then either install the gem locally:

gem install ./tinkoff_invest_client-1.0.0.gem

(for development, run gem install --dev ./tinkoff_invest_client-1.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'tinkoff_invest_client', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/ThinkAndRun/tinkoff_invest_client, then add the following in the Gemfile:

gem 'tinkoff_invest_client', :git => 'https://github.com/ThinkAndRun/tinkoff_invest_client.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'tinkoff_invest_client'

# Setup authorization
TinkoffInvestClient.configure do |config|
  # Configure Bearer authorization: sso_auth
  config.access_token = 'YOUR_BEARER_TOKEN'
end

api_instance = TinkoffInvestClient::MarketApi.new

begin
  #Получение списка облигаций
  result = api_instance.market_bonds_get
  p result
rescue TinkoffInvestClient::ApiError => e
  puts "Exception when calling MarketApi->market_bonds_get: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api-invest.tinkoff.ru/openapi

ClassMethodHTTP requestDescription
TinkoffInvestClient::MarketApimarket_bonds_getGET /market/bondsПолучение списка облигаций
TinkoffInvestClient::MarketApimarket_candles_getGET /market/candlesПолучение исторических свечей по FIGI
TinkoffInvestClient::MarketApimarket_currencies_getGET /market/currenciesПолучение списка валютных пар
TinkoffInvestClient::MarketApimarket_etfs_getGET /market/etfsПолучение списка ETF
TinkoffInvestClient::MarketApimarket_orderbook_getGET /market/orderbookПолучение стакана по FIGI
TinkoffInvestClient::MarketApimarket_search_by_figi_getGET /market/search/by-figiПолучение инструмента по FIGI
TinkoffInvestClient::MarketApimarket_search_by_ticker_getGET /market/search/by-tickerПолучение инструмента по тикеру
TinkoffInvestClient::MarketApimarket_stocks_getGET /market/stocksПолучение списка акций
TinkoffInvestClient::OperationsApioperations_getGET /operationsПолучение списка операций
TinkoffInvestClient::OrdersApiorders_cancel_postPOST /orders/cancelОтмена заявки
TinkoffInvestClient::OrdersApiorders_getGET /ordersПолучение списка активных заявок
TinkoffInvestClient::OrdersApiorders_limit_order_postPOST /orders/limit-orderСоздание лимитной заявки
TinkoffInvestClient::OrdersApiorders_market_order_postPOST /orders/market-orderСоздание рыночной заявки
TinkoffInvestClient::PortfolioApiportfolio_currencies_getGET /portfolio/currenciesПолучение валютных активов клиента
TinkoffInvestClient::PortfolioApiportfolio_getGET /portfolioПолучение портфеля клиента
TinkoffInvestClient::SandboxApisandbox_clear_postPOST /sandbox/clearУдаление всех позиций
TinkoffInvestClient::SandboxApisandbox_currencies_balance_postPOST /sandbox/currencies/balanceВыставление баланса по валютным позициям
TinkoffInvestClient::SandboxApisandbox_positions_balance_postPOST /sandbox/positions/balanceВыставление баланса по инструментным позициям
TinkoffInvestClient::SandboxApisandbox_register_postPOST /sandbox/registerРегистрация клиента в sandbox
TinkoffInvestClient::SandboxApisandbox_remove_postPOST /sandbox/removeУдаление счета
TinkoffInvestClient::UserApiuser_accounts_getGET /user/accountsПолучение брокерских счетов клиента

Documentation for Models

Documentation for Authorization

sso_auth

  • Type: Bearer authentication

FAQs

Package last updated on 16 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc