API Usage


TDAmeritrade API Endpoints



1. Get stock details


PARAMS

  • symbol: string
`http://localhost:3000/td-stock?symbol=TSLA`;


2. Get movers


NO PARAMS


`http://localhost:3000/td-movers`;


3. Get stock price history


PARAMS

  • symbol: string
  • frequencyType: number
  • periodType: string
  • start: string
  • end: string
  • frequency: string
  • needExtendedHoursData: boolean


`http://localhost:3000/td-prices?symbol=bbig&frequencyType=minute&periodType=day&start=10/05/2021,%207:00:00%20AM&end=10/11/2021,%205:00:00%20PM&frequency=1&needExtendedHoursData=true`;


4. Get fundamentals


PARAMS

  • symbol: string


`http://localhost:3000/td-fundamentals?symbol=TSLA`;