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

You are viewing a single comment's thread:

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 🤣



0
0
0.000
5 comments
avatar

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.

0
0
0.000
avatar

better: .csv file

I was thinking at this one, even if I'm tempted to explore SQLite, even if it's clearly too much for what I need... but it might be a good opportunity to learn something new :)

0
0
0.000
avatar
with open

Is cool Python stuff. That's enough concept to work on.

btw, your script: what happens if there is a huge swing in the market?
say, all your liquidity is on the HBD side, and the HIVE price hikes 100% and stays up... (happened to me kind of 🤣)

0
0
0.000
avatar

I'd be f*cked 🤣 !LOL

jokes aside, I'm keeping most of my liquid HIVE away from this project, so I'm playing only with a small amount of HIVE and HBD.

And if the price pumps (or dumps) the script deletes the orders which are too far from the new price range and place new orders (but I would have to inject new liquidity for the side which has been depleted the spike). Surely it would be a bad scenario, if it happened too often.

0
0
0.000
avatar

I really love video games where you go for an deep sea adventuring.
They're just so immersive.

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

(6/10)
Delegate Hive Tokens to Farm $LOLZ and earn 110% Rewards. Learn more.

0
0
0.000