Websocket died silently and my bot kept trading a frozen book for hours. How do you detect stale feeds?

A little bit contex I`m running a copy/automation setup across a few venues. Signals come in bot manages positions from there.

One night a position just sits wrong for hours and I cant work out why the bot isnt doing anything about it. Went through the strategy logic, the signal side, all looked normal. Wasnt until I checked the raw feed timestamps that it clicked, the market data websocket on one of the venues had stopped. No error and the connection still showed open on the client, there was just nothing coming down it.
So as far as the bot knew everything was live and it sat there managing a book that had been frozen for hours while the actual market moved on.

That venue runs localtrade JSON-RPC over a websocket and the book updates carry a sequence number. Which is handy for a dropped message the number jumps and you know you missed one.
Except that does nothing for this case. A dead feed doesnt skip a number, it just stops sending, so theres no gap for the check to catch. What actually catches it is a timeout, the sequence number is useless when nothings arriving.

Copytrade made it worse.
A mirror keeps sizing off the master account and once that state quietly goes stale the mirror is acting on prices that stopped updating and slowly drifts from where it should be. Nothing errors, you just notice later that the two accounts dont line up.

Fix was to stop trusting the socket. Stale data is a hard fault now if the feed hasnt ticked inside a timeout the bot treats it as lying and flattens rather than guessing. Socket being open doesnt mean the feed is alive anymore, the data has to be recent or it bails.

Right now I`m leaning towards a separate watchdog that just tracks the last update timestamp per venue, outside the trading loop, and trips if anything goes stale past a threshold.
Feels a bit crude though. Is there something cleaner people actually run for this in prod, a heartbeat trick, some smarter liveness check? Mostly interested in multi venue setups where one leg can stop updating while the rest look totally fine.

reddit.com
u/ddddiokkjjj — 2 days ago

Does anyone actually have a shot at catching Polymarket?

Been thinking about this.
Their platform is basically a monopoly at this point and now they've got some kind of user rewards in the pipeline too. Do you think the newer, smaller players Augur or Seerdex have any chance of even catching up, let alone overtaking them?

And more broadly, how long is this whole space gonna last?
I'm one of those people who believes in tech, so it's hard for me to read a meta like this.

I`ve also been wondering how valuable this space even is to the crypto industry and whether you can really tie the two together. On the surface it added some hype but broadly I don't think it'll turn into another NFT thing.

Though this segment is basically built around the betting side, so... yeah, probably not.

reddit.com
u/ddddiokkjjj — 5 days ago

Has the crypto market adapted to the news event?

So, I’ve been in crypto for about 6 years now, starting back during COVID in 2020 when I was sitting at home all day.

Over that time, I remember how strongly the markets depended on macroeconomic news, but lately I’ve noticed that the market doesn’t react the same way anymore it’s like it’s “digested” it and adapted to the news. Of course, I’m not counting geopolitical events those still move even forex and stock markets but other scheduled news doesn’t seem to have the same impact anymore.

I’ve especially noticed this in trading, where it feels like the news is already priced in.

Here’s a good example yesterday there was another Bitcoin mining difficulty adjustment. Before, we used to wait like crazy for halvings and similar events to trade them, but now there’s zero reaction to market.

reddit.com
u/ddddiokkjjj — 8 days ago

35M, 5 years into VWCE only. Thinking about my future steps.

35M, Austrian, working in logistics. 5 years into the standard approach and it's gone fine, just want a second opinion before the next step.

My current situation:

  • ~82k total
  • Core is VWCE via monthly Sparplan, the large majority of it
  • ~6% in physical gold (Xetra-Gold), bought in 2022 and left alone since
  • ~4% in a Swiss lending platform Maclear. Started last year, sized as money I could write off
  • Take-home ~3,400 EUR/month after tax, saving ~1,200/month, rent + living ~1,900, no debt

Not chasing extreme early retirement. Just want the option to stop depending on a salary by my late 50s, sooner if income grows.

What I'm trying to figure out:

The equity position is now big enough that a 20-30% drop would be a real amount of money in absolute terms, and I've got nothing that actually holds steady when stocks fall. Gold and the lending position aren't tied to the market, sure, but neither of them is the kind of money you draw on calmly in a crash.

So I want to add a genuinely stable piece and can't decide between:

  • A bond ETF (EUR aggregate or short-duration)
  • A money market fund for the liquid part
  • Or just sitting on more cash and accepting the drag

Questions:

  • At my stage, still accumulating with maybe 20 years to go, is a bond/MMF allocation worth starting now or is that more of a closer to the end thing?
  • For anyone who added fixed income in their 30s looking back, was it the right call or did you wish you'd stayed fully invested?
  • How much cash do you keep as a working buffer on an income like this?
reddit.com
u/ddddiokkjjj — 12 days ago