Friday, September 2, 2022

Rust Side-quest pop-quiz, part DEUX: parsing price quotes

Rust Side-quest pop-quiz, part DEUX!

A follow-up to the first Rust side-quest pop-quiz.

You can also copy-scrape and paste the price-quotes of @BenqiFinance assets, getting prices of assets (although prices ... 'MAY'(?) be derived from asset total value ($) / asset amount above).


I've done so here.

Write a Rust program that reads in the above file and parsed each asset and its price. There are, as you see, LOTS of other data. Ignore data you don't need.

Scan assets and prices into a map, and print the results as a CSV ('comma separated value') output.


No comments:

Post a Comment