NOTE - This proposal will be submitted for voting in 7 days, which is the 27th of March, 2023. Please leave your comments, suggestions and objections on the official Agora forum post before this date.
CURRENT FEATURES
– Completely original code written from scratch (not copied from another open-source project)
– Supports CEX, DEX and other swap pools for trades
– Makes 50-300 trades in a day
– Protects assets from sudden price fluctuations by monitoring currencies & selling early
– No code & No configuration required
– Configured for short term trading 24x7 without user intervention
– Does not use the native swap module (does not require access to LUNC’s swap pool)
– Supports swaps (not orders) for trades to make instantaneous trades without significant slippage
– Supports spot trading which is much safer than margin trading
– ROI (according to calculations) is 750-5,000% per year
FUTURE INTEGRATIONS
– Restore/fix LUNC swap pool and core swap module
– Configure bot to use LUNC ecosystem tokens/coins for swap only
– Support USTC as the default gas token
What is an auto spot trading bot?
Spot trading is simple trading in which orders are realized at current prices.
An auto trading bot for spot trading is a software solution to automate the process of trading, relying upon historical data which is processed and analyzed for meaningful KPIs, which help in making a financial decision on spot.
A spot trade can either be a buy or a sell. It can also be a swap between currencies.
Doesn’t Binance and Kucoin have auto spot trading bots?
Yes, but they utilize a process called Grid Trading in which the bot creates a grid of orders at the prices that the user specifies according to certain criteria.
The issue with grid trading is that if prices do not follow a regular pattern (and a smooth curve on the chart), it will not execute the lined-up orders which will remain pending. It would require advanced knowledge of trading and also user intervention to set up and use the bots. Most traders do not utilize such bots for these reasons.
The auto spot trading bot I have written only trades via swaps. It does not utilize orders which may or may not execute. We have completely removed such a scenario by utilizing swap pools, in which we can have instantaneous swaps between crypto coins and stable coins. Currently, it is using the Binance Swap Pool Trading API to get data for swap pairs and making swaps.
For example, the bot swaps USDT/BTC when the price of BTC is increasing, and then BTC/USDT when the price of BTC is decreasing. This ensures that trades are executed at exact prices, preventing loss due to sudden price fluctuations and pending orders.
Does it support Margin Trading?
Currently, it only supports Spot Trading, which is much safer than Margin Trading (which utilizes collaterals and borrowed/loaned money to trade).
Margin Trading uses the principle of Buying Long and Selling Short, which is also integrated into the auto trading bot implicitly, but it is protected from over-collateralized assets since the bot uses Spot Trading only to make trades. It will automatically stop trading if the account balance is converted to fiat or falls below the required minimum balance to make a swap trade (usually $5-10 is the lower limit for a trade).
Does it support Machine Learning and Artificial Intelligence?
No. The architecture of the bot has been designed to be instantaneous, reactive and responsive to the minute. ML & AI takes into consideration significant amounts of historical data which may prevent it from reacting to sudden price fluctuations in the market (as it is generally observed in the cryptocurrency industry). The bot works perfectly without the requirement to implement ML & AI immediately.
How is this bot relevant to Terra Luna Classic?
Currently, the bot fetches cryptocurrency data from CoinGecko (primary) and CoinMarketCap (secondary), compares it to swap pool data from Binance Swap Pool Trading APIs, and makes an instantaneous trade using the same Binance Swap Pool Trading API. This allows us access to 90+ coins to make swap trades using (200+ swap pairs).
All the bot requires, is a swap pool to make trades. So, it can connect to CEX swap pools, DEX swap pools, as well as swap pools of individual cryptocurrencies, like Terra Luna Classic.
Since Terra Luna Classic already has a swap module, the auto trading bot can utilize the swap module to get swap pool pair(s) data and make the final swap trade using the same.
The bot makes 50-300 trades in a single day. Multiple users utilizing the bot will significantly improve current volume rate(s) which will help bring back much required confidence in all the coins part of the Terra Luna Classic ecosystem, apart from making profits comparable to the best positive PNL rates in the market.
How does the bot work?
- Polls the CoinGecko/CoinMarketCap API(s) for the list of available cryptocurrencies:
- Polls the Binance Swap Pool API(s) for swap pool data like the list of coins supported for swaps:
- Polls the CoinGecko API(s) once again for the granular 5-minute block data (prices, market caps and volumes) of the supported swap coins/tokens:
- Calculates 5-minute block changes for each supported coin/token:
- Using a proprietary Prediction Model, the bot calculates a rank to risk ratio for each coin:
- Uses the Binance Swap Pool API(s) to make an instantaneous swap from any one stable coin to a non-stable coin:
- Monitors the invested coin for price changes and calculates non-viability of a coin for investment (when the price of the coin is falling). Uses the Binance Swap Pool API(s) again to make an instantaneous swap from the invested non-stable coin to a stable coin:
Calculation of Return on Investment (ROI/APR)
Average Number of Trades in 24 hours - 100
Maximum Number of Trades (Currently Supported) in 24 hours - 288
If we consider the probability of the prediction bring correct is 50%, then 50% of the trades executed will be successful. Thus,
Average Loss % from each trade ** - 0.30%
Net Loss % in 24 hours - (100/2) x 0.30% = 15%
Average Profit % from each trade ** - 0.50%
Net Profit % in 24 hours - (100/2) x 0.50% = 25%
(IF Average Number of Trades in 24 hours - 100)
Net PNL % in 24 hours - 25-15% = 10%
Average PNL % in 1 year (APR) - 10% x 365 = 3,650%
(IF Average Number of Trades in 24 hours - 288)
Net PNL % in 24 hours - 28.8%
Average PNL % in 1 year (APR) - 28.8% x 365 = 10,512%
These are estimates and actual figures may vary between 500-15,000% APR depending upon how well the market is performing and how the individual coins available in the swap pool are doing in the market.
*** Excluding Gas Fees*
Calculation of Fees
Development Fees % - 0.05% (Paid to Developer)
LUNC Burn % - 0.05% (LUNC Burnt)
Net Fees % per transaction - 0.1%
Average Number of Trades in 24 hours - 100
Average Value of each trade - $100
Net Development Fees in USD in 24 hours per user - $100 * 0.05% x 100 = $5
Net LUNC Burns in USD in 24 hours per user - $100 * 0.05% x 100 = $5
If we consider that only 1000 users are using the bot every day,
Volume of trade per day - $100 * 1000 x 100 = $10,000,000 (total for all coins, not just LUNC)
Net LUNC Burns in USD in 24 hours for 1000 users - $5 x 1000
= $5,000 or ~38,461,538 per day @ 0.00013 USD
These are estimates and actual figures may vary, though the figure above is underquoted and fairly close to expected returns/burns. The actual returns/burns may be much higher than this.
What is the current state of development and who are the developers working on it? Is the code open source?
Developers
I, Arunaday Basu, am the sole developer on this project currently, but the investment required for this project includes 1-2 developers apart from me (who will be required if this proposal is passed). I am primarily a full-stack JavaScript developer and MERN (MongoDB, Express, React, Node) is the stack that I generally work on. I have almost 13 years of development experience in various languages, stacks and CMS. I have worked for various companies including blockchain/cryptocurrency startups. I am professionally a business owner and I have a Bachelor of Engineering degree in Computer Science and Technology. I am a resident of India, and apart from coding, I am passionate about trading on the cryptocurrency market, mining, history and art. A longer description of myself is provided in the other proposal I have submitted for discussion.
Current State of Development
I have started writing code this month on the 6th. In the last few days, I have almost finished writing most of the APIs including fetching data from different trackers, saving data in a database, calculating investment viability and executing trades.
Since I do not push to Github generally for work (I do have a public profile there), I am providing screenshots below of the repo in my private BitBucket account:
This is a view of the repos I already have in that Bitbucket account. I am pushing code there for 7 years now:
The next few developments planned for the Auto Spot Trading Bot are:
-
UI using which users will be able to login and access the features
-
Live crypto prices ticker with predictions that show how the bot works
-
Improvement of the prediction model
There is, of course, a lot of code to be written including making the prediction model better and accurate to the second, but I require investment for this since I will be working full-time on it until the objectives mentioned above are achieved, including the mentioned future plans.
Proprietary Code
It is not only difficult to maintain this project as an open-source project, it is equally difficult to provide information on it transparently after what has happened with the casino and how the code was probably copied by another entity to create a completely different project.
If that happens with this project, not only is that a danger to the security and safety of the automation system and its users, I will not have a representative, company or even individual to pursue for legal and financial damages.
I will not be able to publish this project as an open-source project and the code will completely be owned by me, Arunaday Basu. I will, however, sign a 5 years maintenance contract with the community, during which time all development including looking after bugs and fixes are my responsibility. I will sign and send this contract to the Terra Grants Foundation physically if this proposal is passed.
Within 5 years, I plan to get investment to maintain the dApp further. If that isn’t possible for any unavoidable circumstance, I will duly transfer the code to another competent authority representing the Terra Luna Classic community (upon passing a proposal appointing the competent authority as a representative of the community).
What is the investment/funding required for the project (from the Terra Luna Classic Community Pool)?
Total Investment Required for Development & 5 years Maintenance - $100,000 USD in LUNC
(Which is approximately ~769,230,769 LUNC @ 0.00013 USD/LUNC)
Total Time Required for Development - 2-3 months for Beta, and 1-2 months more to go Live
(4-5 months in total)
The investment required is high, even compared to my other proposal. This is because I need to devote full-time into work that will require me relinquishing my current responsibilities completely. I will probably need to hire and manage a couple of developers along with myself working full-time on coding. So, this is not work that can be done part-time.
The investment required will be used for the following:
-
Cloud server on AWS or GCP for 5 years
-
Paid API plans because the free plans do not support too many transactions
-
Remuneration for developers including ML & AI developers
-
My remuneration for 4-5 months
-
Marketing, funding, and other activities
Declaration: I hereby declare that the details furnished above are true and correct to the best of my knowledge and belief and I undertake to inform the community of any changes therein, immediately. In case any of the above information is found to be false or untrue or misleading or misrepresenting, I am aware that I may be held liable for it.
A PDF version of this proposal is attached for users who wish to read it offline