Get Your Own web3 .defi Domains Today!

Daily Defi News from Across the Web

Daily Defi News from Across the Web

How to Trade DeFi Options: Opyn v2 Tutorial | by Wade Prospere | Opyn | Dec, 2020


After Opyn v1 laid the foundation for DeFi options as the first live ERC20 options protocol, Opyn v2 launches the Gamma Protocol and an intuitive options interface. The Gamma Protocol is the most powerful, capital efficient DeFi options protocol. This will be a step by step tutorial on how to trade options with the Opyn v2 interface, followed by an overview of the new features made possible by the Gamma Protocol, and a glossary of important terms.

To trade options with Opyn, users need the following:

  • Metamask — A cryptocurrency wallet which can be used on Chrome, Firefox and Brave browsers. It’s also a browser extension. This serves as the bridge between normal browsers and the Ethereum blockchain, enabling the Opyn v2 app to connect to your wallet.
  • USDC and/or ETH

It’s important to note that this is a step by step guide for the processes in place at v2 launch (12/29/20), and the Opyn team will continue to work on ways to reduce the amount of steps it takes to trade options using the Opyn v2 dashboard. The tutorial will be updated accordingly.

Step 1. Go to Opyn.co

Step 2. Click on the Launch App button in the top right corner.

Step 3. Click on the Connect Wallet button in the top right corner to connect the Opyn app with MetaMask, select your MetaMask account then click connect.

Step 4. Select your preferred Options Series from dropdown in the top left corner of the screen and select the desired Expiry Date from the dropdown menu.

Step 5. Decide your options strategy:

Buy Call

  1. Select your preferred Options Series from the dropdown in the top left corner of the screen and select the desired Expiry Date from the dropdown menu
  2. Select your preferred Strike Price
  3. Scroll down below the options section and enter your position size in the order box
  4. Select the Approve USDC button, and confirm with MetaMask. This step authorizes the Opyn platform to use your USDC for the trade. Note, this action only needs to be taken once
  5. Select the Buy oToken button, and confirm with MetaMask. This step purchases your oToken(s)
  6. Select Done, and confirm your position on your Opyn v2 Dashboard or on Etherscan

Long Call Basics:

With call options, the strike price represents the predetermined price at which a call buyer can buy the underlying asset.

The call buyer has the right to buy ETH at the strike price for a set amount of time. For that right, the call buyer pays a premium. If the price of ETH moves above the strike price, the option will be worth money (it will have intrinsic value). The buyer can exercise the option at expiry in order to receive a cash settlement from the option seller.

Buy Put

  1. Select your preferred Options Series from the dropdown in the top left corner of the screen and select the desired Expiry Date from the dropdown menu
  2. Select your preferred Strike Price
  3. Scroll down below the options section and enter your position size in the order box
  4. Select the Approve USDC button, and confirm with MetaMask. This step authorizes the Opyn platform to use your USDC for the trade. This action only needs to be taken once
  5. Select the Buy oToken button, and confirm with MetaMask. This step purchases your oToken(s)
  6. Select Done, and confirm your position on your Opyn v2 Dashboard or on Etherscan

Long Put Basics:

With put options, the strike price represents the predetermined price at which a put buyer can sell the underlying asset.

The put buyer has the right to sell ETH at the strike price for a set amount of time. For that right, the put buyer pays a premium. If the price of ETH moves below the strike price, the option will be worth money (it will have intrinsic value). Opyn will auto-exercise the option at expiry if it is in the money.

Sell Call

  1. Select your preferred Options Series from the dropdown in the top left corner of the screen and select the desired Expiry Date from the dropdown menu
  2. Select your preferred Strike Price
  3. Scroll down below the options section and enter your position size in the order box
  4. Select the approve WETH Wrapper button, and confirm with MetaMask. This step approves the Opyn platform to wrap your ETH, which will be used as collateral for the trade. This action only needs to be taken once
  5. Select the Issue oToken button, and confirm with MetaMask. This action issues your oTokens for the selected options series
  6. Select the Approve oToken button, and confirm with MetaMask. This action approves the 0xProxy contract to spend your oToken so you can sell it on 0x
  7. Select the Sell oToken button, and confirm with MetaMask. This action sells your minted oToken on 0x
  8. Select Done, and confirm your position on your Opyn v2 Dashboard or on Etherscan

