This simple Deno script makes it easy to trade ETH/BTC using the FTX leveraged tokens ETHBULL (3x long ETH) and BEAR (3x short BTC).
Install Deno and fill in the example .env
file with your FTX API credentials.
After the 'trade' keyword, provide a side of the market to take and a dollar value.
./ethbtc trade buy 10
./ethbtc trade sell 10
This keyword automatically rebalances your portfolio between ETHBULL and BEAR, equalising their dollar value.
./ethbtc balance