Module: TinkoffInvest::V1::Market::Orderbook

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

Instance Method Summary collapse

Instance Method Details

#orderbook(figi:, depth: 0) ⇒ Object



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

def orderbook(figi:, depth: 0)
  response = connection.get('market/orderbook') do |request|
    request.params['figi'] = figi
    request.params['depth'] = depth
  end
  response.body if response.success?
end