Short Call Basics

In exchange for selling a call option, the call writer receives the premium (the option’s price). Writing call options allows sellers to generate income. It’s important to note that the income from writing a call option is limited to the premium, while a call buyer theoretically has unlimited profit potential.

A short call is a bearish trading strategy, reflecting a bet that the underlying asset of the option will fall in price. With a short call, there is unlimited risk exposure during the length of time the option is viable, so max loss is infinite.

Sell Put

  1. Select your preferred Options Series from the dropdown in the top left corner of the screen and select the desired Expiry Date from the dropdown menu
  2. Select your preferred Strike Price
  3. Scroll down below the options section and enter your position size in the order box
  4. Select the Approve Collateral button, and confirm with MetaMask. This step allows the Opyn platform to approve your collateral for the trade. This action only needs to be taken once
  5. Select the Issue oToken button, and confirm with MetaMask. This action issues oTokens for the selected options series
  6. Select the Approve oToken button, and confirm with MetaMask. This action approves the 0xProxy contract to spend your oToken so you can sell it on 0x
  7. Select the Sell oToken button, and confirm with MetaMask. This action sells your minted oToken on 0x
  8. Select Done, and confirm your position on your Opyn v2 Dashboard or on Etherscan

Short Put Basics:

In exchange for selling the put option, the put writer receives the premium (the option’s price). Writing put options allows sellers to generate income. It’s important to note that the income from writing a put option is limited to the premium, while a put buyer can maximize profit until the asset, e.g. ETH, goes to zero.

Call Debit Spread

  1. Select your preferred Options Series from the dropdown in the top left corner of the screen and select the desired Expiry Date from the dropdown menu
  2. Select your preferred Strike Prices
  3. Scroll down below the options section and enter your position size in the order box
  4. Select the Approve USDC button, and confirm with MetaMask. This step authorizes the Opyn platform to use your USDC for the trade. This action only needs to be taken once
  5. Select the Buy oToken button, and confirm with MetaMask. This step purchases your oTokens
  6. Select the Approve Long oToken button, and confirm with MetaMask. This step approves the long oToken be used in the spread
  7. Select the Create Spread button and confirm with MetaMask. This step places the long oToken into a vault that will be used to collateralize the short oToken
  8. Select the Approve oToken button, and confirm with MetaMask. This action approves the 0xProxy contract to spend your oToken so you can sell it on 0x
  9. Select the Sell oToken button, and confirm with MetaMask. This action sells your minted oToken on 0x
  10. Select Done, and confirm your position on your Opyn v2 Dashboard or on Etherscan

Call Debit Spread Basics:

A Call Debit Spread, also known as a bull call spread, is an option strategy involving the simultaneous buying and selling of options of the same class with different prices, requiring a net outflow of cash. The result is a net debit to the trading account.

The Call Debit Spread reduces the cost of the call option, but it caps the gains in the asset’s price, creating a limited range where the trade can earn a profit. Traders often use a bull call spread if they believe an asset will moderately rise in value. This happens most often during times of high volatility.

The Call Debit Spread involves two call options, resulting in a net debit to the trading account:

  • Buying a call option (long call) for a strike price above the current market with a specific expiration date and pay the premium
  • Simultaneously, selling a call option (short call) at a higher strike price that has the exact same expiration date as the first call option

Call Credit Spread

  1. Select your preferred Options Series from the dropdown in the top left corner of the screen and select the desired Expiry Date from the dropdown menu
  2. Select your preferred Strike Prices
  3. Scroll down below the options section and enter your position size in the order box
  4. Select the Buy oToken button, and confirm with MetaMask. This step purchases your oTokens
  5. Select the Approve USDC button, and confirm with MetaMask. This step authorizes the Opyn platform to use your USDC for the trade. This action only needs to be taken once
  6. Select the Approve Long oToken button, and confirm with MetaMask. This action approves the 0xProxy contract to spend your oToken so you can sell it on 0x
  7. Select the Create Spread button, This step places the long oToken into a vault that will be used to collateralize the short oToken
  8. Select the Approve oToken button, and confirm with MetaMask. This action approves the 0xProxy contract to spend your oToken so you can sell it on 0x
  9. Select the Sell oToken button, and confirm with MetaMask. This action sells your minted oToken on 0x
  10. Select Done, and confirm your position on your Opyn v2 Dashboard or on Etherscan

