SystemSelf reportedCryptoPythonalertsbotcryptocurrencydiscordflask

tradingview-webhooks-bot

a framework πŸ— for trading with tradingview webhooks!

System Structure

Data Used
ccxt 지원 κ±°λž˜μ†Œκ°€κ²©/κ±°λž˜λŸ‰ 데이터
Rules / Strategy

μ €μž₯μ†Œλ³„ μ „λž΅/μ‹€ν–‰ 쑰건 확인 ν•„μš”

Execution

μ£Όλ¬Έ 싀행은 μ‚¬μš©μžκ°€ 별도 톡합/μ„€μ •

Editor Summary

μ €μž₯μ†Œ μ„€λͺ…κ³Ό 곡개 메타데이터 κΈ°μ€€μœΌλ‘œ Python 기반 κ΅¬ν˜„, μ•”ν˜Έν™”ν 거래 봇, κ±°λž˜μ†Œ API/ν”„λ ˆμž„μ›Œν¬, TradingView μ›Ήν›… μ„±κ²©μ˜ ν”„λ‘œμ νŠΈλ‘œ νŒŒμ•…ν–ˆμŠ΅λ‹ˆλ‹€. 확인 κ·Όκ±°λŠ” README, μ €μž₯μ†Œ ν† ν”½, μ €μž₯μ†Œ μ„€λͺ…, GitHub μ§€ν‘œ, νŒŒμ΄ν”„λΌμΈ ν•„λ“œμ΄λ©°, μ£Όμš” λ°μ΄ν„°λŠ” ccxt 지원 κ±°λž˜μ†Œ, 가격/κ±°λž˜λŸ‰ λ°μ΄ν„°μž…λ‹ˆλ‹€. μ „λž΅/μ‹€ν–‰ 쑰건은 μ €μž₯μ†Œλ³„ λ¬Έμ„œμ™€ μ½”λ“œ 확인이 ν•„μš”ν•˜λ©°, μ‹€ν–‰ 방식은 "μ£Όλ¬Έ 싀행은 μ‚¬μš©μžκ°€ 별도 톡합/μ„€μ •"라고 보수적으둜 κΈ°λ‘ν–ˆμŠ΅λ‹ˆλ‹€. GitHub μ§€ν‘œλŠ” 별 764개, 포크 211κ°œμž…λ‹ˆλ‹€.

Repositoryrobswc/tradingview-webhooks-bot
Creatorrobswc
Stars / Forksβ˜… 764 / 211
LicenseGPL-3.0
Last Updated2024-02-29
Snapshot Date2026-07-08 (README below is a copy from this date)

This is third-party open-source code. QuantField does not guarantee its behavior or safety. Review the code before installing or running it.

README

demopic

tvwb_demo.webm

πŸ“€ Live Demo πŸ–₯

There's now a live demo available at http://tvwb.robswc.me.
Feel free to check it out or send it some webhooks!

DigitalOcean Referral Badge

Get Support on Discord

The What πŸ”¬

Tradingview-webhooks-bot (TVWB) is a small, Python-based framework that allows you to extend or implement your own logic using data from Tradingview's webhooks. TVWB is not a trading library, it's a framework for building your own trading logic.

The How πŸ—

TVWB is fundamentally a set of components with a webapp serving as the GUI. TVWB was built with event-driven architecture in mind that provides you with the building blocks to extend or implement your own custom logic. TVWB uses Flask to handle the webhooks and provides you with a simple API to interact with the data.

Quickstart πŸ“˜

Docker compose command

docker-compose run app start

Installation

Hosting


Ensure you're in the src directory. When running the following commands, if you installed manually.
If you used docker, start the tvwb.py shell with docker-compose run app shell (in the project root directory) and omit the python3 tvwb.py portion of the commands.


Creating an action

python3 tvwb.py action:create NewAction --register

This creates an action and automatically registers it with the app. Learn more on registering here.

Note, action and event names should always be in PascalCase.

You can also check out some "pre-made" community actions!

Linking an action to an event

python3 tvwb.py action:link NewAction WebhookReceived

This links an action to the WebhookReceived event. The WebhookReceived event is fired when a webhook is received by the app and is currently the only default event.

Editing an action

Navigate to src/components/actions/NewAction.py and edit the run method. You will see something similar to the following code. Feel free to delet