You are viewing a single comment's thread:

RE: [ENG/ITA] Earning HIVE Thanks to My Scripts: Bridges Arbitrage and Grid Trading

If you continue the Python path and try building more things for web, the shit I wrote will make sense (I hope).

I'm sure it will! :) I'm progressing slowly, but sooner than later it will all make sense, I'm sure of that!

Have you encountered callback functions, yet?

Nope, not yet! I just checked what they are to be sure. More stuff to learn 🤣

0E-8 BEE
1 comments

I think you are doing fine.
When you need callbacks, you'll then figure it out.

keep track of completed operations, so I can automatically calculate whether the script is generating a profit or not.

easiest solution: write to .txt or .log file.

with open('somefile.txt', 'a') as the_file:
    the_file.write('Hello\n')

better: .csv file

even better (overkill rn): SQLite (or any other DB)
...this is where my posts kick in.
When you want the thing as a service and have n customers, it's getting ridiculous and problematic to have n files.

4E-8 BEE