[ENG/ITA] What Am I Working On Right Now?

(edited)


La versione italiana si trova sotto quella inglese

The italian version is under the english one


What Am I Working On Right Now?

Since I decided to learn a bit of Python — at least at an amateur level — rarely does a month go by without me diving into a new project.

Creating scripts is actually fun, because it often allows me to do things I couldn’t do before, like quickly and accurately gathering information that was once practically inaccessible. It’s also a great way to keep learning: practice and experience are among the best teachers, and for me, nothing is more motivating than seeing the fruits of my labor produce tangible results.

Over the past year, I’ve tried to build several things — some successfully, and others not so much.

Failures, however, are just as useful as successes, even if definitely less satisfying: from my failures, I understand what’s still out of reach and which aspects I need to focus on to improve.

Sometimes, a project that turns out to be too complex, or less motivating than expected, can even spark the inspiration to create something entirely different, which slowly evolves into an idea even better than the original!

That’s exactly the case with one of the three scripts I’m currently working on and would like to briefly talk to you about today!


From a rental bot… to a ROI calculator!?

I already talked about it in this post, but I’ve made more progress and wanted to share an update.

I initially set out to build a script that could identify the best rental price for a card on Splinterlands and then automatically list it on the market at that price — essentially aiming to fully automate the rental process, just like the Rental Golem from Splex.gg used to do.

But I soon realized two things:

  • the level of difficulty for something like that was a bit too high, for me
  • seasonal rentals made it kind of pointless to spend dozens of hours on something I could manually do in 1 minute every 15 days

So I pivoted the project midway, dropping the original idea and focusing instead on creating a script that could display the rental ROI of every Splinterlands card, allowing me to buy the most profitable cards and enjoy a nice passive income.

Now, I might not be cashing in on some huge returns, but the script is ready — thanks especially to the help of AI (Grok and ChatGPT), which I “delegated” the frontend, i.e. the graphical part of the site, to.



Yes, because the script is already accessible and usable through a website:

Feel free to test it and let me know how it works, if you find any bugs, or if there’s anything that should be improved!

So far, I’m really happy with the result, but I know there’s plenty of room to make it even better and more interesting :)


Bridges: yeah, I’m kind of obsessed lately!

There’s also a second project I’ve been working on, and which should actually be finished now — assuming the testing phase ends without any issues — which would be pretty nice hahaha

It’s a script that rebalances some of the bridges connecting Hive and Hive-Engine, taking advantage of the positive fees you can earn on some of them when you provide liquidity to the side that needs it most.

Building this script was quite challenging because it required me to do things I had never done before — like creating and broadcasting blockchain transactions — and also to find a way for the script to run continuously, as if hosted on a server.

To accomplish the latter, I used GitHub Actions, which allows a script to be triggered periodically and automatically without the user having to do anything.



Sure, the actual interval isn’t exactly 10 minutes, and it’s not super precise either, but a couple of triggers per hour are still more than enough. That way, my script constantly monitors the bridges I care about and, when it detects an opportunity, it automatically executes the necessary transactions.

For now, I’ve only entrusted a small amount to this script, but if everything keeps running smoothly over the next few days, I’ll transfer all my liquid HIVE to @liquid.wolf.


And that’s not all!

Yeah, because as soon as I finish one project, a new idea already pops into my head!

I’d actually like to figure out exactly how much I’ve earned playing Golem Overlord, since at some point I lost track of my profits...

It should be fairly easy to calculate, but who knows — maybe that idea will turn into something even more interesting :)


cover made with Bing AI and edited with GIMP

to support the #OliodiBalena community, @balaenoptera is 3% beneficiary of this post


If you've read this far, thank you! If you want to leave an upvote, a reblog, a follow, a comment... well, any sign of life is really much appreciated!


Versione italiana

Italian version


A Cosa Sto Lavorando in Questo Momento?

Da quando ho deciso di imparare, almeno ad un livello amatoriale, un po' di Python, difficilmente passa più di un mese senza che mi metta a lavorare ad un qualche nuovo progetto.

Creare script è infatti divertente, perchè spesso mi consente di fare cose che prima non ero in grado di fare, come raccogliere velocemente e con precisione informazioni un tempo praticamente inaccessibili, ma anche un ottimo metodo per continuare ad imparare: l'esercizio e l'esperienza sono infatti tra i migliori insegnanti e, almeno per me, non c'è niente di più motivante di vedere i frutti del mio lavoro produrre risultati concreti.

Nel corso dell'ultimo anno ho provato a realizzare diverse cose, alcune che mi sono riuscite, e altre no.

I risultati negativi, però, sono utili come quelli positivi, anche se sicuramente meno soddisfacenti: dai miei insuccessi capisco però cosa ancora è fuori dalla mia portata e su quali aspetti devo concentrarmi per cercare di migliorare.

