Skip to content

coinbase/tg-trading-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Trading Bot

This provides a template for Telegram trading bot on Base Mainnet that uses the Coinbase Developer Platform (CDP) SDK and MPC Wallet APIs.

Set Up

  1. Clone this repository:
git clone https://github.com/coinbase/tg-trading-bot.git
  1. Provision a CDP API Key.
  2. Provision a Telegram Bot Token and register your Bot.
  3. Generate a 32-byte encryption key using OpenSSL:
openssl rand -hex 32 # Save the output to use as the encryption key in Step 5.
  1. Set the following environment variables, e.g. in a .env file or in a Secret Manager:
TELEGRAM_BOT_TOKEN="Your Telegram Bot Token"
COINBASE_API_KEY_NAME="Your CDP API Key Name"
COINBASE_API_KEY_SECRET="Your CDP API Key Private Key"
ENCRYPTION_KEY="Your hex-encoded encryption key"
  1. Run the project!
npm install
npm run start

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published