Call Credit Spread Basics:

A Call Credit Spread, also known as a bear call spread, is a type of options strategy used when an options trader expects a decline in the price of the underlying asset. The call credit spread is achieved by purchasing call options at a specific strike price while also selling the same number of calls with the same expiration date, but at a lower strike price. The maximum profit to be gained using this strategy is equal to the credit received when initiating the trade.

A call credit spread is considered a limited-risk and limited-reward strategy. Traders can contain their losses or realize reduced profits by using this strategy. The limits of profits and losses are determined by the strike prices of the particular call options.

Put Debit Spread

  1. Select your preferred Options Series from the dropdown in the top left corner of the screen and select the desired Expiry Date from the dropdown menu
  2. Select your preferred Strike Prices
  3. Scroll down below the options section and enter your position size in the order box
  4. Select the Buy oToken button, and confirm with MetaMask. This step purchases your oTokens
  5. Select the Approve USDC button, and confirm with MetaMask. This step authorizes the Opyn platform to use your USDC for the trade. This action only needs to be taken once
  6. Select the Approve Long oToken Button, and confirm with MetaMask. This step approves the long oToken be used in the spread
  7. Select the Create Spread button, and confirm with MetaMask. This step places the long oToken into a vault that will be used to collateralize the short oToken
  8. Select the Approve oToken button, and confirm with MetaMask. This action approves the 0xProxy contract to spend your oToken so you can sell it on 0x
  9. Select the Sell oToken button, and confirm with MetaMask. This action sells your minted oToken on 0x
  10. Select Done, and confirm your position on your Opyn v2 Dashboard or on Etherscan

Put Debit Spread Basics:

A Put Debit Spread, also known as a bear put spread, is an options strategy where a trader expects a moderate decline in the price of an asset. A put debit spread is achieved by purchasing put options while also selling the same number of puts on the same asset with the same expiration date at a lower strike price. The result of this trade is a net debit to the Opyn trading account. The sum of all options sold (lower strike price) is lower than the sum of all options purchased (higher strike price), therefore the trader must put up money to begin the trade.

This strategy nets a profit when the price of the underlying security declines. The maximum profit in a put debit spread is equal to the difference between the two strike prices, minus the net cost of the options.

Put Credit Spread

  1. Select your preferred Options Series from the dropdown in the top left corner of the screen and select the desired Expiry Date from the dropdown menu
  2. Select your preferred Strike Prices
  3. Scroll down below the options section and enter your position size in the order box
  4. Select the Approve USDC button, and confirm with MetaMask. This step authorizes the Opyn platform to use your USDC for the trade. This action only needs to be taken once
  5. Select the Buy oToken button, and confirm with MetaMask. This step purchases your oTokens
  6. Select the Approve Long oToken button, and confirm with MetaMask. This step approves the long oToken be used in the spread
  7. Select the Create Spread button, and confirm with MetaMask. This step places the long oToken into a vault that will be used to collateralize the short oToken
  8. Select the Approve oToken button, and confirm with MetaMask. This action approves the 0xProxy contract to spend your oToken so you can sell it on 0x
  9. Select the Sell oToken button, and confirm with MetaMask. This action sells your oTokens on 0x
  10. Select Done, and confirm your position on your Opyn v2 Dashboard or on Etherscan

Put Credit Spread Basics:

A Put Credit Spread, also known as a bull put spread, is an options strategy that a trader uses when they expect a moderate rise in the price of the underlying asset. The put credit spread strategy employs two put options to form a range, consisting of a high strike price and a low strike price. The trader receives a net credit from the difference between the two premiums from the options.

The maximum loss is equal to the difference between the strike prices and the net credit received. The maximum profit, which is the net credit, only occurs if the asset’s price closes above the higher strike price at expiry.

How to reduce or close out your position prior to expiry

To close out or reduce your short position prior to expiry, go to your Opyn Dashboard and do the following:

  • On the Active Positions tab, select the position you would like to reduce or close out
  • Scroll down to the Close Position box, located below the Active Positions section
  • Enter the oToken amount to reduce or fully close out your position, then click “Buy Back” and confirm with MetaMask. This action buys back your minted oTokens from 0x contract
  • Re-enter the same oToken amount in the close position box, then click “Burn and Withdraw” and confirm with MetaMask. This action burns your oTokens and redeems your collateral. This action needs to be taken in order to reduce or close out your position.
  • Confirm the transaction on Etherscan.

