Showing posts with label file IO. Show all posts
Showing posts with label file IO. Show all posts

Monday, February 20, 2023

./data_entry file-processing improvements

I have improved my ./data_entry-file-processor.

It now processes money-market data scraped both from geist and from benqi money-markets. #cryptocurrency 




Now, _IN THEORY_ this file-processor should also work with other money markets, like ... @GranaryFinance.

Let's try it out.

*tries it out.



IT WORKS! 😤

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.


Rust Side-Quest Pop-Quiz: parsing yields

Rust Side-quest pop-quiz!

A Rust @BenqiFinance yield file-scraper net APY computer!

You can copy the supply and borrow assets into files.

Write a Rust program that reads these files and computes net APY.