~/talk

Asyncio, websockets, and BTC sitting in a tree

Talkat PyData Amsterdam 2018 · 2018-05-25..05-27· [python]
slides:none on file

A side project implements a real arbitrage detector that consumes exchange websocket feeds with asyncio + websockets, inserts ticks into Postgres via asyncpg + TimescaleDB, and runs a cross‑join query that flags buy/sell pairs after subtracting ~0.25% fees. The pipeline runs in Docker, the arbitrage query completes in ~4 ms on a tiny VM over millions of rows, and live runs surface spreads (examples up to ~45%) while warning that execution must pace orders or market impact erodes profit.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30What is asyncio
  3. 7:55Bitcoin arbitrage
  4. 10:04WebSockets for real-time
  5. 16:29Storing data in PostgreSQL
  6. 20:13Optimizing with TimescaleDB
  7. 24:54Finding arbitrage opportunities
  8. 28:36Live demo
  9. 33:00Real-world results and risks
  10. 36:37Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.