/straddles-hedge

Sample code to hedge atlantic straddles against Bybit

Primary LanguageJavaScript

Atlantic straddles hedge

Sample code to hedge Atlantic straddle write position purchases against Bybit with long puts

Instructions

  1. Create a Bybit account
  2. Generate Bybit API key + secret and add to .env
  3. Get an Arbitrum WSS RPC URL and add to .env - I'd recommend Alchemy
  4. Deposit to Dopex Atlantic Straddles and add your writer address to .env
  5. Run the script

Historical APY

Run the straddles hedge simulation to find out historical APY from writing + hedging Atlantic Straddles

Here are some examples:

APY from Jan 1 2022 to Nov. 20 2022: APY from Jan 1 2022

APY from Jan 1 2021 to Nov. 20 2022: APY from Jan 1 2021

Run

yarn
yarn start