시스템자가 보고크립토Pythonaibinancecryptocurrencynewsprototype

ai-trading-prototype

Free open source crypto AI trading bot prototype.

시스템 구조

활용 데이터
Binance가격/거래량 데이터
규칙 / 전략

저장소별 전략/실행 조건 확인 필요

실행

거래소 API 기반 자동 주문 실행

에디터 요약

저장소 설명과 공개 메타데이터 기준으로 AI/LLM 또는 머신러닝 활용, Python 기반 구현, 암호화폐 거래 봇, 거래소 API/프레임워크 성격의 프로젝트로 파악했습니다. 확인 근거는 README, 저장소 토픽, 저장소 설명, GitHub 지표, 파이프라인 필드이며, 주요 데이터는 Binance, 가격/거래량 데이터입니다. 전략/실행 조건은 저장소별 문서와 코드 확인이 필요하며, 실행 방식은 "거래소 API 기반 자동 주문 실행"라고 보수적으로 기록했습니다. GitHub 지표는 별 145개, 포크 39개입니다.

저장소binance/ai-trading-prototype
제작자binance
스타 / 포크★ 145 / 39
라이선스MIT
최근 업데이트2023-12-30
스냅샷 시점2026-07-08 (아래 README는 이 시점의 사본입니다)

아래는 제3자가 작성·공개한 오픈소스 코드입니다. QuantField는 해당 코드의 동작과 안전성을 보증하지 않으며, 설치·실행 전 코드를 직접 검토하시기 바랍니다.

README

AI Trading Prototype

Python version Code Style License: MIT

This project uses OpenAI to determine the sentiment of cryptocurrency news headlines and subsequently executes orders on the Binance Spot Market.

It is composed of two main components: Sentiment Generator and Trading Bot.

Data Flow Diagram

Disclaimer

This project is for demonstration purposes only and has never been executed on a production site. We do not know whether this project can generate profits and don’t hold any responsibility for any losses that may be incurred. You should NOT use this project in your own trading application.

Features

  • Decoupled Architecture: The two main components can function autonomously on different machines or on the same machine.
  • Sentiment Persistence: The generated sentiments can be either persisted locally or broadcasted over Redis.
  • Redis Publish/Subscribe Messaging Paradigm: The generated sentiments events can be real-time accessed by the Trading Bot or any other subscriber to the same Redis channel.
  • Option to define your variables for the default trading strategy.
  • Trading Bot Dry-run: Configure the Trading Bot with Spot Testnet URL to test without costs.
  • Trading Bot Backtesting: Run a simulation of the trading strategy for historical headlines by using ai-trading-prototype-backtester.
  • News Headlines Retrieval: News headlines to feed Sentiment Generator can be retrieved by using ai-trading-prototype-headlines.

Requirements

Signature Generator:

  • OpenAI API key with enough credit to cover the gpt-3.5-turbo max 4K context usage. The costs depends on the amount of provided headlines and the length of the same.
  • (Optional) If you decide to use Redis, you need to have a running instance of Redis Server.

Trading Bot:

Installation

Clone from GitHub:

git clone git@github.com:binance/ai-trading-prototype.git

Install the required libraries:

cd <path_to_cloned_repository>
pip install -r requirements.txt

Usage

Commands

usage: aitradingprototype [-h] (-sg | -tb) config_file

Free open source AI trading bot prototype

positional arguments:
  config_file           .YAML config file for sentiment_generator or trading_bot process

optional arguments:
  -h, --help            show this help message and exit
  -sg, --sentiment_generator
                        starts the sentiment generator process
  -tb, --trading_bot     starts the trading bot process

Sentiment Generator and Trading Bot

The complete AI Trading is achieved by running two processes simultaneously: One to use the [Sentiment Generator](#sentiment-ge