Liking cljdoc? Tell your friends :D

quote-loader.core


-mainclj

(-main & args)
source

build-urlclj

(build-url sym)
source

clean-symbolclj

(clean-symbol sym)
source

database-dev-settingsclj

source

db-hostclj

source

db-nameclj

source

db-portclj

source

db-pwdclj

source

db-userclj

source

delete-quotesclj

(delete-quotes)
(delete-quotes sym)

Truncate the quote table or remove quotes by symbol

Truncate the quote table or remove quotes by symbol
sourceraw docstring

download-historical-quotesclj

(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
sourceraw docstring

insert-quoteclj

(insert-quote sym q)

Insert or update a quote passed in as a map

Insert or update a quote passed in as a map
sourceraw docstring

insert-quote0clj

(insert-quote0 sym q)

Insert or update a quote passed in as a map

Insert or update a quote passed in as a map
sourceraw docstring

insert-quote1clj

(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)
sourceraw docstring

insert-quote2clj

(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.
sourceraw docstring

list-symbolsclj

(list-symbols)

Return the distinct list of symbols in the quote table

Return the distinct list of symbols in the quote table
sourceraw docstring

load-historical-quotesclj

(load-historical-quotes sym)
source

load-symbol-fileclj

(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
sourceraw docstring

parse-rowclj

(parse-row row)
source

(print-usage options-summary)
source

process-symbols-parallelclj

(process-symbols-parallel lst)
source

process-symbols-sequentialclj

(process-symbols-sequential lst)
source

run-commandclj

(run-command cmd sym)
source

select-quotesclj

(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
sourceraw docstring

valid-dataclj

(valid-data str)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close