Skip to content

Trader avec ChatGPT

La traduction française de cette page est en cours.

Seamlessly Integrate ChatGPT within your trading strategies and profit from the power of AI trading.

octobot collaborating with chatgpt light

Checkout the ChatGPT trading guide to learn more about how to trade with ChatGPT using OctoBot

OctoBot uses the ChatGPT interface to interact with ChatGPT.

Configuration du service ChatGPT

To use ChatGPT on an open source OctoBot, the only configuration you need is to enter your OpenAI API key into the GPT Interface

  1. Create or login to your OpenAI account
  2. Create a new API key on your account settings
  3. Copy your API key into the GPT configuration in the Accounts tab of the web interface

octobot chatgpt configuration openai key and custom base url

Prédictions avec un LLM personnalisé

OctoBot can connect to any LLM using the LLM custom base url configuration parameter. This is useful to use other AI models than the default OpenAI ones.

In this case, the Secret key parameter, will be used to authenticate to this other LLM server when necessary. It will be ignored otherwise.

Trader avec des prédictions Ollama

To connect to a local Ollama LLM model, configure the LLM custom base url of your OctoBot to your Ollama server address followed by /v1.

Using the default Ollama address (localhost:11434), your LLM custom base url would then be: http://localhost:11434/v1.

Coûts

Using ChatGPT from automated API calls is a paid service from OpenAI. Each call to ChatGPT will consume a few OpenAI tokens.

Each call to ChatGPT is recrating a request which usually consumes around 90 OpenAI tokens. You can get the current price of OpenAI token from the OpenAI pricing page.

You can estimate the cost of using ChatGPT related features by estimating the amount of requests per day.

Running a strategy on 4h for 2 trading pairs on 1 exchange: the GPT evaluator will be called every 4 hours for each trading pair for each exchange.