Showing posts with label hedge. Show all posts
Showing posts with label hedge. Show all posts

Tuesday, October 17, 2023

"Is ETH going up?"

"Is $ETH going up?"

Here's a question I don't care about, ... nor should you.

I place a 10xLONG on 0.5 $ETH on @Levana_protocol, expecting it'll go up.



Here's the thing: I already have a 10xSHORT on 0.5 $ETH, ... in case it goes down, hedging the LONG.

So:

  • if $ETH goes up, I make money, closing the long.

but:

  • if $ETH goes down, I make money, closing the short.

... "Is $ETH going up?"

I don't care. Either way: I make money.

Set up your trades this way, fam, to put a Big W on the boards, either way.

love, geophf

Saturday, April 29, 2023

Fifth Element: Ghost stable arb with hedge

Okay, what's The Problem™️ with my @TeamKujira Ghost-borrow-arbs up to this point?

They're basically shorts, right? You borrow, then straightaway, sell them to arb.

What happens if the markets sky during your arb?

You're eff'd.

I don't like being eff'd, personally. 🥺🙄

... "They're basically shorts."

Hold that thought.

Pigeonhole it, but hold that thought for now.

(Yes, another ANOTHER HOWTO is forthcoming)
(Yes, my mind never stops. Yours?)

Hedging the borrow with a long


So: short. That's one theme to explore.

