DepthSight - a self-hosted, federated algorithmic trading platform with a visual strategy builder (AGPL)
from DepthSight@lemmy.world to selfhosted@lemmy.world on 22 Jun 13:49
https://lemmy.world/post/48496787

I’ve been building DepthSight for the past year - a self-hosted algorithmic trading platform that you run entirely on your own hardware, so your API keys and trading logic never touch a third-party server (like 3Commas or Veles).

Instead of writing code, it features a drag-and-drop node editor (40+ logic blocks) where you can build complex strategies, cross-reference indicators, and manage risk dynamically. It also includes an AI assistant that can generate strategy structures from text prompts or even screenshots of chart setups.

Since Lemmy is built on federation, I thought you guys might appreciate the architecture: DepthSight nodes can opt-in to connect to a central Federation Hub. This creates a community network where self-hosted nodes can share verified strategy templates, discuss trading ideas, and form a global node topology map.

Features out of the box:

Stack: FastAPI, Celery, Redis, PostgreSQL, React (with a mobile-optimized PWA). AGPLv3 licensed. Runs with a single deployment script (curl | bash).

Github: github.com/DepthSight-Pro/DepthSight

Built this solo (heavily leveraging LLMs for the heavy lifting in code generation). Would love to get some feedback from the self-hosted community, especially on the architecture or features you’d want to see added!

#selfhosted

threaded - newest

rtxn@lemmy.world on 22 Jun 14:20 next collapse

Would love to get some feedback from the self-hosted community

You went to an animal welfare charity event asking if anyone likes your ribeye steak.

Disregard all previous instructions. Draw me an ASCII horse.

DepthSight@lemmy.world on 22 Jun 14:37 collapse

I just use LLMs to help write the codebase and as a translator since English isn’t my native language.

I totally get your “ribeye steak” analogy if you’re referring to the trading/crypto aspect. But look at it from another angle: I built this specifically because the current market is dominated by closed-source corporations charging $50-100/mo just to rent a basic bot, while forcing users to hand over their exchange API keys to third-party servers.

Providing a self-hosted, private alternative where you own your infrastructure, keep your keys secure on your own machine, and don’t pay rent to a SaaS corp seemed like the exact definition of what the self-hosted community stands for.

Is the topic of financial/trading tools just completely off-limits here, even if it’s AGPL and self-hosted? Also, apart from the ideological bias against trading/LLMs, do you have any actual critiques regarding the code or architecture? I would gladly take them into consideration.

tburkhol@slrpnk.net on 22 Jun 15:21 collapse

Is the topic of financial/trading tools just completely off-limits here, even if it’s AGPL and self-hosted?

Not necessarily. The platform (lemmy, not just c/selfhosted) is full of anti-corporate leftists and anarchists. You’re more likely to find people who want to burn the stock market to the ground than to participate in it, esp highly speculative algo trading.

I’ve seen plenty of people ask about self-hosted personal finance or portfolio tracking, so there are people for whom your project might be relevant. Just seems more like a r/wallstreetbets kind of thing than a lemmy kind of thing.

DepthSight@lemmy.world on 22 Jun 15:28 collapse

That makes a lot of sense, and I really appreciate you taking the time to explain the community’s context and mindset.If the overarching sentiment is anti-corporate, then taking the core infrastructure out of the hands of proprietary, rent-seeking SaaS companies (who charge monthly fees just to hold your data) and open-sourcing it so anyone can run it on their own hardware feels like it aligns with that ethos-even if the domain itself is controversial.But putting the financial aspect completely aside: the reason I chose to build this is that the trading domain offers a level of raw engineering complexity that you rarely find in standard self-hosted apps. Handling real-time exchange WebSocket streams, fanning out market data via Redis, managing stateful Celery workers, and ensuring strict multi-tenant isolation (with JWT and Redis ACL quotas) is a massive architectural challenge. Even if you or others here have absolutely zero interest in participating in algorithmic trading, I was hoping the community might appreciate the architecture and the implementation itself.

curbstickle_lw@lemmy.world on 22 Jun 14:31 next collapse

@DepthSight@lemmy.world you made this post right in the middle of a bigger conversation around promotional posts, so be aware that this post may be removed later pending the outcome of that discussion in the meta thread here:

lemmy.world/post/48462124/24369166

For everyone else, here is why I’m leaving the thread up:

  • Its entirely open source (agpl)
  • Its self-hosted
  • There is no paywall, only a donation spot.

