La versione italiana si trova sotto quella inglese
The italian version is under the english one
Earning HIVE Thanks to My Scripts: Bridges Arbitrage and Grid Trading
Programming, for me, is nothing more than a hobby.
I wish it weren't like that. I wish I were better at it and could work in the programming world, but the truth is I didn't follow the right studies, and I don't have the time now to pursue a completely different path from the one I've followed so far. A part of me would love to, but it would almost certainly be madness.
That's why my Python projects will always be amateurish, simple, and – in the eyes of a real programmer – probably ugly and poorly designed... but ultimately, if I'm coding just for fun, why should I care if what I create is little more than a toy?
And the answer is: I don’t. If the scripts I write do what I created them for, they entertain me, and give me small satisfactions, that’s good enough for me.
Also because lately, some of the projects I've worked on over the past months have shown me that you can achieve something even with little: I used to think that without great skills, abilities, and knowledge it was impossible to create something useful... but I was wrong.
And in this post, I’d like to focus on one topic in particular — one that, until not long ago, I thought was completely beyond my abilities — namely, earning money thanks to my scripts.
How can I earn anything if I just said I’ll never be able to get a job as a programmer because I don’t have the necessary skills?
Well, lately I discovered that, in some way, I can!
Bridging arbitrage
What proved to me that I could earn something thanks to my scripts is a project I already mentioned here, specifically the one about arbitraging the bridges that connect HIVE with SWAP.HIVE, taking advantage of the fact that, under certain conditions, it’s possible to generate a positive fee, thus making a profit.
The script I created uses all my liquid HIVE to perform operations of this type through the @liquid.wolf account: over the ~15 days this project has been running, I’ve made a profit of almost 200 HIVE, plus over 5.8 BXT – a token I talked about here.

This event, in a way, opened my eyes, because it showed me that even with basic knowledge like mine, it’s possible to create scripts that generate a profit.
A little voice in my head even started wondering: what if I managed to create dozens of scripts like this one?
Grid trading
And that brings us to the second project I wanted to talk about today, the one I’m developing based on an idea from @bencwarmer and inspired by what @hoosie used to do — namely, trying to take advantage of price fluctuations in HIVE to do something that, according to ChatGPT, is called grid trading.
def place_orders(account, nodes, session: requests.Session, diff, trades, amount, market, lowest, highest):
for _ in range(trades):
hive, hbd = get_balances(account, nodes, session)
print(f"Balances available: {hive} HIVE and {hbd} HBD")
if float(hbd) > amount:
sell_price = round(highest + diff * highest / 100, 4)
print("Looking to sell HBD...")
sell = place_sell_order(
account, sell_price, amount, market
) # Buy HIVE, sell HBD
time.sleep(3)
if float(hive) > amount * lowest:
buy_price = round(lowest - diff * lowest / 100, 4)
print("Looking to sell HIVE...")
buy = place_buy_order(
account, buy_price, amount, market
) # Sell HIVE, buy HBD
time.sleep(3)
diff += 1
The idea is to convert HIVE into HBD when the price goes up, and HBD into HIVE when the price drops, using very small increments/decrements and canceling older orders when they become too far from the current price.
This script is also already active, although not fully yet, because I’m still fine-tuning it and currently launch it manually when I want to run tests.
I still need to implement, for example, a system to keep track of completed operations, so I can automatically calculate whether the script is generating a profit or not.
In this project, the goal isn’t so much to find a second way to earn right now, but to improve my skills in trading: if I manage to create a solid, reliable, and functional script, I could then look for simpler opportunities to apply what I’ve learned and see if I can generate another small passive income.
There’s a 99% chance I’ll never work as a programmer — but who knows, maybe one day my own scripts will work for me :)
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
Guadagnare HIVE Grazie ai miei Scripts: Arbitraggio dei Bridges e Grid Trading
Programmare per me è niente più che un hobby.
Vorrei che non fosse così, vorrei essere più bravo e poter lavorare nel mondo della programmazione, ma la verità è che non ho fatto gli studi giusti e non ho il tempo per provare adesso ad inseguire una strada completamente diversa da quella che ho percorso finora. Una parte di me vorrebbe, ma sarebbe quasi sicuramente una follia.
Per questo i miei lavori in Python saranno sempre amatoriali, semplici e - agli occhi di un vero programmatore - pure brutti e poco funzionali... ma tutto sommato, se devo programmare solo per divertimento, alla fine cosa mi importa se ciò che creo è poco più di un gioco?
E' la risposta infatti è "nulla". Se gli script che scrivo fanno ciò per cui li ho creati, mi fanno divertire e mi danno delle piccole soddisfazioni, a me sta bene.
Anche perchè ultimamente alcuni dei progetti a cui ho lavorato in questi mesi mi hanno dimostrato che anche con poco si può ottenere qualcosa: pensavo che senza aver grandi capacità, abilità e conoscenze fosse impossibile creare qualcosa di utile... ma mi sbagliavo.
E in questo post vorrei focalizzarmi su un argomento in particolare, uno che di base, per quello che pensavo fino a poco tempo, sarebbe dovuto essere completamente al di là delle mie capacità, ossia guadagnare grazie ai miei scripts.
Come posso infatti guadagnare se ho detto sopra che non potrò mai trovare un lavoro come programmatore, dato che non ho le necessarie competenze?
Be', in quest'ultimo periodo ho scoperto che, in qualche modo, posso!
Arbitrare i bridges
Ciò che mi ha dimostrato che posso guadagnare qualcosa grazie ai miei scripts è un progetto di cui vi avevo già parlato qua, ed in particolare quello che riguarda la possibilità di arbitrare i bridges che collegano HIVE con SWAP.HIVE, sfruttando il fatto che, in determinate condizioni, sia possibile generare una commissione positiva, ottenendo così un guadagno.
Lo script che ho creato utilizza tutti i miei HIVE liquidi per compiere operazioni di questo tipo tramite l'account @liquid.wolf: nei circa 15 giorni di attività di questo progetto ho ottenuto un guadagno di quasi 200 HIVE, oltre 5.8 BXT - un token di cui vi ho parlato qua.

