Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new banks from Banco de México's list of institutions #42

Open
dpilafian opened this issue Jun 9, 2023 · 1 comment
Open

Add new banks from Banco de México's list of institutions #42

dpilafian opened this issue Jun 9, 2023 · 1 comment
Labels

Comments

@dpilafian
Copy link
Member

Listado de instituciones:
https://www.banxico.org.mx/cep-scl/listaInstituciones.do

Consider adding the following two missing bank codes:

Clave de la institución code Nombre de la institución
90688 688 CREDICLUB
90703 703 TESORED

List copied from Banco de México website:

const banxicoList = [
   ['40138', 'ABC CAPITAL'],
   ['40133', 'ACTINVER'],
   ['40062', 'AFIRME'],
   ['90661', 'ALTERNATIVOS'],
   ['90706', 'ARCUS'],
   ['90659', 'ASP INTEGRA OPC'],
   ['40128', 'AUTOFIN'],
   ['40127', 'AZTECA'],
   ['37166', 'BaBien'],
   ['40030', 'BAJIO'],
   ['40002', 'BANAMEX'],
   ['40154', 'BANCO COVALTO'],
   ['37006', 'BANCOMEXT'],
   ['40137', 'BANCOPPEL'],
   ['40160', 'BANCO S3'],
   ['40152', 'BANCREA'],
   ['37019', 'BANJERCITO'],
   ['40147', 'BANKAOOL'],
   ['40106', 'BANK OF AMERICA'],
   ['40159', 'BANK OF CHINA'],
   ['37009', 'BANOBRAS'],
   ['40072', 'BANORTE'],
   ['40058', 'BANREGIO'],
   ['40060', 'BANSI'],
   ['02001', 'BANXICO'],
   ['40129', 'BARCLAYS'],
   ['40145', 'BBASE'],
   ['40012', 'BBVA MEXICO'],
   ['40112', 'BMONEX'],
   ['90677', 'CAJA POP MEXICA'],
   ['90683', 'CAJA TELEFONIST'],
   ['90630', 'CB INTERCAM'],
   ['40143', 'CIBANCO'],
   ['90631', 'CI BOLSA'],
   ['90901', 'CLS'],
   ['90903', 'CoDi Valida'],
   ['40130', 'COMPARTAMOS'],
   ['40140', 'CONSUBANCO'],
   ['90652', 'CREDICAPITAL'],
   ['90688', 'CREDICLUB'],
   ['90680', 'CRISTOBAL COLON'],
   ['40151', 'DONDE'],
   ['90616', 'FINAMEX'],
   ['90634', 'FINCOMUN'],
   ['90689', 'FOMPED'],
   ['90685', 'FONDO (FIRA)'],
   ['90601', 'GBM'],
   ['37168', 'HIPOTECARIA FED'],
   ['40021', 'HSBC'],
   ['40155', 'ICBC'],
   ['40036', 'INBURSA'],
   ['90902', 'INDEVAL'],
   ['40150', 'INMOBILIARIO'],
   ['40136', 'INTERCAM BANCO'],
   ['90686', 'INVERCAP'],
   ['40059', 'INVEX'],
   ['40110', 'JP MORGAN'],
   ['90653', 'KUSPIT'],
   ['90670', 'LIBERTAD'],
   ['90602', 'MASARI'],
   ['40042', 'MIFEL'],
   ['40158', 'MIZUHO BANK'],
   ['90600', 'MONEXCB'],
   ['40108', 'MUFG'],
   ['40132', 'MULTIVA BANCO'],
   ['90613', 'MULTIVA CBOLSA'],
   ['37135', 'NAFIN'],
   ['90638', 'NU MEXICO'],
   ['90710', 'NVIO'],
   ['90684', 'OPM'],
   ['40148', 'PAGATODO'],
   ['90620', 'PROFUTURO'],
   ['40156', 'SABADELL'],
   ['40014', 'SANTANDER'],
   ['40044', 'SCOTIABANK'],
   ['40157', 'SHINHAN'],
   ['90646', 'STP'],
   ['90648', 'TACTIV CB'],
   ['90703', 'TESORED'],
   ['90656', 'UNAGRA'],
   ['90617', 'VALMEX'],
   ['90605', 'VALUE'],
   ['90608', 'VECTOR'],
   ['40113', 'VE POR MAS'],
   ['40141', 'VOLKSWAGEN'],
   ];
@dpilafian dpilafian added the bug label Jun 9, 2023
@dpilafian
Copy link
Member Author

Quick hack to reveal mismatching bank names:

banxicoList.map(pair => [pair[0], Number(pair[0]) % 1000, pair[1]])
   .map(tri => ({ banxico: tri, tag: banksMap[tri[1]]?.tag ?? '*** no entry ***' }))
   .filter(info => info.banxico[2] !== info.tag)
   .sort((a, b) => a.tag.localeCompare(b.tag));

Output:

[
  { banxico: [ '90688', 688, 'CREDICLUB' ], tag: '*** no entry ***' },
  { banxico: [ '90703', 703, 'TESORED' ], tag: '*** no entry ***' },
  { banxico: [ '90638', 638, 'NU MEXICO' ], tag: 'AKALA' },
  { banxico: [ '40106', 106, 'BANK OF AMERICA' ], tag: 'BAMSA' },
  { banxico: [ '40154', 154, 'BANCO COVALTO' ], tag: 'BANCO FINTERRA' },
  { banxico: [ '37166', 166, 'BaBien' ], tag: 'BANSEFI' },
  { banxico: [ '40012', 12, 'BBVA MEXICO' ], tag: 'BBVA BANCOMER' },
  { banxico: [ '40132', 132, 'MULTIVA BANCO' ], tag: 'BMULTIVA' },
  { banxico: [ '90903', 903, 'CoDi Valida' ], tag: 'CODI VALIDA' },
  { banxico: [ '90648', 648, 'TACTIV CB' ], tag: 'EVERCORE' },
  { banxico: [ '40136', 136, 'INTERCAM BANCO' ], tag: 'INTERBANCO' },
  { banxico: [ '90613', 613, 'MULTIVA CBOLSA' ], tag: 'MULTIVA' },
  { banxico: [ '40108', 108, 'MUFG' ], tag: 'TOKYO' },
  { banxico: [ '90684', 684, 'OPM' ], tag: 'TRANSFER' }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
@dpilafian and others