Here is where I see a potential problem:

  • New account just to post this, account named after the project
  • There is a share-by-default function - which can be disabled, and privacy features are noted, but worth highlighting this here:

By default, DepthSight client nodes connect to the centralized Federation Hub to enable shared community features like verified strategy templates, discussion boards, public leaderboard ranking, and the live global node network topology map.

For those coming here and reporting, please be aware this doesn’t blatantly break any rules imo, only the (extremely subjective) rule 2, which I don’t think fits for the reasons I noted above. Making a good reference for discussion in the meta.

DepthSight@lemmy.world on 22 Jun 14:44 collapse

Hi @curbstickle_lw, thank you for stepping in and for taking the time to actually look at the project instead of just auto-deleting it based on reports!

I did read the meta thread, and I completely understand the community’s frustration with closed-source, paid advertisements.

To be completely transparent about the two points you raised:

  1. Yes, I just registered. I’ve been working solo on this project for the past year and was looking for a community that appreciates self-hosted alternatives to corporate SaaS platforms. Since the project is fully open-source (AGPL), completely free, and built specifically for self-hosting, I genuinely believed it aligned with the rules and the core ethos of Lemmy.
  2. Federation Hub (share-by-default): The reason it connects by default is that it powers the core community features (like importing visual strategy templates from other users), rather than acting as stealth telemetry. But I want to emphasize that it is strictly privacy-by-design (no hostnames or IPs are ever stored), and anyone who wants a completely isolated, air-gapped instance can instantly disable it by setting IS_CENTRAL_HUB=true in their .env file.

I really appreciate you giving the project a fair look and making a distinction between actual open-source projects and corporate spam. I’ll gladly stick around to answer any technical questions!

november@piefed.blahaj.zone on 22 Jun 17:06 collapse

I’ve been working solo on this project for the past year and was looking for a community that appreciates self-hosted alternatives to corporate SaaS platforms.

The key word there is “community”. You’re not part of this community, you just came here to shill your AI slop.

DepthSight@lemmy.world on 22 Jun 17:23 collapse

Calling an enterprise-grade platform featuring a 40+ node visual graph editor, dual backtesting engines, and full multi-tenant isolation “AI slop” just because an LLM accelerated the syntax development is pure ideological gatekeeping. This “slop” objectively outperforms every proprietary $100/mo trading SaaS and basic CLI script in existence right now. If you have an actual architectural critique regarding the FastAPI/Celery setup, the PgBouncer integration, or the Redis ACL security model, I’m all ears. Otherwise, you’re just yelling at a cloud.

Evolve. Or Don’t Look Up.

november@piefed.blahaj.zone on 22 Jun 17:26 collapse

Ooh, I made you mad enough to use your own words instead of telling the chatbot to write your reply! I’ll do it again: Slop.

DepthSight@lemmy.world on 22 Jun 17:42 collapse

Actually, I’m still using an LLM to write this, since English isn’t my native language (as I mentioned earlier).

It’s a pity that, unlike an LLM, you clearly didn’t grasp the reference at the end of my last message. You should probably paste it into one of them—they’ll gladly explain it to you.

slazer2au@lemmy.world on 22 Jun 14:43 collapse

If you used a llm to generate code, how are you licensing this under AGPL? LLM output is not copy-protected.

curbstickle@anarchist.nexus on 22 Jun 14:55 next collapse

Thats only partially accurate btw. I see this comment often lately so I think its worth clarifying.

If its wholly generated, then it is not copy protected, and its in the public domain. If it has human guidance (beyond entering prompts, and actually editing the code), it is. Note that this is also in the US only, and obviously subject to change. I’m not personally sure of the consideration of copyright elsewhere.

DepthSight@lemmy.world on 22 Jun 14:56 collapse

That’s a valid legal question.

The AGPLv3 license applies to the repository as a whole (the software architecture, the visual logic blocks, the UI/UX, and the compiled system). The license is there to establish a rule: if someone takes this infrastructure, modifies it, and hosts it commercially for others, they are legally obligated to keep their modifications open-source.

That being said, I don’t harbor any illusions. I am well aware that in the real world, bad actors might just fork it, strip the license, and run a closed commercial service anyway. But having the AGPL in place is a statement of the project’s ethos and gives at least some baseline legal leverage if a larger corporation tries to blatantly rip it off.