English
Hi there Hivers. A big hug for my new friend @ecoinstats because he is helping me to get the most out of this experience and also, pushing me for more.
Ok, what is going on? Well I am trying to communicate myself in english here. I know my english is not "very good looking" but I will try my best. Dunno if you guys know me but I have been working as a #HIVE developer since 2020, and before that I was known as the first Venezuelan Guy who made a big noise in Social Web3, a.k.a: steemit.
Anyway I did some of the following so you can get to know me a bit more:
- I coded a fullstack platform called Jobaboard. This was a project @aggroed and I came up with. I will always appreciate his help because I was a total beginner about coding.
- I worked with @keychain for more than 2 years in a row and I helped to create some of the many features you use in the keychain wallet ext + mobile.
Now As I plan to keep working with HIVE and in the near future ask DHF to fund one of my projects, I was thinking about making a
What is that? Hive Pool Simulator?
Yes my main idea, before getting into a large projects as the ones I have proposed in previous posts was making a liquidity pool simulator to "simulate positions" and attract more HIVERS to put coins into those pools.
HIVE Developer Issue Program
I would like to quote this question because I have been there many times:
Ok I want to create this...but how do I get that data? what do I do? Where do I ask about this? Are there more developers available to help? Is just documentation enough?
The answer is not a linear one.
- Most Hive developers are very busy
- Some of them know so much that they only write documentation and that's it
- IMPORTANT: SOME ANSWERS MUST BE CREATED as this is a new concept WEB3 is something we all are doing!
Can you elaborate a bit about where can we find answers?
We all are welcome in the discord channels:
Using those 2 channels, getting into developers channels, you can ask whatever you need about coding. Many good users there, even when they are busy they can help. Some of them even will send you code that you can use.
Never Stop Asking, Never Give up!
It is been something I am starting to learn here:
Web3 & HIVE is being created as we speak so we must ask, read documentation, practice, try code and repeat over and over
Back to my initial idea LP Simulator and first Issue
So I was starting my project about making a LP simulator and then I realized than there is no actual way to get the trading activity for a liquidity pool day after day. I mean we can get the real time data going on but an index of persistent data about trading volumes of LP, nope.
Right now tribaldex.com is the one and I think the only one doing that, those people is too busy and last time I asked "read the docs".
But let me explain:
Hive have layers of data / activity
L1: The one having data about posting, the blockchain when we transfer coins, etc
L2: The layer of deeper data which includes Engine Operations, Tokens, Liquidity Pools and so on
I know this is a bit hard to chew when you are not a developer. Anyway, I needed to get the volumen data of a token pair, in order to calculate what are the fees.
By having the trading volumes in a 24h range of a pair of tokens(Liquidity Pool)
At least of 2 days. I could calculate the fees(0.2%) of that amounts and later on, I could calculate, based on a user's shares on that pools, how much coins he gets as fees
Issue: No Data Index right now for Liquidity Pools
So as there is no place to each 24h store the Liquidity pool data, which is:
{
"_id": 112,
"tokenPair": "AFIT:AFITX",
"baseQuantity": "2640357.59843536",
"baseVolume": "41742999.59466189",
"basePrice": "0.00050848",
"quoteQuantity": "1342.58242031",
"quoteVolume": "11664.08687893",
"quotePrice": "1966.62607709",
"totalShares": "58727.31265509210142249948",
"precision": 8,
"creator": "actifit"
}
I came up with a solution and thanks God @ecoinstats is pushing me to see the issue as "AN OPPORTUNITY TO CREATE A SOLUTION AND, IN THE PROCESS, HELP OTHERS FOR THE FUTURE OF HIVE". By doing so right now I came up with a backend solution right here:
https://github.com/theghost1980/hive-liquidity-pools-data-index
What is this Backend app you are testing? What is this Hive LP Data Index for?
- It is running a cron-job each 24h to store all the available LP volume data in a json file.
- This place which you can see running here: https://hive-liquidity-pools-data-index.onrender.com/data/ will have a data index, usable and downloadable for each dev to use.
The idea of having this, is to help when gathering useful data about LP and more specifically Layer 2 related content of HIVE blockchain.
So what are your plan?
Keep working on this Data Index, improve it, make some endpoints that may be useful as:
- get specific data from a pool
- make some queries about earning fees of a pool, account, position
- and many more to come
Is it worth to work for free for HIVE?
At the beginning YES! So I can gain track and trust that I really want to help coding the Hive Web 3. I am not here only for the money I have been getting much more benefits than just coins from HIVE and I want to keep working so I can be able to make a big project and help a lot of people in the process!!
So any suggestions, ideas about this HIVE Liquidity Pool Data Index, are most welcome. I am open to keep working for HIVE, even when I live in Venezuela and I may not have the best conditions, there are no excuses when you really want something in life!
Español
Hola Hivers. Un gran abrazo para mi nuevo amigo @ecoinstats porque me está ayudando a sacar el máximo provecho de esta experiencia y también, empujándome para más.
Ok, ¿qué está pasando? Bueno, estoy tratando de comunicarme en Inglés aquí. Sé que mi inglés no es «muy bonito» pero intentaré hacerlo lo mejor posible. No se si ustedes me conocen, pero he estado trabajando como desarrollador #HIVE desde 2020, y antes de eso yo era conocido como el primer chico venezolano que hizo un gran ruido en Social Web3, a.k.a: steemit.
En fin hice algo de lo siguiente para que me conozcan un poco más:
- Codifiqué una plataforma fullstack llamada Jobaboard. Este fue un proyecto que ideamos @aggroed y yo. Siempre apreciaré su ayuda porque yo era un principiante total sobre codificación.
- Trabajé con @keychain durante más de 2 años seguidos y ayudé a crear algunas de las muchas características que se utilizan en la cartera keychain ext + móvil.
Ahora Como tengo la intención de seguir trabajando con HIVE y en un futuro próximo pedir DHF para financiar uno de mis proyectos, yo estaba pensando en hacer un
¿Qué es eso? ¿Simulador de Hive Pool?
Sí mi idea principal, antes de meterme en un proyecto grande como los que he propuesto en posts anteriores era hacer un simulador de pool de liquidez para «simular posiciones» y atraer a más HIVERS a meter monedas en esos pools.
Programa de problemitas para desarrolladores de HIVE
Me gustaría citar esta pregunta porque me ha pasado muchas veces:
Vale quiero crear esto... pero ¿cómo consigo esos datos? ¿qué hago? ¿Dónde pregunto sobre esto? ¿Hay más desarrolladores disponibles para ayudar? ¿Es suficiente con la documentación?
La respuesta no es lineal.
- La mayoría de los desarrolladores de Hive están muy ocupados
- Algunos saben tanto que sólo escriben documentación y ya está
- IMPORTANTE: HAY QUE CREAR ALGUNAS RESPUESTAS ya que se trata de un concepto nuevo WEB3 ¡es algo que todos estamos haciendo!
¿Puedes explicarnos un poco donde podemos encontrar respuestas?
Todos somos bienvenidos en los canales de discord:
Usando esos 2 canales, entrando en los canales de desarrolladores, puedes preguntar lo que necesites sobre codificación. Muchos buenos usuarios allí, incluso cuando están ocupados pueden ayudar. Algunos de ellos incluso les enviará código que se puede utilizar
¡Nunca dejes de preguntar, nunca te rindas!
Es algo que estoy empezando a aprender aquí:
Web3 y HIVE están siendo creados mientras hablamos así que debemos preguntar, leer documentación, practicar, probar código y repetir una y otra vez
Volviendo a mi idea inicial Simulador de LP y primer problema
Así que estaba empezando mi proyecto sobre hacer un simulador de LP y entonces me di cuenta de que no hay manera real de obtener la actividad comercial de un fondo de liquidez día tras día. Quiero decir que podemos obtener los datos en tiempo real, pero un índice de datos persistentes sobre los volúmenes de negociación de LP, no.
En este momento tribaldex.com es el único y creo que el único que hace eso, esa gente está demasiado ocupada y la última vez que le pregunté «lea los documentos» fue la respuesta que tuve.
Pero permítanme explicar:
Hive tiene capas de datos / actividad
L1: La que tiene datos sobre la contabilización, el blockchain cuando transferimos monedas, etc
L2: La capa de datos más profundos que incluye Operaciones del Motor, Tokens, Liquidity Pools y así sucesivamente
Sé que esto es un poco difícil de masticar cuando no eres un desarrollador. De todos modos, necesitaba obtener los datos de volumen de un par de tokens, con el fin de calcular cuáles son las tasas.
Teniendo los volúmenes de negociación en un rango de 24h de un par de tokens(Liquidity Pool)
Al menos de 2 días. Podría calcular las comisiones(0.2%) de esas cantidades y posteriormente, podría calcular, en base a las participaciones de un usuario en ese pools, cuantas monedas recibe como comisiones
Problema: No hay índice de datos en este momento para Liquidity Pools
Así que como no hay lugar para cada 24h almacenar los datos de Liquidity pool, que es:
{
"_id": 112,
"tokenPair": "AFIT:AFITX",
"baseQuantity": "2640357.59843536",
"baseVolume": "41742999.59466189",
"basePrice": "0.00050848",
"quoteQuantity": "1342.58242031",
"quoteVolume": "11664.08687893",
"quotePrice": "1966.62607709",
"totalShares": "58727.31265509210142249948",
"precision": 8,
"creator": "actifit"
}
Se me ocurrió una solución y gracias a Dios @ecoinstats me está empujando a ver el asunto como "UNA OPORTUNIDAD DE CREAR UNA SOLUCIÓN Y, EN EL PROCESO, AYUDAR A OTROS PARA EL FUTURO DE HIVE". Al hacerlo ahora mismo se me ocurrió una solución backend aquí mismo:
https://github.com/theghost1980/hive-liquidity-pools-data-index
¿Qué es esta aplicación Backend que está probando? ¿Para qué sirve este índice de datos Hive LP?
- Está ejecutando un cron-job cada 24h para almacenar todos los datos de volumen LP disponibles en un archivo json.
- Este lugar que puedes ver corriendo aquí: https://hive-liquidity-pools-data-index.onrender.com/data/ tendrá un índice de datos, utilizable y descargable para que cada dev lo use.
La idea de tener esto, es ayudar a la hora de recopilar datos útiles sobre LP y más específicamente el contenido relacionado con la Capa 2 de HIVE blockchain.
¿Cuáles son tus planes?
Seguir trabajando en este Índice de Datos, mejorarlo, hacer algunos endpoints que puedan ser útiles como:
- obtener datos específicos de un pool
- hacer algunas consultas sobre las comisiones devengadas de un pool, cuenta, posición
- y muchas más por venir
¿Vale la pena trabajar gratis para HIVE?
Al principio ¡SÍ! ¡¡¡Así que puedo ganar terreno y la confianza de que realmente quiero ayudar a codificar el Hive Web3. No estoy aquí sólo por el dinero que he estado recibiendo mucho más beneficios que sólo monedas de HIVE y quiero seguir trabajando para que pueda ser capaz de hacer un gran proyecto y ayudar a mucha gente en el proceso!!!
Y en un futuro espero contar con fondos del DHF para un macro proyecto creado solo por empleados Hivers Latinos!!!
Así que cualquier sugerencia, idea sobre este HIVE Liquidity Pool Data Index, es bienvenida. Estoy abierto a seguir trabajando para HIVE, incluso cuando vivo en Venezuela y puede que no tenga las mejores condiciones, ¡no hay excusas cuando realmente quieres algo en la vida!
Esto es muy útil. Tenía mi sitio web conectado a Steem (durante dos meses) antes de la bifurcación, pero no lo he hecho con Hive y ya no quiero iniciar sesión en la antigua red insegura. ¡Mucha suerte y gracias por tu esfuerzo!
Good to know. The idea is being useful while getting more tools for devs in the HIVE ecosystem. I will keep working to update the features on this backend as I keep testing it! I will be posting about new updates in my blog so keep an eye anytime!
Amazing! You are such a good tech writer! Suddenly I feel like we will fix a lot of things together!!!
Keep going and I will get you a BEE DAO grant
Gracias amigo. Estoy seguro que juntos podremos hacer muchas cosas por la comunidad de HIVE!
Congratulations @theghost1980!
You raised your level and are now a Minnow!
Check out our last posts:
Great article! Hive has opened so many new worlds for me - I can write py js and now learning go because of Hive :) Unrelated questions: Where did you get the cool thumbnail? I am hosting an event and would like to have the original file to print it on a poster.
Hi there @tibfox thank you for leaving a comment. In deed web3 & HIVE have been amazing in terms of knowledge and professional experience. Even as a life experience. This is why I fell in love with crypto :D
About the first photo, it was generated using freepik.com
Here you have the one, use it as you like. As far as I know there is no need to mention freepik but just in case, make some research if you need to.