@i077/tda-api-nodejs-unofficial
Version:
TD Ameritrade API node.js wrapper for front-end integration
17 lines (12 loc) • 416 B
JavaScript
import getAccounts from './getAccounts';
import getById from './getById.js';
export default ({ authentication }) => {
const { getAccessToken } = authentication;
const get = async (params) => {
return await getById({ ...params, getAccessToken });
};
const gets = async (params) => {
return await getAccounts({ ...params, getAccessToken });
};
return { getAccounts: gets, getAccount: get };
};