Towards Private On-Chain Algorithmic Trading

09/23/2021
by   Ceren Kocaogullar, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/11/2019

GRuB: Gas-Efficient Blockchain Storage via Workload-Adaptive Data Replication

Modern Blockchains support the execution of user programs, called smart ...
research
04/27/2022

Panoptic: a perpetual, oracle-free options protocol

Panoptic is a perpetual, oracle-free, instant-settlement options trading...
research
01/15/2021

Trading on-chain: how feasible is regulators' worst-case scenario?

When consumers trade financial products, they typically use well-identif...
research
02/27/2020

Empirical Analysis of Indirect Internal Conversions in Cryptocurrency Exchanges

Algorithmic trading is well studied in traditional financial markets. Ho...
research
02/13/2021

Detecting and Quantifying Wash Trading on Decentralized Cryptocurrency Exchanges

Cryptoassets such as cryptocurrencies and tokens are increasingly traded...
research
04/24/2020

A Trend-following Trading Indicator on Homomorphically Encrypted Data

Algorithmic trading has proliferated the area of quantitative finance fo...
research
05/30/2018

Social Signals in the Ethereum Trading Network

Blockchain technology, which has been known by mostly small technologica...

Please sign up or login with your details

Forgot password? Click here to reset