Alle volte, inoltre, da un progetto che si rivela troppo complicato, o meno motivante di quanto mi aspettassi, può nascere anche l'illuminazione per creare qualcosa di diverso che poi, piano piano, si trasforma in un'idea anche migliore dell'originale!

E' il caso di uno dei tre script a cui sto lavorando ultimamente e di cui oggi vorrei brevemente parlarvi!


Da un rental bot... ad un calcolatore di ROI!?

Ne avevo già parlato in questo post ma ho fatto ulteriori progressi, per cui vorrei parlarne nuovamente.

Ero partito dall'idea di creare uno script capace di identificare il miglior prezzo di noleggio di una carta su Splinterlands e di metterla poi automaticamente a noleggio sul mercato a quel prezzo: in pratica l'obiettivo era automatizzare completamente l'attività di noleggio della propria collezione, come un tempo faceva il Rental Golem di Splex.gg.

Dopo poco però ho realizzato due cose:

  • la difficoltà per realizzare un qualcosa del genere era un po' troppo elevata, per me
  • i noleggi stagionali rendevano un po' inutile lavorare decine e decine di ore per fare una cosa che, manualmente, potevo fare in 1 minuto ogni 15 giorni

Ecco che così ho deciso di cambiare in corso d'opera il progetto, abbandonando l'idea iniziale e puntando invece a creare uno script che mi consentisse di visualizzare il ROI di ogni carta presente su Splinterlands in caso di noleggio, così da poter acquistare le carte più redditizie e godermi una bella rendita passiva.

Ora, magari non riuscirò a godermi chissà quale rendita, però lo script è pronto, soprattutto grazie all'aiuto dell'IA (Grok e ChatGPT) a cui ho "delegato" la realizzazione della parte grafica del sito.



Sì, perchè lo script è già accessibile ed utilizzabile tramite un comodo sito:

Se volete potete provarlo e dirmi come funziona e se riscontrate bug o se ci sono cose che andrebbero sistemate!

Per ora sono molto soddisfatto del risultato, ma so che c'è molto margine per renderlo ancora migliore e più interessante :)


Bridges: sì, ultimamente ne sono ossessionato!

C'è anche un secondo progetto a cui sto lavorando e che, in realtà, dovrebbe ormai essere terminato, se la fase di testing si concluderà senza intoppi - cosa che sarebbe davvero bella ahahah

Si tratta di uno script che ribilancia alcuni dei ponti che collegano Hive ed Hive-Engine, sfruttando le commissioni positive che è possibile ottenere su alcuni di questi quando si fornisce liquidità al lato che ne ha più bisogno.

Realizzare questo script è stato parecchio complicato, perchè mi ha richiesto sia di fare alcune cose che non avevo mai fatto - creare transazioni ed inviarle alla blockchain - sia di trovare un modo per far funzionare in continuazione il mio script, come se si trovasse su un server.

Per raggiungere questo secondo scopo mi sono servito di Github Actions, che consente di far attivare periodicamente ed automaticamente uno script senza che l'utente debba fare nulla.



Sì, l'intervallo di tempo reale non è di 10 minuti, e non è neanche molto preciso, ma un paio di attivazioni all'ora sono comunque più che sufficienti ed in questo modo il mio script monitora costantemente i bridges che mi interessano e, quando rileva un'opportunità, procede automaticamente ad eseguire le transazioni necessarie.

Per ora ho affidato solo un piccolo importo a questo script ma, se fra qualche giorno non ci saranno stati intoppi, trasferirò a @liquid.wolf tutti i miei HIVE liquidi.


E non è finita qua!

Sì, perchè non faccio in tempo a finire un progetto che già me ne viene in mente uno nuovo!

Vorrei infatti scoprire quanto ho guadagnato esattamente giocando a Golem Overlord, dato che, ad un certo punto, ho perso traccia dei miei guadagni...

Farlo dovrebbe essere abbastanza semplice, ma chissà che poi da quest'idea non possa nascere qualcosa di più interessante :)


cover realizzata con Bing AI ed editata con GIMP

a supporto della community #OliodiBalena, il 3% delle ricompense di questo post va a @balaenoptera

Se sei arrivato a leggere fin qui, grazie! Se hai voglia di lasciare un upvote, un reblog, un follow, un commento... be', un qualsiasi segnale di vita, in realtà, è molto apprezzato!

Posted Using INLEO

0.39400711 BEE
9 comments

Proverò il tuo script ma nel frattempo non posso che dirti che oltre a divertirti con python stai anche creando cose molto utili anche per gli altri.
Complimenti e apprezzando il tuo lavoro non posso che supportarti al massimo delle mie possibilità
!hiqvote
!PIMP
!PIZZA
!discovery 30
@tipu curate 2

