UNPKG

finra-broker-check

Version:

Programmatically run searches against FINRA's Brokercheck database for acquiring Licensed Rep and Brokerage Firm data. I didn't see any documentation for their API, so I figured I'd try my hand at making a wrapper for their search tool. Users are able to

21 lines (15 loc) 637 B
const createBranch = require('./branch.js'); createRepresentative = (data) => { const Representative = { firstName : data.bc_firstname, lastName : data.bc_lastname, middleName : data.bc_middlename, primaryEmployer : JSON.parse(data.bc_default_employment), sourceID : parseInt(data.bc_source_id), currentEmployerRegistrationDate : new Date(data.bc_industry_cal_date), hasDisclosures : data.bc_disclosure_fl === 'Y' ? true: false, currentEmployments : data.bc_current_employments.map((branch) =>{return createBranch(branch)}), } return Representative; } module.exports = createRepresentative;