Liking cljdoc? Tell your friends :D

clj-tda.token-manager


access-tokenclj

(access-token)

Returns the current access token being managed by the token manager. Note that initialize must have been called and returned successfully before this function is called.

Returns the current access token being managed by the token
manager. Note that `initialize` must have been called and returned
successfully before this function is called.
sourceraw docstring

initializeclj

(initialize token-map)

Initializes the token manager. The token-map must be an initial map that contains three keys: :api-key (TDA API key), :redirect-uri (the redirect URI provided in your TDA application console corresponding with the API key), and :driver-factory (a no-argument function that returns an Etaoin driver; see https://github.com/clj-commons/etaoin). This function calls clj-tda.auth/login which typically will create a web browser so the user can provide login credentials to the user's TDA account.

Initializes the token manager. The `token-map` must be an initial map
that contains three keys: `:api-key` (TDA API key),
`:redirect-uri` (the redirect URI provided in your TDA application
console corresponding with the API key), and `:driver-factory` (a
no-argument function that returns an Etaoin driver; see
https://github.com/clj-commons/etaoin). This function calls
clj-tda.auth/login which typically will create a web browser so the
user can provide login credentials to the user's TDA account.
sourceraw docstring

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

× close