0.00000361 BEE
0E-8 BEE

Grazie Liberty! E' sempre un piacere ricevere il tuo supporto e sostegno :)

Il sito che sto creando spero tanto che possa tornare utile anche a qualcun altro, anche se intanto almeno a me è servito, per cui è già qualcosa 😅

!LOL !PIZZA !PIMP

0.00000000 BEE

Seagulls were God's third attempt at creating birds.
The A-gull and B-gull weren't quite right.

Credit: reddit
@libertycrypto27, I sent you an $LOLZ on behalf of arc7icwolf

(1/10)
NEW: Join LOLZ's Daily Earn and Burn Contest and win $LOLZ

0.00000000 BEE

Provato! Molto utile e di facile utilizzo. Ottimo lavoro!

0.00000121 BEE

Grazie! Con il tuo progetto invece come va? Spero di vederti tornare presto a pubblicare qualche aggiornamento qui su Hive :)

0.00000000 BEE
(edited)

Per ora sono fermo in attesa che le Chaos escano dalla modalità modern. Quando entreranno le Arcana rimetto mano al codice e riparto a pubblicare le analisi!

0.00000000 BEE

Complimenti per tutti i "lavori" che stai facendo!!!!
Abbiamo scambiato 4 chiacchiere in privato in passato e sai che è una cosa che piacerebbe molto anche a me, ma a parte la formattazione del testo, non capisco un'H di programmazione 😅

Però adesso ti lancio io un'idea malsana (che non so se sia fattibile/realizzabile/utile): uno script che movimenta in automatico Hive in HBD a seconda della convenienza.
Tipo HIVE fa +1% rispetto ad HBD e in automatico swappa da HBD ad HIVE e viceversa...ovviamente ho sparato numeri a caso 😜

0.00000007 BEE

Anch'io non è che ci capisca poi tanto... vado per tentativi più che altro 😂

ti lancio io un'idea

Credo che sia fattibile (nel senso di "alla mia portata" !LOL), ma se swappi HIVE in HBD quando HIVE aumenta, mettiamo dell'1%, poi cosa fai se HIVE continua ad aumentare? Bisognerebbe essere sicuri che HIVE continui ad oscillare entro un certo range per non rischiare di fare una conversione da cui poi non si riesce a tornare indietro.

0.00000000 BEE

Non so quanto sia semplice da spiegare per iscritto.
È una cosa che penso da un bel po' di tempo e non so se è la mia ignoranza in materia a parlare.
Il senso sarebbe questo più o meno:

  • si hanno 2 salvadanai, uno con 100 HIVE e uno con 100 HBD (numeri per semplificare i calcoli e semplicemente per essere sicuri di avere liquidità in entrambi).
  • HIVE guadagna 1% su HBD? allora swappa 1 HIVE in HBD
    -HBD guadagna 1% su HIVE? allora swappa 1 HBD in HIVE
  • ad ogni swap, mette da parte l'1% di guadagno e rimette in gioco il capitale iniziale
    In questo modo si hanno a disposizione 100 transazioni a senso unico e il rischio di rimanere a corto si uno o l'altro fondo dovrebbe essere abbastanza basso

Se in un giorno chiudi 50 transazioni, hai guadagnato 5 HIVE (con i numeri che ho sparato io a caso)

Ho detto una cazzata? 😅

!LOLZ

0.00014889 BEE

Wow un bel lavoro... Il bot di noleggio non ne vale si la pena, ce ne sono già una marea che fanno la stessa cosa on prendono subito le offerte più basse/alte del mercato

Ho provato ad aprire il sito ma senza account non mi fa entrare

5E-8 BEE

Non ho idea del perchè ma me l'aveva impostata come privata... ora dovrebbe essere risolto!

0.00000216 BEE

Ora va! Da mobile c'è da giocare un po' con la rotazione

0E-8 BEE

You are doing very great, bro. Keep it up

5E-8 BEE

Many thanks :)

0E-8 BEE

This post was shared and voted inside the discord by the curators team of discovery-it
Join our Community and follow our Curation Trail
Discovery-it is also a Witness, vote for us here
Delegate to us for passive income. Check our 80% fee-back Program
0E-8 BEE
(edited)

PIZZA!

$PIZZA slices delivered:
@arc7icwolf(1/10) tipped @libertycrypto27
libertycrypto27 tipped arc7icwolf

Come get MOONed!

0E-8 BEE

Congratulations @arc7icwolf! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You distributed more than 55000 upvotes.
Your next target is to reach 56000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out our last posts:

0.00000000 BEE