TDAmeritrade.jl

A pure Julia wrapper for TD Ameritrade APIs
Author Moelf
Popularity
11 Stars
Updated Last
3 Months Ago
Started In
July 2020

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

Used By Packages

No packages found.