Si tratta di un evento che, in un certo senso, mi ha aperto gli occhi, perchè mi ha dimostrato che, anche con conoscenze basiche come le mie, è possibile creare degli scripts che possano generare un guadagno.
Una piccola vocina nella testa ha anche cominciato a chiedersi: e se riuscissi a creare decine di script come questo?
Grid trading
E passiamo così al secondo progetto di cui volevo parlarvi oggi, quello che sto sviluppando sulla base di un'idea di @bencwarmer ed ispirandomi a quello che faceva un tempo @hoosie, ossia cercare di sfruttare le oscillazioni nel prezzo di HIVE per fare una cosa che, secondo ChatGPT, si chiama grid trading.
def place_orders(account, nodes, session: requests.Session, diff, trades, amount, market, lowest, highest):
for _ in range(trades):
hive, hbd = get_balances(account, nodes, session)
print(f"Balances available: {hive} HIVE and {hbd} HBD")
if float(hbd) > amount:
sell_price = round(highest + diff * highest / 100, 4)
print("Looking to sell HBD...")
sell = place_sell_order(
account, sell_price, amount, market
) # Buy HIVE, sell HBD
time.sleep(3)
if float(hive) > amount * lowest:
buy_price = round(lowest - diff * lowest / 100, 4)
print("Looking to sell HIVE...")
buy = place_buy_order(
account, buy_price, amount, market
) # Sell HIVE, buy HBD
time.sleep(3)
diff += 1
L'idea sarebbe quella di convertire HIVE in HBD quando il prezzo sale e HBD in HIVE quando il prezzo scende, prevedendo incrementi/decrementi molto piccoli e cancellando gli ordini più vecchi quando cominciano ad essere troppo lontani dal prezzo attuale.
Anche questo script è già operativo, anche se ancora non completamente, perchè lo sto rifinendo e per ora lo lancio quando voglio fare dei test.
Devo ad esempio ancora implementare un sistema che tenga traccia delle operazioni completate, così da poter calcolare in automatico se lo script sta generando un guadagno o meno.
Nel caso di questo progetto la speranza non è tanto quello di trovare di già un secondo modo per guadagnare, quanto quella di affinare le mie capacità nell'ambito del trading: se riuscirò a creare uno script solido, affidabile e funzionante, potrei infatti poi cercare occasioni più semplici da sfruttare per mettere in pratica quanto imparato e vedere se riesco a generare un'altra piccola rendita passiva.
Al 99% non lavorerò mai come programmatore, ma chissà che un giorno non possano essere i miei stessi scripts a lavorare per me :)
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!