Packages

A simple elixir wrapper around Yahoo-Finance for historical and real-time stock quotes & data.

Current section

Files

Jump to
Raw

lib/utils.ex

defmodule Utils do
# Custom guard clause for strings.
# String args could be given as "hello world" or 'hello world'
defmacro is_string_like(item) do
quote do
is_binary(unquote(item)) or is_list(unquote(item))
end
end
end