Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Moelf/TDAmeritrade.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TDAmeritrade

Build Status Docs

Quick example

julia> using TDAmeritrade

julia> TD_auth()
[ Info: REFRESH_TOKEN found, refreshing ACCESS_TOKEN
[ Info: Authentication completed.

julia> get_quotes(["AAPL", "FB"])[:AAPL][:lastPrice]
445.49

julia> using Dates

julia> price_history("GE", Minute(1), Day(1))[end]
JSON3.Object{Array{UInt8,1},SubArray{UInt64,1,Array{UInt64,1},Tuple{UnitRange{Int64}},true}} with 6 entries:
  :open     => 6.4
  :high     => 6.4
  :low      => 6.39
  :close    => 6.39
  :volume   => 2800
  :datetime => 1596844740000

TO-DOs

The files in src is ~ 1-to-1 with end points listed on TD's website, currently some of these are missing:

  • Accounts and Trading
  • Authentication
  • Instruments
  • Market Hours, cr. @Cryptum169
  • Movers
  • Option Chains
  • Price History
  • Quotes
  • Transaction History
  • User Info and Preferences probably not useful
  • Watchlist probably not useful