lib/ig_markets/dealing_platform/watchlist_methods.rb
# Creates and returns a new watchlist with a name and an initial set of markets.
#
# @return [Watchlist] The new watchlist.
Creates and returns a new watchlist with a name and an initial set of markets.
Creates and returns a new watchlist with a name and an initial set of markets .
def create(name, *epics)
        result = @dealing_platform.session.post 'watchlists', name: name, epics: epics.flatten
        self[result.fetch(:watchlist_id)]
      end
def create ( name , * epics ) result = @dealing_platform . session . post 'watchlists' , name : name , epics : epics . flatten self [ result . fetch ( :watchlist_id ) ] end
Creates and returns a new watchlist with a name and an initial set of markets.
Creates and returns a new watchlist with a name and an initial set of markets .
The new watchlist.
The new watchlist .
Watchlist
name
epics