Module: TinkoffInvest::V1::Market::SearchByTicker

Included in:
Client
Defined in:
lib/tinkoff_invest/v1/market/search_by_ticker.rb

Instance Method Summary collapse

Instance Method Details

#search_by_ticker(ticker:) ⇒ Object



7
8
9
10
11
12
# File 'lib/tinkoff_invest/v1/market/search_by_ticker.rb', line 7

def search_by_ticker(ticker:)
  response = connection.get('market/search/by-ticker') do |request|
    request.params['ticker'] = ticker
  end
  response.body if response.success?
end