🛑

Considerations

When Pair-trading, there are a number of factors to consider, including:
  • Choosing which asset to long
  • Choosing which asset to short
  • Selecting the collateral asset
  • Deciding on the degree of leverage
  • Entry level
  • Liquidation levels
  • Fundamental analysis
  • Technical analysis
More advanced factors to consider include:
  • Net funding cost
  • Slippage
  • Correlation between the two assets
  • Z-scores
  • Rebalancing the long and short exposure (beta)
and many others.
Let’s take a look at some of these in more detail. Firstly, with regards to choosing which asset to long and which to short. It should be common sense, you want to long the asset that you think will outperform better, and short the one you think will underperform.
For example, if you believe that $ETH will outperform $LINK , the way to express this is to long $ETH / $LINK as the pair trade.
The chart on the right hand side will automatically populate and show you how this spread/pair has evolved over time:
User’s can easily switch the pair, and be long $LINK / $ETH by clicking on the interchangeability button, rather than have to re-select both assets:
Pear is a permissionless platform, meaning users can select any combination of longs and shorts subject to available liquidity. This is incredibly powerful as the number of permutation scales very quickly with new assets added.
3 underlyings available = 6 possible combinations of pairs to trade
We can generalise this using mathematics:
4 underlyings available = 12 different permutations
20 underlyings available = 380 permutations! 🤯
So clearly, there are a lot of different pairs (pears?) for you to pick from!
Once a user has selected their preferred assets, they need to consider the entry level and whether they consider this a ‘good’ entry. Pear Protocol will never give financial advice and just like how users have permissionless power to choose any combination of assets, they must also exercise discretion as to the whether they think the pair is at an attractive level. In the example above, the $LINK / $ETH chart is the inverse of the downward trending $ETH / $LINK charts.
Spread prices as of 17/10/2023 for reference:
ETH/LINK: 212
LINK/ETH: 0.00472
These levels are calculated from ETH ($1586) and LINK ($7.48) respectively. The prices are a calculation of the spread, there is no direct oracle available for these. For example, for the calculation of ETH/LINK , the full calculation is coming from:
ETHUSDT/LINKUSDT = 1586 / 7.48 = 212
Please note, for ETH/LINK to go from 212 to say 233.2 (+10%), there are a multiple ways this can happen!
For example, ETH could stay flat at 1586, but LINK could move downwards to 6.8. The spread would now go from 212 to 1586/6.8 = 233.2, resulting in a +10% gain for the user (excluding leverage).
Alternatively, ETH could go up to 1800, and LINK could move also move up to 7.72. The spread of the two assets would be 1800/7.72 = 233.2, also resulting in a +10% gain for the user (excluding leverage)
Lastly, ETH could go down to 1500, and LINK could move down to 6.43. The spread of the two assets would be 1500/6.43 = 233.2, also resulting in a +10% gain for the user (excluding leverage).
It’s this dynamic, where you can make money regardless of whether the broader market goes up, down or sideways that makes pair-trading so powerful. The only thing that is important is that you are right on your narrative, i.e. that Asset X will outperform Asset Y. Even better, in the example above, with 10x leverage, the user would have made a +10% * 10 = +100% gain on a pseudo-market neutral trade.
However, given this path dependence, you must choose your leverage carefully. Because we are not in control of the path that the two assets may take to get to a gain, and the pair trade consists of one long perp and one short perp, users must carefully consider avoiding being liquidated on any one of the legs. In the example above where ETH went up to 1800 (and you were long), the gains there offset the losses on the LINK move to 7.72. However, you shorted LINK at 7.48 (LINK went up +3.2%). But if you did this trade with 50x leverage, you would have been liquidated on the short leg.
This is one of the disadvantages of our isolated margin product, which sources liquidity from GMX, since all their positions have isolated margin, meaning collateral from the winning position (the long) cannot be used to post more margin against the losing leg (the short).
We are very conscious of this limitation, and integrations with Vertex and SYMM natively enable cross-margining, meaning users can lever up more comfortably. You can monitor individual liquidation and leverage in the advanced trade features tab.
A quick note on some of the other advanced factors:
  • Net funding cost - a user will likely pay funding on one leg, and receive funding on the other leg. We are working on tooling to analyse this in real time.
  • Slippage - sometimes one asset will have more liquidity than another leg. Users must consider slippage when entering and exiting a trade, especially once you are trading significant size outside of the top 20 cryptocurrencies.
  • Correlation between the two assets - Pair trading has a rich academic history, grounded in statistics. Generally speaking, people look to trade two assets that are closely correlated but where they either expect some deviation between the two assets, or a mean reversion of some sort. Pear is working on tooling to analyse correlation between the offered pairs.
  • Rebalancing the long and short exposure (beta) - Each trade starts off ‘dollar-neutral’ at inception, meaning if you deposit $100 of collateral, and have 10x leverage, then you’ll have total exposure of $1000 (before fees). Of this, $500 will be long exposure, and $500 will be short exposure. As the trade goes in your favour, the collateral value of the long will rise to say $550, whilst the collateral value of the short may fall to say $480 (resulting in a +$50 - $20 = +$30 gain) for the user. At this stage, the user is net long the market ($550 vs $480). To rebalance their ‘beta’, an advanced trader would take some profit on the long leg and add it to the short leg, but for most traders this will not be a consideration and they’ll just look to close both trades outright at the same time. Pear is working on the ability to flexibly choose what % you are long and short at inception (e.g. 60%/40% vs. 50%/50%), as well as the ability to rebalance your trades more easily.