lib/ig_markets/dealing_platform/market_methods.rb
def hierarchy(node_id = nil)
        url = ['marketnavigation', node_id].compact.join '/'

        result = @dealing_platform.session.get url

        @dealing_platform.instantiate_models MarketHierarchyResult, result
      end
# Returns details on the market hierarchy directly under the specified node.
#
# @param [String] node_id The ID of the node to return the market hierarchy for. If `nil` then details on the root
#        node of the hierarchy will be returned.
#
# @return [MarketHierarchyResult]
Returns details on the market hierarchy directly under the specified node.
Returns details on the market hierarchy directly under the specified node .
def hierarchy(node_id = nil)
        url = ['marketnavigation', node_id].compact.join '/'
        result = @dealing_platform.session.get url
        @dealing_platform.instantiate_models MarketHierarchyResult, result
      end
def hierarchy ( node_id = nil ) url = [ 'marketnavigation' , node_id ] . compact . join '/' result = @dealing_platform . session . get url @dealing_platform . instantiate_models MarketHierarchyResult , result end
Returns details on the market hierarchy directly under the specified node.
Returns details on the market hierarchy directly under the specified node .
None
MarketHierarchyResult
node_id
node_id The ID of the node to return the market hierarchy for. If `nil` then details on the root node of the hierarchy will be returned.
node_id The ID of the node to return the market hierarchy for . If ` nil ` then details on the root node of the hierarchy will be returned .