DEV Community

crypt0grapher
crypt0grapher

Posted on

Terra bLuna/Luna price monitoring tool

Overview of My Submission

Hey! I'm happy to share a simple but scalable tool for crypto assets monitoring that utilizes MongoDB Time Series functionality.

Submission Category:

Prime Time

Link to Code

GitHub logo crypt0grapher / terra-luna-prices

Terra Luna bLuna Price Feeder with MongoDB Time Series

Problem

Terra Luna is an actively emerging blockchain focused on decentralized finance around stablecoins Terra's ecosystem is built around its native token, Luna Bonded Luna or bLuna is another core coin in Terra Luna ecosystem being provided by Anchor Protocol and it trades (very)approximately 1:1 to Luna. Currently, there are three main decentralizes exchanges providing bLuna-Luna swap service Considering the difference in price and emerging exchanges, this gives arbitrage opportunities for traders. There is no monitoring tool that allows to compare bLuna price on these exchanges in realtime.

Solution

This simple single-page app shows bLuna price in Luna for all three exchanges as a price line as well as a 60s candle stick bar chart. The solution is deployed and available at http://46.148.238.135:3000/

Approach

The app utilizes MongoDB 5 Time Series processing, including monngo aggregation functions to select data and build candle stick chart On top of that the app…

Check it out live at http://46.148.238.135:3000/

Additional Resources / Info

The bundle is build on top the following wonderful open-source projects: Nest.js, NextJS, Material UI, and TradingView Lightweight Library.

Enjoy bLuna prices across all the available exchanges on a single screen

Image description

Top comments (0)