Skip to content
Up To Date Time

Up To Date Time

  • Home
  • Sports
  • cryptocurrency
  • Technology
  • Virtual Reality
  • Education Law
  • More
    • About Us
    • Contact Us
    • Disclaimer
    • Privacy Policy
    • Terms and Conditions
  • Toggle search form
I made an Open Source AI Crypto Trading Bot for your crypto portfolio

I made an Open Source AI Crypto Trading Bot for your crypto portfolio

Posted on January 15, 2025 By rehan.rafique No Comments on I made an Open Source AI Crypto Trading Bot for your crypto portfolio

  • Manage your crypto portfolio and account
  • Plot charts for your for pretty much any coin or asset
  • Support you in researching coins and crypto projects

To build this tool, I used Astro, TypeScript and Javascript, and the tool can easily run on your local machine, and will create a simple UI you can interact with on localhost:3000. The tool is Open Source and available on GitHub.

Main CryptocurrencyGPT Features

Live Market Data

CryptocurrencyGPT has access to live market data. Under the hood it uses the Binance API in order to fetch live information about the current price of any cryptocurrency available on the exchange.

Not only that, but because it has access to historical candlestick data from the Binance API, you can now easily find out what the price of Bitcoin (or any other coin) was on a specific day, without having to check the charts:

Ability to browse the Internet

In addition to access to live market data, CryptocurrencyGPT is also able to browse the Internet and search for recent information that the original model is not aware of. Naturally, this can be used to return any kind of information, not only related to crypto, similar to the GPT in Bing Search.

I personally find it very useful when it comes to summarizing the most recent news in crypto, all in one place. Not to mention that I don’t to open up Edge for that.

Cryptocurrency GPT has access to the Brave Search API in order to return relevant and up to date information, instead of making stuff up.

Can buy and sell cryptocurrency for you

Using the Binance API, it can easily place buy and sell orders on your behalf.

Here’s an example of it placing a Sell market order for $20 of Bitcoin

And then buying $15 worth of Matic, one prompt later.

In addition to placing orders on our behalf, it can also summarise your recent transaction information based on an asset of your choice:

It can plot charts

Naturally, I left the coolest bit of functionality for last. CryptocurrencyGPT uses Tradingview charts in order plot any historical cryptocurrency data on a chart. It sources its own historical data using the Binance API and then plots the chart using the TradingView Lightweight charts Library for plotting market data.

Here’s an example for MATIC

And another one for Bitcoin

Now that you know what it does, you might want to set it up on your machine and play around with it. Here’s how to do that:

How to setup and use Cryptocurrency GPT

CryptocurrencyGPT is open source and available on GitHub.

Once you cloned or downloaded the Repo, there are a few requirements you must install before you can use it:

CryptocurrencyGPT is built using an Astro project that uses node.js and npm so you’ll need to install npm if that’s not installed on your machine.

  • Naturally, you’ll need an OpenAI API Key and Organization ID.
  • You’ll also Need a Brave Search API key
  • Finally, to perform actions on your Binance account you’ll need to provide it with a Binance API key and secret.

Note that in order for the Binance API to work, you need to either whitelist your IP, or disable IP restriction. Remember to also enable Spot Trading, but DO NOT enable withdrawals, for security reasons.

Note that you might want to create a brand new Binance account if you don’t want to experiment on your main account. Use my referral code to get 5% off your trading commission.

Once you have gathered all of these requirements, open the .env.example located in the root directory of the project and add the required keys in the correct variables:

OPENAI_ORG_ID="ORG_ID"
OPENAI_API_KEY="OPENAI_API_KEY"
BRAVE_API_KEY="BRAVE_API_KEY"
BINANCE_API_KEY="BINANCE_API_KEY"
BINANCE_SECRET="BINANCE_SECRET"

Now install the project requirements using npm i.

From here, you should just be able to run npm run dev from your command prompt / terminal and you should be able to access CryptocurrencyGPT at http://localhost:3000

That’s it really! You now have your own AI cryptocurrency assistant.

If you like this project, please remember to give this article plenty of claps, follow me, and maybe share with others, it helps.

Considerations

One key consideration to take into account is that this AI trading bot does not autonomously place trades on your behalf, but rather acts as a natural langauge Interface between you and your exchange and it’s primary purpose is a more natural interaction and portfolio management flow.

Consider the following:

  • Log into trading platform -> Navigate to the Trade page -> Navigate to your desired pair -> Place an order
  • Launch CryptocurrencyGPT -> Ask it to buy Bitcoin

It’s significantly quicker and easier to manage one or multiple portfolios in this manner.

The main limitation however, is that right now, it can only perform single actions. For instance, you can ask the AI crypto trading bot to place a buy order, or a sell order, or to plot a chart for you but you cannot ask it to “Buy you Bitcoin every time price drops by more than 10%”.

This is something that I’m looking to add in a future update of this tool – the ability to build and launch simple crypto trading bots using natural language.

cryptocurrency

Post navigation

Previous Post: ‘PowerWash Simulator VR’ Studio Announces End of Updates Only 14 Months After Launch
Next Post: Indian women’s cricket team thrashes Ireland by biggest margin to whitewash series by 3-0

More Related Articles

Saylor Says Buy Bitcoin With Money You Can’t Afford to Lose as Strategy Buys Another 4,020 BTC Saylor Says Buy Bitcoin With Money You Can’t Afford to Lose as Strategy Buys Another 4,020 BTC cryptocurrency
How to Find Lost Bitcoins and Bitcoin Wallets: The Ultimate Guide How to Find Lost Bitcoins and Bitcoin Wallets: The Ultimate Guide cryptocurrency
Three Crypto Super PACs That You Can Donate to in 2024 Three Crypto Super PACs That You Can Donate to in 2024 cryptocurrency
Doorways away from Olympus Demonstration Gamble Totally free Slot Video game Doorways away from Olympus Demonstration Gamble Totally free Slot Video game cryptocurrency
How crypto donations lower your tax bills How crypto donations lower your tax bills cryptocurrency
Are Bitcoin ATMs A Hidden Threat To Cryptocurrency Security? Are Bitcoin ATMs A Hidden Threat To Cryptocurrency Security? cryptocurrency

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Sister-led social commerce startup Nectar lands $10.6M, reveals more about marketing tech
  • England vs India Test series gets a new name
  • Vietnamese Stop Importing Bitcoin Mining Rigs as Import Ban Looms
  • Apple May Finally Announce Vision Pro VR Controller Support Next Week
  • How to Bring Your Social Media Monetization Strategy to Email

Categories

  • cryptocurrency
  • Education Law
  • Sports
  • Technology
  • Virtual Reality

Copyright © 2025 Up To Date Time.

Powered by PressBook Blog WordPress theme