Acquiring market data programmatically would be extremely difficult. It is only sent to the client when specifically requested, which only happens when you expand an item in the market UI. Because of that, the only opportunities I know of to collect this data is 1) on the wire, via a network sniffer trace, or 2) by directly accessing the executable's memory. Even if you were able to do one of these things, though, you'd only get the data associated with one item. To get an accurate representation of the market, you'd have to expand all of the items to collect all of the histories.
I propose that it might be much easier to send a PM to Avatea and ask if she can get you into contact with someone who can provide that data to you directly from NCsoft. For educational purposes, they may be willing to, though they might have you sign some kind of NDA to get it. Of course, they may just say, "No, sorry" also, but it would probably be a lot easier to get it that way if they're willing than to get it by scraping the client.