If the borrow-then-sell an asset is equivalent to a short, then the way to hedge against a sudden market surge (that happens to me on too many arbs, I'm piqued to say), is to open a corresponding long at the same time as the borrow. VOILÀ!

Let's start a working example to illustrate, and make money, because: no dur.

I consult ./vern (my main man: ./vern) who says there's a nice arb on $LUNA.


  • LUNA,axlUSDC,OSMO,ATOM,KUJI,LUNA

So, before I borrow $LUNA, I place a 2.2xLONG on 50 $LUNA on the FIN LUNA/USK board.


THEN I borrow 50 $LUNA from Ghost.


With the 2.2xLONG in place, if $LUNA skies, I make out like bandits by closing the long, and paying back the borrow with the profits.

If $LUNA DOESN't sky, then my arb goes through, and I pay off the borrow from the arb.

I'm covered, then, either way.

The point of all the above is to protect yourself from (sudden) market movements.

How do we do this?

A borrow (from Ghost)-then-sell is equivalent to a short; you hedge a short with a long.

That's one approach (hedge short with a long).

There's an entirely different approach.

I eventually do close this arb from a big spike on the KUJI/LUNA board.

Playing both sides

Here's the entirely different approach.

Play both sides of an order book. That way, if the markets go up, or if the markets go down, your arb works, either way.

"Which order book? and how?" you ask.

Fair questions.

The answer is "which asset can you both sell and buy on FIN that you can borrow from Ghost?"

It's a bit 'magical,' but if you consider $axlUSDC and $USK to represent the same thing: a stable coin, you can borrow both from Ghost, and they conveniently marry up on FIN axlUSDC/USK.




The 'magic' of this approach is this: whichever way the markets go, you win.

  • If the markets go up, your sell-order hits, creating $USK
  • If the markets go down, your buy-order hits, creating $axlUSDC

Okay, so, whichever way the markets go, an order hits.

So what?

That's half the story. So, say, the ratio goes up, and you get $USK from your sell order.

You place that $USK in the buy-range, wait for a ratio-fall, then, ch-CHING! you now have more $USK than you borrowed! YAY!

Those of you with experience doing the axlUSDC/USK-arb will immediately see a problem

  1. you have a buy- and sell-order
  2. the sell-order hits, you claim that, and place a buy-order

You now how 2 buy orders: you're dependent on the markets again.

Problem: not solved. 😢

In practice this problem is easy to (re)solve.

In the above scenario, you have 2 buy orders, so, place another sell-order.

Market balanced: restored.

"But what if the markets keep going up ... forever?"

This is a problem? Really? Say that out loud like it's a problem.

I'll wait.

Again: in practice, this doesn't happen. Yes, it's a risk, and you're left holding the bag, right?

Nope.

Why?

The neat thing about unfilled orders?

You can always cancel them, and get your money back.

You don't have to have 35,962 orders placed on the axlUSDC/USK book. You can cancel the WAY out of range orders and repay your borrows.

With this out in your back pocket, ... wow.

Just wow, folks.

This means:

  1. you get to borrow money at a really low rate (1%-6% rn)
  2. you get to make money with borrowed money, that is: OTHER PEOPLE's MONEY! 😱
  3. you get to back out any time you feel the heat's too hot.

Risks

So, but with the axlUSDC/USK-arb, borrowing from Ghost, you're not going to get rich quick(ly).

I can borrow 50 $LUNA and make 5 $LUNA in one arb. I did that today.

axlUSDC/USK happens at the rate of, say, $1 gained from two trades of $100.

It's slower, but less risky.

Also, borrowing stables can be expensive, up to 6% borrow rate (annualized), whereas borrowing a volatile coin, such as $LUNA, the borrow rate is usually only 1%.

So you have to watch your borrow rates when borrowing stables.

Just do it!


"So, geophf, given these risks, are you going for the Ghost-borrow stable-arb?"

You betcha. Not only: 'you betcha,' but: you betcha in a big way.

I've set this arb in motion tonight, and, given I prove this out, this is going to be a standard investment tool I go to.

The. End.

Postlude


The markets DID go in a direction (huh! amazing! the markets move. FANCY THAT, HEDDA!), the ratio going up, so I claimed the sell-order and now have 2 buy-orders.

So, I borrowed more $axlUSDC against $KUJI (that I bought with $axlUSDC, hehehe) 


and placed a sell-order.


The balanced-approach is restored. Once again I'm market-neutral: if the ratio goes up, I make money on the sell-order, if the ratio goes down, I make money on the buy-orders.

Either way, I win.

If the markets stay in one direction, I can alway cancel orders and repay borrow.

Case in point


Markets go up; markets go down.

This time, the ratio dipped, filling a buy-order, 


...so my buy-sell orders just magically rebalance when I take this buy order and immediately place it back on the axlUSDC/USK board as a sell-order.

When the sell-order I just placed (PT) fills, I'll take that $USK and close the borrow, AND have some left over: that's the arb, that's the gain, and it's all from OTHER PEOPLE's MONEY!

Suh-WEET! 🎉

I'll report that out when that occurs.

... some time later

HA! The opposite happened: the BUY order filled, completing an $axlUSDC borrow against $KUJI (one of them)!


SO!

  • I collect the order
  • I repay the borrow


  • I lend the remainder (smol tho' it be) to Ghost


  • I ...

... well, I get on with my life. 😊


ROI: 1%, annualized to 847% APY

Raison d'être


Two things to the 'why' I do the above.

  1. Why do I repay the borrow, if I'm just going to borrow the same amount and do the same thing, all over again?

Two reasons:

  1. It brings that borrow to closure
  2. It resets any borrowed interest

  1. Why do I lend that minuscule amount of $axlUSDC to Ghost?

I'm treating Ghost as my bag-repository, so the bags I accumulate go to Ghost lend, growing over time as x-tokens (when all the markets open). 


I deposit that smol amount of $axlUSDC to show my bag growing over time.

Sunday, February 12, 2023

Revising stLUNA on Demex

SO! 🚨🚨🚨

@demexchange has raised the $stLUNA supply-cap by a factor of TEN! 


Which means you can now supply $stLUNA (minted on @stride_zone) at a paltry 2%, BUT incentivized to ~60% APY $STRD

I do just that.

  • I bridge from @stride_zone 


  • I supply $stLUNA


  • I smile, hugely! 😊

Now I have a wee bit o' $LUNA remaining. WAT DO?


I bridge that $LUNA back to Terra. 

But I see I have a lot more $LUNA on @TeamKujira blockchain, so:

  • I bridge half to Terra


  • the other half I leave on @TeamKujira for LUNA-arbitrage.

What am I going to do with all this $LUNA?

What I do is swap 7/8th of the $LUNA to $stLUNA on @stride_zone. 


Why 7/8th of it? I'll use 1/8 of the $stLUNA and $LUNA as hedge as per http://logicalgraphs.blogspot.com/2023/01/looped-liquid-staking-danger-and.html

"BUT, el geophf!" you cry. "YOU'RE NOT LOOPING THE $stLUNA! YOU DON'T NEED TO HEDGE!"

You are 💯 correct!

However, the caveat is I am not looping $stLUNA, ... YET!

So, when $LUNA to borrow does become available, my hedge is already there. A little proactive move on my part.

  • I bridge over the $stLUNA from @stride_zone 


  • I bridge over the $LUNA from Terra


Then: 

  • I provide liquidity to the stLUNA-LUNA LP on @demexchange 


  • I supply the remaining $stLUNA to the @demexchange money market.

At the completion of this evolution, my @beleggings_tip positions are as follows.



Hm. Paying 300%+ interest on a 10 $LUNA borrow isn't my cup-o'-joe. Let's close that borrow.



  • I transfer the $LUNA to @demexchange 


  • I repay the $LUNA-loan.


My new positions are thus:




Thursday, February 9, 2023

Looping rATOM on Demex from StaFiHub

OKAY! ONCE MORE! WITH FEELzSZORXEN!

@demexchange Nitro, but this time with $rATOM, so, we'll also be roping in a new blockchain: @StaFiHub_ !


Why?

We'll get to that.

OFT! we go, into the wild blue yonder! 🚀

To LOOP $rATOM, we have to GET $rATOM, ... but before we have THAT conversation, we need to get the protocol token, $FIS, to pay for gas.

We can do that by swapping $ATOM on COSMOS to $FIS on @StaFiHub_ on their Fee Station.


The mint max is 20 $FIS, so I mint 10 $FIS.

Now I can mint $rATOM.

How this is done? Have $ATOM available on COSMOS. 

  • Select Stake Atom from the rAssets page on @StaFiHub_ 


And BOOM! you now have $rATOM.

It takes you to the dashboard page after your $rATOM is minted, 


...and you can see all your assets in the rAssets page.


Now we have $rATOM, ... on @StaFiHub_. How do we get that $rATOM to @demexchange?

Actually, that's pretty easy to do. You go to the "Balances" section of your account, select "deposit" for the $rATOM asset, and you're in business! 


(trans: $rATOM is bridged to @demexchange)

Let's supply some $rATOM, and here we see WHY we want to supply $rATOM.

If you look at the $rATOM row on the @demexchange money market, you see they've incentivized $rATOM supply with $FIS, yielding at 188% APY.




OKAY, THEN! 

So, I supply $rATOM. 





How much $rATOM can I borrow?

There's a trick to it, but this is a weakness on the @demexchange money market: it doesn't tell you what the max cap is (it should) nor what the collateralization ratio is (it should)


Dear @demexchange, would you please add these indicators? Thanks

The trick is to select "Details" for the asset you'd like to borrow against. 


It opens a page that has, ... well: the details of that asset, including market cap and, importantly, LTV ('loan-to-value'). There's your borrow ratio. 


For $rATOM, it's 50%, with liquidation at 55%.

Now, you see I supplied 6 $rATOM. The LTV is 50%, so I borrow 3 $ATOM. 



That's on the conservative side (... too conservative?), but I like to play it safe and smol when I'm starting an adventure on a new protocol.

So, I have 1.something $rATOM that I didn't supply and 3 borrowed $ATOM. Now I hedge. Why?


The way I hedge is to have an equivalently-...ish-valued LP in the wings, the s- (in this case r-) token - token LP.

I create the rATOM-ATOM LP.



Now I have my rATOM-ATOM LP as hedge to my supplied $rATOM and borrowed $ATOM: I'm in business.



I'm supposed to loop now, but the LTVs are super-conservative on @demexchange, so I'll need (a lot) more assets to make looping viable.


This is fine: I'll build my bags, safely! 😊