Hello everybody, this morning I went to the flea market, and saw all types of horribly treated birds

.After a while I saw a beautiful little bird a guy was showing off, he made it step up, forcing at it's beak so it would think it would fall, thus stepping up. She was so pretty and her living conditions were so horrible, that I decided that she would be mine and wouldn't suffer more. Problem is she's scared of everything, taking her out of the cardboard shoe box that she was forced to sit in for half an hour, (I already had a cage and the guy didn't sell any) was a nightmare. She took like half an hour standing there looking at me. When she finally decided to come out she wouldn't step up, she bit me, and then scurried from one place to another, i had to actually towel her to put her in her cage, and since then I've been talking to her and giving her food through the cage bars. Plus, she won't take any seeds, ( I can't find a place were they sell pellets), and will only eat mango and plantain.
Any advice?
Also the guy was such an idiot that the only name he could give the bird was "Parrot that talks", so I'd really like to know what species she is, here are some pics.