arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2109.11270cs.CRcs.GT
收藏

走向私有链上交易

Towards Private On-Chain Algorithmic Trading

Ceren Kocaoğullar, Arthur Gervais, Benjamin Livshits

摘要:

虽然与ERC-20代币等加密资产交易相关的定量自动化已经变得相对普遍,3Commas和Shrilliant等服务甚至为普通加密交易者提供了用户友好的网络驱动服务,但我们尚未看到链上交易的出现。我们假设,就像去中心化交易所(DEX)一样,到目前为止,去中心化金融(DeFi)领域的流程可能会实现有吸引力的在线交易自动化选项。在本文中,我们介绍了ChainBot,这是一种借助区块链技术创建算法交易机器人的方法。我们展示了如何将计算划分为链上和链下组件,以提供端到端完整性的度量,同时保留算法的“秘密酱”。我们的系统通过谨慎使用算法划分、零知识证明和智能合约来实现。我们还表明,与层2(L2)技术,交易可以保持私密,这意味着算法参数是难以恢复的链观察。与传统的链下交易方法相比,我们的方法提供了更透明的流动性和更好的审查抵抗力。我们开发了一个ChainBot样本,并根据历史数据对其进行训练,结果回报率高达我们使用的基线买入并持有策略的2.4倍。我们的测量表明,在1000次运行中,我们系统的端到端平均执行时间为48.4秒。我们证明,交易的频率不会显着影响回报率和夏普比率,这表明我们不必在每个区块进行交易,从而大大节省了天然气费用。在我们的实现中,一个投资1,000美元的用户将获得105美元的收入,并在天然气上花费3美元;假设用户池有1,000个订户。

英文摘要:

While quantitative automation related to trading crypto-assets such as ERC-20 tokens has become relatively commonplace, with services such as 3Commas and Shrimpy offering user-friendly web-driven services for even the average crypto trader, we have not yet seen the emergence of on-chain trading as a phenomenon. We hypothesize that just like decentralized exchanges (DEXes) that by now are by some measures more popular than traditional exchanges, process in the space of decentralized finance (DeFi) may enable attractive online trading automation options. In this paper we present ChainBot, an approach for creating algorithmic trading bots with the help of blockchain technology. We show how to partition the computation into on- and off-chain components in a way that provides a measure of end-to-end integrity, while preserving the algorithmic "secret sauce". Our system is enabled with a careful use of algorithm partitioning, zero-knowledge proofs and smart contracts. We also show that with layer-2 (L2) technologies, trades can be kept private, which means that algorithmic parameters are difficult to recover by a chain observer. Our approach offers more transparent access to liquidity and better censorship-resistance compared to traditional off-chain trading approaches. We develop a sample ChainBot and train it on historical data, resulting in returns that are up to 2.4x the buy-and-hold strategy, which we use as our baseline. Our measurements show that across 1000 runs, the end-to-end average execution time for our system is 48.4 seconds. We demonstrate that the frequency of trading does not significantly affect the rate of return and Sharpe ratio, which indicates that we do not have to trade at every block, thereby significantly saving in terms of gas fees. In our implementation, a user who invests \$1,000 would earn \$105, and spend \$3 on gas; assuming a user pool of 1,000 subscribers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