Lab notebook 1. Paper only.
Learn how price gaps work by working them out by hand, then write a small bot that only ever trades on paper. No exchange, no money, no keys.
Why the same coin costs slightly different amounts in two places.
Bid, ask and mid, and which of them you could use.
Trading fees, moving fees, and the part most tutorials skip.
How much a listed price is good for before it moves.
Coins take time to move, and a gap does not wait for them.
Three coins on one exchange: the loop drawn above, done properly.
Replay a recorded order book and fill orders on paper.
Who else is looking, and how fast they are.
Use what you now know to question the claims.
# paper_loop.py: paper only.
# No imports, no network, no keys.
# The rates and the fee are made up.
RATES = [("A>B", 16.40),
("B>C", 0.0612),
("C>A", 0.9975)]
def walk(units, fee=0.0):
for leg, rate in RATES:
units = units * rate * (1 - fee)
print(f"{leg} {units:.4f}")
return round(units, 4)
print("before fees", walk(1.0))
print("after fees ", walk(1.0, fee=0.001))
No imports on purpose. With nothing imported, it has no way to reach an exchange. Change the fee and find where the loop turns over.
A>B 16.4000
B>C 1.0037
C>A 1.0012
before fees 1.0012
A>B 16.3836
B>C 1.0017
C>A 0.9982
after fees 0.9982
Not financial advice, and this lab trades nothing. It teaches arithmetic and code, and makes no claim about what any bot would do with real money.