To close out or reduce your long position prior to expiry, go to your Opyn Dashboard and do the following:

  • On the Active Positions tab, select the position you would like to reduce or close out
  • Scroll down to the Sell oTokens box, located below the Active Positions section
  • Enter the options amount to sell or fully close out your position, then click “Submit Sell Order” and confirm with MetaMask. This action sells your minted oToken(s) on 0x
  • Confirm the transaction on Etherscan

How does auto-exercise work?

The protocol now has auto-exercise for in the money options, so option holders don’t need to take action before or at expiration. Upon expiry, proceeds for long and short option holders are calculated and can be redeemed at any point after the proceeds have been finalized with a settlement price.

At the time of expiry, Chainlink nodes provide a live ETHUSD price to the Chainlink aggregator. Opyn’s contracts have a short locking period as it takes a short amount of time for the Chainlink oracle price for the expiry time of the options to be available. After the locking period has passed, an oracle price can be submitted. After a price has been submitted, there is a dispute period in which the price can be disputed. If the price is disputed, the disputer can update with a new price. After the dispute period has passed, the settlement value of options are finalized and users can redeem option proceeds or settle their vaults.

The locking period and dispute time periods are different for different assets. Currently WETH-USDC options are available on Opyn v2. For WETH-USDC options, the locking period is 5 minutes and the dispute period is 2 hours. So while the options all expire at 8:00 UTC and are settled with the price of the underlying at 8:00 UTC, users can start to redeem at 10:05 UTC.

How to redeem

To redeem, go to your Opyn Dashboard and do the following:

  • On the Expired Positions tab, select the position you would like to redeem
  • Scroll down to the Redeem Balance / Expired Tokens box, located below the Expired Positions section
  • Select the Redeem / Redeem Payout button, and confirm with MetaMask
  • View closed positions in the closed positions tab or Etherscan

Opyn v2 dramatically improves user experience and creates the most powerful, capital efficient options protocol in DeFi by introducing the following features:

  • Margin improvements (spreads!)
  • European, cash-settled options
  • Auto-exercise for in the money options upon expiry
  • Earn yield (& gov tokens) on collateral
  • Call options without multipliers
  • Operators to allow contracts to act on a user’s behalf
  • Oracle used for option settlement price
  • Flash mints
  • Deterministic option contract addresses, names, symbols
  • Anyone can create new options if the product has been whitelisted

Margin Improvements

Gamma Protocol lays the foundation for more capitally efficient options starting with spreads. Spreads allow long oTokens to collateralize short oTokens, enabling users to post the max loss of a structure as collateral.

European, cash-settled options

Gamma Protocol moves to cash-settled, European options to enable margin improvements by allowing for safe constructions of spreads. European options mean that option holders can exercise options only upon expiry.

Cash settlement means that option holders don’t have to provide the underlying asset in order to exercise. Rather, the options are settled in the collateral asset, and option holders receive a cash payout on exercise (difference in value between strike and underlying asset price in terms of the strike asset) is transferred.

Auto-exercise for In The Money options upon expiry

Gamma Protocol now has auto-exercise for in the money options, so option holders don’t need to take action before or at expiration. Upon expiry, proceeds for long and short option holders are calculated and can be redeemed at any point after the proceeds have been finalized with a settlement price.

Earn yield (& gov tokens) on collateral

Gamma Protocol now allows for yielding assets (eg. cTokens, aTokens, yTokens) to be used as collateral for options, and allows for farmers to harvest earned and airdropped Tokens (eg. COMP with cToken collateral). The first options launched are USDC collateralized, but in the next few months, we will release options with yielding collateral.

Call options without multipliers

Gamma Protocol allows for call options without any multipliers so 1 call option oToken will correspond to 1 unit of the underlying asset (eg. 1 call oToken on 1 ETH will correspond to 1 call option on 1 ETH)

Operators to allow contracts to act on a user’s behalf

