Skip to content

Sample code to hedge atlantic straddles against Bybit

Notifications You must be signed in to change notification settings

unclecharliecrypto/straddles-hedge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sample code to hedge atlantic straddles against Bybit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%