Scraping and Querying Decentralized Finance's Information on the blockchain
- Final data is in csvData/5-minutes-mark
- 5 minutes mark data is calculated from reserveInfo/-full-info.csv
- token-full-info is calculated from token-info and tokenPriceinUSD/token-usd-price
- token-info is merged from tokenUserCount, depositer, borrower and token_TLV_USD
- WETH USD price is calculated from usd ETH price
- other tokens USD price is calculated from token price in ETH
- token_TVL_USD is calculated from token_processed_info
- token_processed_info is calculated from token_raw_info
Steps:
- Run all update Colab Notebooks: all_transactions, borrow, deposit, flash_loan, liquidation_call, redeem_underlying, repay, swap, usage_as_collateral
- Move the csv files created from step 1 into csvData/update_data
- Run csvData/getTransactionType.py
- Run csvData/filter_token_transaction.py
- Run csvData/tokenTransaction/removeDuplication.py to remove duplicated transaction hashes
- Run the hash_to_block_num.py (TrasnsactionHashToBlockNum Colab Notebook recommended)