Dimitar Kitanovski, Igor Mishkovski, Viktor Stojkoski, Miroslav Mirchev
Maintaining a balance between returns and volatility is a common strategy for portfolio diversification, whether investing in traditional equities or digital assets like cryptocurrencies. One approach for diversification is the application of community detection or clustering, using a network representing the relationships between assets. We examine two network representations, one based on a standard distance matrix based on correlation, and another based on mutual information. The Louvain and Affinity propagation algorithms were employed for finding the network communities (clusters) based on annual data. Furthermore, we examine building assets' co-occurrence networks, where communities are detected for each month throughout a whole year and then the links represent how often assets belong to the same community. Portfolios are then constructed by selecting several assets from each community based on local properties (degree centrality), global properties (closeness centrality), or explained variance (Principal component analysis), with three value ranges (max, med, min), calculated on a maximal spanning tree or a fully connected community sub-graph. We explored these various strategies on data from the S\&P 500 and the Top 203 cryptocurrencies with a market cap above 2M USD in the period from Jan 2019 to Sep 2022. Moreover, we study into more details the periods of the beginning of the COVID-19 outbreak and the start of the war in Ukraine. The results confirm some of the previous findings already known for traditional stock markets and provide some further insights, while they reveal an opposing trend in the crypto-assets market.
This study presents a Reinforcement Learning (RL)-based portfolio management model tailored for high-risk environments, addressing the limitations of traditional RL models and exploiting market opportunities through two-sided transactions and lending. Our approach integrates a new environmental formulation with a Profit and Loss (PnL)-based reward function, enhancing the RL agent's ability in downside risk management and capital optimization. We implemented the model using the Soft Actor-Critic (SAC) agent with a Convolutional Neural Network with Multi-Head Attention (CNN-MHA). This setup effectively manages a diversified 12-crypto asset portfolio in the Binance perpetual futures market, leveraging USDT for both granting and receiving loans and rebalancing every 4 hours, utilizing market data from the preceding 48 hours. Tested over two 16-month periods of varying market volatility, the model significantly outperformed benchmarks, particularly in high-volatility scenarios, achieving higher return-to-risk ratios and demonstrating robust profitability. These results confirm the model's effectiveness in leveraging market dynamics and managing risks in volatile environments like the cryptocurrency market.
We engineer blockchain based risk managed portfolios by creating three funds with distinct risk and return profiles: 1) Alpha - high risk portfolio; 2) Beta - mimics the wider market; and 3) Gamma - represents the risk free rate adjusted to beat inflation. Each of the sub-funds (Alpha, Beta and Gamma) provides risk parity because the weight of each asset in the corresponding portfolio is set to be inversely proportional to the risk derived from investing in that asset. This can be equivalently stated as equal risk contributions from each asset towards the overall portfolio risk. We provide detailed mechanics of combining assets - including mathematical formulations - to obtain better risk managed portfolios. The descriptions are intended to show how a risk parity based efficient frontier portfolio management engine - that caters to different risk appetites of investors by letting each individual investor select their preferred risk-return combination - can be created seamlessly on blockchain. Any Investor - using decentralized ledger technology - can select their desired level of risk, or return, and allocate their wealth accordingly among the sub funds, which balance one another under different market conditions. This evolution of the risk parity principle - resulting in a mechanism that is geared to do well under all market cycles - brings more robust performance and can be termed as conceptual parity. We have given several numerical examples that illustrate the various scenarios that arise when combining Alpha, Beta and Gamma to obtain Parity. The final investment frontier is now possible - a modification to the efficient frontier, thus becoming more than a mere theoretical construct - on blockchain since anyone from anywhere can participate at anytime to obtain wealth appreciation based on their financial goals.
The gas fee, paid for inclusion in the blockchain, is analyzed in two parts. First, we consider how effort in terms of resources required to process and store a transaction turns into a gas limit, which, through a fee, comprised of the base and priority fee in the current version of Ethereum, is converted into the cost paid by the user. We adhere closely to the Ethereum protocol to simplify the analysis and to constrain the design choices when considering multidimensional gas. Second, we assume that the gas price is given deus ex machina by a fractional Ornstein-Uhlenbeck process and evaluate various derivatives. These contracts can, for example, mitigate gas cost volatility. The ability to price and trade forwards besides the existing spot inclusion into the blockchain could enable users to hedge against future cost fluctuations. Overall, this paper offers a comprehensive analysis of gas fee dynamics on the Ethereum blockchain, integrating supply-side constraints with demand-side modelling to enhance the predictability and stability of transaction costs.
We have designed an innovative portfolio rebalancing mechanism termed the Cascading Waterfall Round Robin Mechanism. This algorithmic approach recommends an ideal size and number of trades for each asset during the periodic rebalancing process, factoring in the gas fee and slippage. The essence of the model we have created gives indications regarding whether trades should be made on individual assets depending on the uncertainty in the micro - asset level characteristics - and macro - aggregate market factors - environments. In the hyper-volatile crypto market, our approach to daily rebalancing will benefit from volatility. Price movements will cause our algorithm to buy assets that drop in prices and sell as they soar. In fact, the buying and selling happen only when certain boundaries are crossed in order to weed out any market noise and ensure sound trade execution. We have provided several numerical examples to illustrate the steps - including the calculation of several intermediate variables - of our rebalancing mechanism. The Algorithm we have developed can be easily applied outside blockchain to investment funds across all asset classes at any trading frequency and rebalancing duration. Shakespeare As A Crypto Trader: To Trade Or Not To Trade, that is the Question, Whether an Optimizer can Yield the Answer, Against the Spikes and Crashes of Markets Gone Wild, To Quench One's Thirst before Liquidity Runs Dry, Or Wait till the Tide of Momentum turns Mild.
We develop a liquidity-sensitive multivariate volatility framework to improve the estimation of time-varying covariance structures under market frictions. We introduce two novel portfolio-level liquidity measures, liquidity jump and liquidity diffusion, which capture magnitude and volatility of liquidity fluctuation, respectively, and construct liquidity-adjusted return and volatility that reflect real-time liquidity variability. These liquidity-adjusted inputs are integrated into a VECM-DCC/ADCC-Bayesian model, allowing for conditional and posterior covariance estimation under liquidity stress. Applying this framework to portfolios of cryptocurrencies and US stocks, we find that traditional models misrepresent volatility and co-movement, while liquidity-adjusted models yield more stable and interpretable risk structures, particularly for portfolios of cryptocurrencies. The findings support the use of liquidity-adjusted multivariate models as statistically grounded tools for assessing the propagation of portfolio risk under market frictions, with implications for asset pricing, market microstructure design, and portfolio management.
We develop several innovations to bring the best practices of traditional investment funds to the blockchain landscape. Specifically, we illustrate how: 1) fund prices can be updated regularly like mutual funds; 2) performance fees can be charged like hedge funds; 3) mutually hedged blockchain investment funds can operate with investor protection schemes, such as high water marks; and 4) measures to offset trading related slippage costs when redemptions happen. Using our concepts - and blockchain technology - traditional funds can calculate performance fees in a simplified manner and alleviate several operational issues. Blockchain can solve many problems for traditional finance, while tried and tested wealth management techniques can benefit decentralization, speeding its adoption. We provide detailed steps - including mathematical formulations and instructive pointers - to implement these ideas and discuss how our designs overcome several blockchain bottlenecks, making smart contracts smarter. We provide numerical illustrations of several scenarios related to our mechanisms.
This study aims to examine the intricate dynamics between BRICS traditional stock assets and the evolving landscape of cryptocurrencies. Using a time-varying parameter vector autoregression model (TVP-VAR), we have analyzed data from the BRICS stock market index, cryptocurrencies, and indicators from January 6, 2015, to June 29, 2023. The results show that three out of the five BRICS stock markets serve as primary sources of shocks that subsequently affect the financial network. The transcontinental (TCI) value derived from the dynamic conditional connectedness using the TVP-VAR model demonstrates a higher explanatory power than the static connectedness observed using the standard VAR model. The discoveries from this study offer valuable insights for corporations, investors, and regulators concerning systematic risk and investment strategies.
The growing interest in cryptocurrencies has drawn the attention of the financial world to this innovative medium of exchange. This study aims to explore the impact of cryptocurrencies on portfolio performance. We conduct our analysis retrospectively, assessing the performance achieved within a specific time frame by three distinct portfolios: one consisting solely of equities, bonds, and commodities; another composed exclusively of cryptocurrencies; and a third, which combines both 'traditional' assets and the best-performing cryptocurrency from the second portfolio.To achieve this, we employ the classic variance-covariance approach, utilizing the GARCH-Copula and GARCH-Vine Copula methods to calculate the risk structure. The optimal asset weights within the optimized portfolios are determined through the Markowitz optimization problem. Our analysis predominantly reveals that the portfolio comprising both cryptocurrency and traditional assets exhibits a higher Sharpe ratio from a retrospective viewpoint and demonstrates more stable performances from a prospective perspective. We also provide an explanation for our choice of portfolio optimization based on the Markowitz approach rather than CVaR and ES.
This paper proposes a novel approach to hedging portfolios of risky assets when financial markets are affected by financial turmoils. We introduce a completely novel approach to diversification activity not on the level of single assets but on the level of ensemble algorithmic investment strategies (AIS) built based on the prices of these assets. We employ four types of diverse theoretical models (LSTM - Long Short-Term Memory, ARIMA-GARCH - Autoregressive Integrated Moving Average - Generalized Autoregressive Conditional Heteroskedasticity, momentum, and contrarian) to generate price forecasts, which are then used to produce investment signals in single and complex AIS. In such a way, we are able to verify the diversification potential of different types of investment strategies consisting of various assets (energy commodities, precious metals, cryptocurrencies, or soft commodities) in hedging ensemble AIS built for equity indices (S&P 500 index). Empirical data used in this study cover the period between 2004 and 2022. Our main conclusion is that LSTM-based strategies outperform the other models and that the best diversifier for the AIS built for the S&P 500 index is the AIS built for Bitcoin. Finally, we test the LSTM model for a higher frequency of data (1 hour). We conclude that it outperforms the results obtained using daily data.
This paper investigates the issue of an adequate loss function in the optimization of machine learning models used in the forecasting of financial time series for the purpose of algorithmic investment strategies (AIS) construction. We propose the Mean Absolute Directional Loss (MADL) function, solving important problems of classical forecast error functions in extracting information from forecasts to create efficient buy/sell signals in algorithmic investment strategies. Finally, based on the data from two different asset classes (cryptocurrencies: Bitcoin and commodities: Crude Oil), we show that the new loss function enables us to select better hyperparameters for the LSTM model and obtain more efficient investment strategies, with regard to risk-adjusted return metrics on the out-of-sample data.
Dollar-Cost Averaging (DCA) is a widely used technique to mitigate volatility in long-term investments of appreciating assets. However, the inefficiency of DCA arises from fixing the investment amount regardless of market conditions. In this paper, we present a more efficient approach that we name SmartDCA, which consists in adjusting asset purchases based on price levels. The simplicity of SmartDCA allows for rigorous mathematical analysis, enabling us to establish its superiority through the application of Cauchy-Schwartz inequality and Lehmer means. We further extend our analysis to what we refer to as $ρ$-SmartDCA, where the invested amount is raised to the power of $ρ$. We demonstrate that higher values of $ρ$ lead to enhanced performance. However, this approach may result in unbounded investments. To address this concern, we introduce a bounded version of SmartDCA, taking advantage of two novel mean definitions that we name quasi-Lehmer means. The bounded SmartDCA is specifically designed to retain its superiority to DCA. To support our claims, we provide rigorous mathematical proofs and conduct numerical analyses across various scenarios. The performance gain of different SmartDCA alternatives is compared against DCA using data from S\&P500 and Bitcoin. The results consistently demonstrate that all SmartDCA variations yield higher long-term investment returns compared to DCA.
Financial portfolio management describes the task of distributing funds and conducting trading operations on a set of financial assets, such as stocks, index funds, foreign exchange or cryptocurrencies, aiming to maximize the profit while minimizing the loss incurred by said operations. Deep Learning (DL) methods have been consistently excelling at various tasks and automated financial trading is one of the most complex one of those. This paper aims to provide insight into various DL methods for financial trading, under both the supervised and reinforcement learning schemes. At the same time, taking into consideration sentiment information regarding the traded assets, we discuss and demonstrate their usefulness through corresponding research studies. Finally, we discuss commonly found problems in training such financial agents and equip the reader with the necessary knowledge to avoid these problems and apply the discussed methods in practice.
On-chain data (metrics) of blockchain networks, akin to company fundamentals, provide crucial and comprehensive insights into the networks. Despite their informative nature, on-chain data have not been utilized in reinforcement learning (RL)-based systems for cryptocurrency (crypto) portfolio management (PM). An intriguing subject is the extent to which the utilization of on-chain data can enhance an RL-based system's return performance compared to baselines. Therefore, in this study, we propose CryptoRLPM, a novel RL-based system incorporating on-chain data for end-to-end crypto PM. CryptoRLPM consists of five units, spanning from information comprehension to trading order execution. In CryptoRLPM, the on-chain data are tested and specified for each crypto to solve the issue of ineffectiveness of metrics. Moreover, the scalable nature of CryptoRLPM allows changes in the portfolios' cryptos at any time. Backtesting results on three portfolios indicate that CryptoRLPM outperforms all the baselines in terms of accumulated rate of return (ARR), daily rate of return (DRR), and Sortino ratio (SR). Particularly, when compared to Bitcoin, CryptoRLPM enhances the ARR, DRR, and SR by at least 83.14%, 0.5603%, and 2.1767 respectively.
Jason Milionis, Ciamac C. Moallemi, Tim Roughgarden
We consider the impact of trading fees on the profits of arbitrageurs trading against an automated market maker (AMM) or, equivalently, on the adverse selection incurred by liquidity providers (LPs) due to arbitrage. We extend the model of Milionis et al. [2022] for a general class of two asset AMMs to introduce both fees and discrete Poisson block generation times. In our setting, we are able to compute the expected instantaneous rate of arbitrage profit in closed form. When the fees are low, in the fast block asymptotic regime, the impact of fees takes a particularly simple form: fees simply scale down arbitrage profits by the fraction of blocks which present profitable trading opportunities to arbitrageurs. This fraction decreases with an increasing block rate, hence our model yields an important practical insight: faster blockchains will result in reduced LP losses. Further introducing gas fees (fixed costs) in our model, we show that, in the fast block asymptotic regime, lower gas fees lead to smaller losses for LPs.
A cryptocurrency is a digital asset maintained by a decentralised system using cryptography. Investors in this emerging digital market are exploring the profitability potential of portfolios in place of single coins. Portfolios are particularly useful given that price forecasting in such a volatile market is challenging. The crypto market is a self-organised complex system where the complex inter-dependencies between the cryptocurrencies may be exploited to understand the market dynamics and build efficient portfolios. In this letter, we use network methods to identify highly decorrelated cryptocurrencies to create diversified portfolios using the Markowitz Portfolio Theory agnostic to future market behaviour. The performance of our network-based portfolios is optimal with 46 coins and superior to benchmarks up to an investment horizon of 14 days, reaching up to 1,066% average expected return within 1 day, with reasonable associated risks. We also show that popular cryptocurrencies are typically not included in the optimal portfolios. Past price correlations reduce risk and may improve the performance of crypto portfolios in comparison to methodologies based exclusively on price auto-correlations. Short-term crypto investments may be competitive to traditional high-risk investments such as the stock market or commodity market but call for caution given the high variability of prices.
The primary innovation we pioneer -- focused on blockchain information security -- is called the Safe-House. The Safe-House is badly needed since there are many ongoing hacks and security concerns in the DeFi space right now. The Safe-House is a piece of engineering sophistication that utilizes existing blockchain principles to bring about greater security when customer assets are moved around. The Safe-House logic is easily implemented as smart contracts on any decentralized system. The amount of funds at risk from both internal and external parties -- and hence the maximum one time loss -- is guaranteed to stay within the specified limits based on cryptographic fundamentals. To improve the safety of the Safe-House even further, we adapt the one time password (OPT) concept to operate using blockchain technology. Well suited to blockchain cryptographic nuances, our secondary advancement can be termed the one time next time password (OTNTP) mechanism. The OTNTP is designed to complement the Safe-House making it even more safe. We provide a detailed threat assessment model -- discussing the risks faced by DeFi protocols and the specific risks that apply to blockchain fund management -- and give technical arguments regarding how these threats can be overcome in a robust manner. We discuss how the Safe-House can participate with other external yield generation protocols in a secure way. We provide reasons for why the Safe-House increases safety without sacrificing the efficiency of operation. We start with a high level intuitive description of the landscape, the corresponding problems and our solutions. We then supplement this overview with detailed discussions including the corresponding mathematical formulations and pointers for technological implementation. This approach ensures that the article is accessible to a broad audience.
With the increasing enrichment and development of the financial derivatives market, the frequency of transactions is also faster and faster. Due to human limitations, algorithms and automatic trading have recently become the focus of discussion. In this paper, we propose a bidirectional LSTM neural network based on an attention mechanism, which is based on two popular assets, gold and bitcoin. In terms of Feature Engineering, on the one hand, we add traditional technical factors, and at the same time, we combine time series models to develop factors. In the selection of model parameters, we finally chose a two-layer deep learning network. According to AUC measurement, the accuracy of bitcoin and gold is 71.94% and 73.03% respectively. Using the forecast results, we achieved a return of 1089.34% in two years. At the same time, we also compare the attention Bi-LSTM model proposed in this paper with the traditional model, and the results show that our model has the best performance in this data set. Finally, we discuss the significance of the model and the experimental results, as well as the possible improvement direction in the future.
Investments in cryptocurrencies (CCs) remain risky due to high volatility. Exchange Traded Funds (ETFs) are a suitable tool to diversify risk and to benefit from the growth of the whole CC sector. We construct an ETF on the CRIX, the CRyptocurrency IndeX that maps the non-stationary CC dynamics closely by adapting its constituents weights dynamically. The scenario analysis considers the fee schedules of regulated CC exchanges, spreads obtained from high-frequency order book data, and models capital deposits to the ETF stochastically. The analysis yields valuable insights into the mechanisms, costs and risks of this new financial product: i) although the composition of the CRIX ETF changes frequently (from 5 to 30 constituents), it remains robust in its core, as the weights of Bitcoin (BTC) and Ethereum (ETH) are robust over time, ii) on average, a portion of 5.2% needed to be rebalanced at the rebalancing dates, iii) trading costs are low compared to traditional assets, iv) the liquidity of the CC sector has increased significantly during the analysis period, spreads occur especially for altcoins and increase by the size of the transactions. But since BTC and ETH are most affected by rebalancing, the cost of spreads remains limited.
This research mainly explores the characteristics of different strategies and whether VIX INDEX positively influences the investment portfolio in any period. Our portfolio has six significant cryptocurrencies, VIX INDEX and gold. We perform parameter estimation on all raw data and bring the two types into different investment strategies, complete them effectively according to other characteristics, and compare the results. At the same time, we make two different portfolios, one contains VIX INDEX, and one does not have VIX INDEX. We use different portfolios in different portfolio strategies and find that VIX INDEX can positively impact the investment portfolio of cryptocurrencies, no matter in the standard market or the downward market. The research shows that gold has the same attributes as VIX INDEX and should have a specific positive effect, but no comparative experiment has been done.
Yield farming represents an immensely popular asset management activity in decentralized finance (DeFi). It involves supplying, borrowing, or staking crypto assets to earn an income in forms of transaction fees, interest, or participation rewards at different DeFi marketplaces. In this systematic survey, we present yield farming protocols as an aggregation-layer constituent of the wider DeFi ecosystem that interact with primitive-layer protocols such as decentralized exchanges (DEXs) and loanable funds (PLFs) protocol for loanable funds (PLF). We examine the yield farming mechanism by first studying the operations encoded in the yield farming smart contracts, and then performing stylized, parameterized simulations on various yield farming strategies. We conduct a thorough literature review on related work, and establish a framework for yield farming protocols that takes into account pool structure, accepted token types, and implemented strategies. Using our framework, we characterize major yield aggregators in the market including Yearn Finance, Beefy, and Badger DAO. Moreover, we discuss anecdotal attacks against yield aggregators and generalize a number of risks associated with yield farming.
Cryptocurrency markets have attracted many interest for global investors because of their novelty, wide on-line availability, increasing capitalization, and potential profits. In the econophysics tradition, we show that many of the most available cryptocurrencies have return statistics that do not follow Gaussian distributions, instead following heavy-tailed distributions. Entropy measures are applied, showing that portfolio diversification is a reasonable practice for decreasing return uncertainty.
On the blockchain, NFT games have risen in popularity, spawning new types of digital assets. We present a simplified version of well-known NFT games, followed by a discussion of issues influencing the structure and stability of generic games. Where applicable, ideas from quantitative finance are incorporated, suggesting various design constraints. Following that, we explain three distinct methods for extracting value from NFT games. The first is to utilise NFT tokens as collateral outside of the game's walled garden; the second is to construct mutual beneficial games based on the participants' risk tolerance, and the third is to use Siegel's paradox in the case of multiple numeraires.
Cross-sectional strategies are a classical and popular trading style, with recent high performing variants incorporating sophisticated neural architectures. While these strategies have been applied successfully to data-rich settings involving mature assets with long histories, deploying them on instruments with limited samples generally produce over-fitted models with degraded performance. In this paper, we introduce Fused Encoder Networks -- a novel and hybrid parameter-sharing transfer ranking model. The model fuses information extracted using an encoder-attention module operated on a source dataset with a similar but separate module focused on a smaller target dataset of interest. This mitigates the issue of models with poor generalisability that are a consequence of training on scarce target data. Additionally, the self-attention mechanism enables interactions among instruments to be accounted for, not just at the loss level during model training, but also at inference time. Focusing on momentum applied to the top ten cryptocurrencies by market capitalisation as a demonstrative use-case, the Fused Encoder Networks outperforms the reference benchmarks on most performance measures, delivering a three-fold boost in the Sharpe ratio over classical momentum as well as an improvement of approximately 50% against the best benchmark model without transaction costs. It continues outperforming baselines even after accounting for the high transaction costs associated with trading cryptocurrencies.