(delete-quotes)
(delete-quotes sym)
Truncate the quote table or remove quotes by symbol
Truncate the quote table or remove quotes by symbol
(download-historical-quotes sym)
Build the url to get the quotes for 'sym' and return the results
Build the url to get the quotes for 'sym' and return the results
(insert-quote sym q)
Insert or update a quote passed in as a map
Insert or update a quote passed in as a map
(insert-quote0 sym q)
Insert or update a quote passed in as a map
Insert or update a quote passed in as a map
(insert-quote1 sym q)
Insert or update a quote passed in as a map. We can improve the readability of the code by using assoc to build a new map to mass into update-or-insert-values. Realizing that the new map will have all the same keys as our parameter sym with the addition of a new key value of :sumbol lets us use assoc to build the new map with (assoc q :symbol sym)
Insert or update a quote passed in as a map. We can improve the readability of the code by using assoc to build a new map to mass into update-or-insert-values. Realizing that the new map will have all the same keys as our parameter sym with the addition of a new key value of :sumbol lets us use assoc to build the new map with (assoc q :symbol sym)
(insert-quote2 sym
{date :date
open :open
high :high
low :low
close :close
vol :vol
adjclose :adjclose})
Insert or update a quote passed in as a map. Destructoring alls you to create variables of the map's value as we pass the map into our function. With this we create variables sym, date, open, high, low, close, vol and adjclose upon entering our function. Then when we create a map to pass to the update-or-insert-values we are creating one with values rather than pulling apart our map in multiple calls.
Insert or update a quote passed in as a map. Destructoring alls you to create variables of the map's value as we pass the map into our function. With this we create variables sym, date, open, high, low, close, vol and adjclose upon entering our function. Then when we create a map to pass to the update-or-insert-values we are creating one with values rather than pulling apart our map in multiple calls.
(list-symbols)
Return the distinct list of symbols in the quote table
Return the distinct list of symbols in the quote table
(load-symbol-file filename)
Read a file of symbols and return them in a sequence
Read a file of symbols and return them in a sequence
(select-quotes)
(select-quotes sym)
Simple select * from quote table to see the table's contents
Simple select * from quote table to see the table's contents
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close