Operators are a smart contract feature that allow users to delegate control of their vaults to a third party smart contract. This could be a smart contract that rolls over user options on their behalf, a fund manager to execute trades on behalf of a user, or a vast amount of other interactions that developers can build on top of the protocol.

Oracle used for option settlement price

Cash settlement requires an oracle to determine the payout at expiry. The Gamma Protocol architecture is generalizable to allow for different oracles for different assets.

ETH-USDC options collateralized with USDC are already available at Opyn, and these will use the Chainlink oracle to get the ETH price. There are no liquidations needed as max loss is posted as collateral.

Flash mints

Since vault collateralization is checked at the end of a transaction, it’s possible to mint options without collateral as long as they are burned before the end of the transaction.

Deterministic option contract addresses, names, symbols

Gamma Protocol allows for specific oToken details to determine the address, name and symbols and each oToken. For example, the symbol for a 300 strike WETH put option expiring on December 25th, 2020 would have the following symbol: oWETHUSDC/USDC-25DEC20–300P

Anyone can create new options if the product has been whitelisted

A product is a combination of specifying the underlying asset, strike asset, and collateral asset for an option and whether it’s a call or a put. For any of these whitelisted products, anyone can create a new option, specifying the strike and expiry. Expiration times are currently fixed to 8AM UTC to prevent fragmentation of liquidity across a variety of expirations within the same day.

0x Exchange

Gamma Protocol’s options (oTokens) are ERC20s tokens, so they can be traded on any decentralized exchange that follows the ERC20 standard.

The Opyn interface is using 0x Exchange to trade options (oTokens), enabling users to trade using the 0x Order Book.

  • Put Option — A put option gives the owner/buyer the right to sell an asset, at a specified price, by a predetermined date to the seller of the put option. This means that no matter how low the price of an asset goes, the investor has the right to sell the asset for the agreed upon price
  • Premium — The money paid upfront by the option buyers to the option sellers in return.
  • Option Seller — The person who sells an option in return for a premium and is obligated to perform when the buyer exercises their right under the option contract.
  • Option Buyer — The person who buys an option by paying a premium. This person has right but not obligation to exercise the option.
  • Underlying — The asset that is being protected by the option contract is called the underlying asset. The asset that the owner/buyer of the put option has the right to sell is called the underlying asset.
  • Strike Asset — The asset that the holder/buyer of the put option will receive their payment in if they sell the underlying asset is called the strike asset.
  • Strike Price — The strike price is the specified price at which the buyer/owner of the option can sell the underlying asset.
  • Collateral Asset — The asset that the options seller puts down as collateral is called the collateral asset.
  • Exercise — To exercise means to put into effect the right to sell the underlying asset at the specified price.
  • At The Money — A call or put option is at-the-money when its strike price is the same as the current underlying asset price.
  • In The Money — A call contract is in-the-money when its strike price is less than the current underlying asset price. A put contract is in-the-money when its strike price is greater than the current underlying asset price.
  • Out of The Money — A call option is out-of-the-money when its strike price is greater than the current underlying asset price. A put option is out-of-the-money when its strike price is less than the current underlying asset price.
  • Intrinsic Value — The in-the-money portion (if any) of a call or put contract’s current market price.
  • Extrinsic Value — The portion of an option’s premium (price) that exceeds its intrinsic value, if it is in-the-money. If the option is out-of-the-money, the extrinsic value is equal to the entire premium. Also known as “time value.”
  • Delta (Δ): Sensitivity of an option’s price to the underlying asset price
  • Gamma (Θ): Sensitivity of delta to the underlying asset price
  • Theta (Γ): Sensitivity of an option’s price as time passes
  • Vega (V): Sensitivity of an option’s price to implied volatility
  • Rho (ρ): Sensitivity of an option’s price to interest rates

Security is a top priority for Opyn. Gamma Protocol was audited by OpenZeppelin, formal verification was completed by Certora and the Opyn Bug Bounty has been running for over 4 weeks.

Further security audits will be running in the next few months to ensure there are up-to-date audits with the latest security best practices to identify new technologies that might contain current undiscovered vulnerabilities.

We will continue to share updates as we make improvements to the platform. Feedback is welcome and appreciated!

You can join the conversation here: Twitter | Discord | Medium | Email





Source link

Recommended For You

blank

About the Author: admin

Main Menu

Subscribe for Daily DeFi News