Skip to content

Instantly share code, notes, and snippets.

Created September 9, 2011 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1206924 to your computer and use it in GitHub Desktop.
Save anonymous/1206924 to your computer and use it in GitHub Desktop.
(defn get-hist-data
"gets historical data for stocks"
[conn contr edt durs bs wts rth fd]
(do
(print "get-hist-data" contr edt durs bs wts rth fd)
(.reqHistoricalData (:client conn) (swap! tickerid inc) contr edt durs bs wts rth fd)
(lazy-channel-seq (:output conn))
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment