updated code to match new data format and new BNIA API endpoint