Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
(defn _trades-chan
"Open the URL as a stream of trades information. Return a channel of the trades, represented as strings."
(let[session (new-session)
{:keys [url sessionid]} (:stream session)
dump-url (str url "?sessionid=" sessionid "&symbols=mu" )
lines (-> dump-url
(client/get {:as :stream})
) ]
(first (line-seq lines) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.