Giter VIP home page Giter VIP logo

node-e-trade's Introduction

tflanagan's github stats

node-e-trade's People

Contributors

aldenquimby avatar tflanagan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-e-trade's Issues

JSON URL returned from ETrade for Lots

First off, awesome library, has been immensely helpful, thank you!

To get specific lots, it looks like etrade provides them, accessible through returned URLs in the responses:

E.g.
{ lotsDetails: 'https://api.etrade.com/v1/accounts/<some id>/portfolio/<some id>.json' }

What would be the easiest way to sign this URL and execute it using this library?

And/or know of getting the lots for specific executed orders an easier way? I've been through the order, instrument and transaction details, but never found any info on lots.

Thanks!

error TS2740: ????

TSError: ⨯ Unable to compile TypeScript:
etradeApiTest.ts(152,9): error TS2740: Type 'CancelOrderResponse' is missing the following properties from type 'Account[]': length, pop, push, concat, and 28 more.

at createTSError (/usr/local/lib/node_modules/ts-node/src/index.ts:843:12)
at reportTSError (/usr/local/lib/node_modules/ts-node/src/index.ts:847:19)
at getOutput (/usr/local/lib/node_modules/ts-node/src/index.ts:1057:36)
at Object.compile (/usr/local/lib/node_modules/ts-node/src/index.ts:1411:41)
at transformSource (/usr/local/lib/node_modules/ts-node/src/esm.ts:400:37)
at /usr/local/lib/node_modules/ts-node/src/esm.ts:278:53
at async addShortCircuitFlag (/usr/local/lib/node_modules/ts-node/src/esm.ts:409:15)
at async nextLoad (node:internal/modules/esm/loader:163:22)
at async ESMLoader.load (node:internal/modules/esm/loader:602:20)
at async ESMLoader.moduleProvider (node:internal/modules/esm/loader:458:11) {

diagnosticCodes: [ 2740 ]
}

this works:

let results = await eTrade.listAccounts();
console.log(results[2]);
// console.log(results[2].accountIdKey);
const _accountIdKey = results[2].accountIdKey

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.