Setting Up Env Vars

The NodeJS App (server.js) uses several environment variables:

PORT=8080
TV_PASSWORD=
BINANCE_TESTNET_API_KEY=
BINANCE_TESTNET_SECRET_KEY=
BINANCE_API_KEY=
BINANCE_SECRET_KEY=
COINBASE_TEST_API_KEY=
COINBASE_TEST_SECRET_KEY=
COINBASE_TEST_PASSPHRASE=
COINBASE_ADV_API_KEY=
COINBASE_ADV_SECRET_KEY=
COINBASE_PRO_API_KEY=
COINBASE_PRO_SECRET_KEY=
COINBASE_PRO_PASSPHRASE=
MY_ADDRESS=
MY_PRIVATE_KEY=
ZEROEX_KEY=
GOOGLE_SHEET_ID=
TG_BOT_TOKEN=
TG_CHAT_ID=

PORT - set to 8080. This is the port the NodeJS App is listening to. Heroku or Google Cloud Run will inject their own port number into process.env.PORT

TV_PASSWORD - the password you set in your Trading View alert. Please use one with high difficulty.

BINANCE_TESTNET_API_KEY & BINANCE_TESTNET_SECRET_KEY - can be acquired from https://testnet.binance.vision/arrow-up-right

COINBASE_ADV_API_KEY & COINBASE_ADV_SECRET_KEY - on Coinbase, there are 2 ways to get API keys. Go to https://www.coinbase.com/settings/apiarrow-up-right to generate the API key (do not generate it through Coinbase Cloud)

  • Page is here: Sign in > Profile (upper right) > My preferences > API (top menu bar)

  • For permissions, do not select "withdraw permissions", as they are not needed and pose the most security risk

  • Copy the "secret" key and store it somewhere safe, as it will not be revealed again

COINBASE_PRO_API_KEY , COINBASE_PRO_SECRET_KEY & COINBASE_PRO_PASSPHRASE - Getting these API keys may follow a different flow than above. In addition, you may also receive a "passphrase".

ZEROEX_KEY - your Matcha Exchange API key from https://dashboard.0x.org/create-accountarrow-up-right

MY_ADDRESS - your EVM address

MY_PRIVATE_KEY - your EVM account private key (leave blank if using HashiCorp Vault + EthSigner)

GOOGLE_SHEET_ID - this is the long random string that appears in the URL when viewing your Google Sheet

TG_BOT_TOKEN - TBA

TG_CHAT_ID - TBA

Last updated