New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@morpheusnephew/td-ameritrade

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@morpheusnephew/td-ameritrade

A client for TD Ameritrade

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
46
increased by475%
Maintainers
1
Weekly downloads
 
Created
Source

TD Ameritrade

This project is a typescript wrapper for TD Ameritrade's API

Usage

The default class of clients is the TdAmeritradeClient. It must be initialized with your client id and each client sub-client is a property of the TdAmeritradeClient for example the accounts client.

import TdAmeritradeClient from '@morpheusnephew/td-ameritrade/clients';

(async () => {
  // Initializing TD Ameritrade client with your client id and access token
  const client = new TdAmeritradeClient({
    accessToken: 'yourAccessToken',
  });

  // Makes request to get all accounts associated with your access token
  const { data: allAccounts } = await client.accounts.getAllAccounts();
})();

Responses

As you may notice from the return signatures of client methods and in regards to the unit tests, the response data nor the status code of some of the endpoints are known just from looking at the documentation. So what you see in the unit tests specifically for CUD operations is me taking my best guess as to what the status code should be.

Keywords

FAQs

Package last updated on 23 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc