ltrgoddard / ethbtc

Script for trading ETH/BTC on the FTX exchange

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ethbtc

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).

Prerequisites

Install Deno and fill in the example .env file with your FTX API credentials.

Buying or selling ETH/BTC

After the 'trade' keyword, provide a side of the market to take and a dollar value.

./ethbtc trade buy 10 ./ethbtc trade sell 10

Rebalancing portfolio

This keyword automatically rebalances your portfolio between ETHBULL and BEAR, equalising their dollar value.

./ethbtc balance

About

Script for trading ETH/BTC on the FTX exchange


Languages

Language:TypeScript 99.0%Language:Shell 1.0%