TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: [System Design] How would you build a trading system?

4 点作者 me_me_mu_mu将近 3 年前
How would you build a trading system (similar to whatever stock or other exchanges you may use)? I&#x27;m really inspired by coinbase and robin hood, but how they heck are they built?<p>I am trying to learn more about this but my google searches are not turning up the right results. What is involved on the backend? What systems are in play and how do things work at a high level?

7 条评论

theGeatZhopa将近 3 年前
Think. Search. Design. Would be my approach.<p>What do you need&#x2F;want. Search for possible resolution and Software. Design the basics on paper. Do some guestimates on the running costs.<p>Then, start building.<p>There is a reason you can&#x27;t find anything on Google. You can&#x27;t google property (learn it!) Or there are no results for the given search. May be it&#x27;s for a reason, too.<p>Would you disclose or build up how-to and tell every secret in the open? There are two kinds of people. The few who get it done, and the majority, the lot who waits until they are told how to do.<p>Which is you?
coolspot将近 3 年前
The basics are: you’re having an order book where you keep bids and asks. Then you can match market orders to that book.<p>Now you probably want that book in memory, and you probably want to have many of these books, one for each asset type traded.<p>Then you want some replication and fault tolerance, likely some ACID and guaranteed on-disk storage.<p>Many market orders probably should form a queue which is executed sequentially.<p>Etc, etc…
__d将近 3 年前
Some of the detailed design info is hard to find: those who have done it like to get paid a lot to do it again, so ... they don&#x27;t write it down.<p>The best way to work this out is to get a job at a trading firm, broker, exchange, bank, etc. Plenty to learn, and well paid.<p>But try &quot;matching engine&quot; as a search term.
gitgud将近 3 年前
[1] This is a pretty good explanation on the difference between order-based markets and liquidity-based markets. It&#x27;s decentralized (DeFi) focused, but still very informative.<p>[1] <a href="https:&#x2F;&#x2F;youtu.be&#x2F;cizLhxSKrAc" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;cizLhxSKrAc</a>
exz将近 3 年前
<a href="https:&#x2F;&#x2F;stackshare.io&#x2F;coinbase&#x2F;coinbase" rel="nofollow">https:&#x2F;&#x2F;stackshare.io&#x2F;coinbase&#x2F;coinbase</a><p><a href="https:&#x2F;&#x2F;stackshare.io&#x2F;robinhood&#x2F;robinhood" rel="nofollow">https:&#x2F;&#x2F;stackshare.io&#x2F;robinhood&#x2F;robinhood</a>
hdk将近 3 年前
Might find this video from Jane Street helpful:<p><a href="https:&#x2F;&#x2F;m.youtube.com&#x2F;watch?v=b1e4t2k2KJY" rel="nofollow">https:&#x2F;&#x2F;m.youtube.com&#x2F;watch?v=b1e4t2k2KJY</a>
stevenalowe将近 3 年前
Build it one use-case at a time, carefully modeling the domain with a domain expert.