tradingview-webhooks-bot
a framework π for trading with tradingview webhooks!
System Structure
μ μ₯μλ³ μ λ΅/μ€ν 쑰건 νμΈ νμ
μ£Όλ¬Έ μ€νμ μ¬μ©μκ° λ³λ ν΅ν©/μ€μ
Editor Summaryμ μ₯μ μ€λͺ κ³Ό κ³΅κ° λ©νλ°μ΄ν° κΈ°μ€μΌλ‘ Python κΈ°λ° κ΅¬ν, μνΈνν κ±°λ λ΄, κ±°λμ API/νλ μμν¬, TradingView μΉν μ±κ²©μ νλ‘μ νΈλ‘ νμ νμ΅λλ€. νμΈ κ·Όκ±°λ README, μ μ₯μ ν ν½, μ μ₯μ μ€λͺ , GitHub μ§ν, νμ΄νλΌμΈ νλμ΄λ©°, μ£Όμ λ°μ΄ν°λ ccxt μ§μ κ±°λμ, κ°κ²©/κ±°λλ λ°μ΄ν°μ λλ€. μ λ΅/μ€ν 쑰건μ μ μ₯μλ³ λ¬Έμμ μ½λ νμΈμ΄ νμνλ©°, μ€ν λ°©μμ "μ£Όλ¬Έ μ€νμ μ¬μ©μκ° λ³λ ν΅ν©/μ€μ "λΌκ³ 보μμ μΌλ‘ κΈ°λ‘νμ΅λλ€. GitHub μ§νλ λ³ 764κ°, ν¬ν¬ 211κ°μ λλ€.
| Repository | robswc/tradingview-webhooks-bot |
|---|---|
| Creator | robswc |
| Stars / Forks | β 764 / 211 |
| License | GPL-3.0 |
| Last Updated | 2024-02-29 |
| Snapshot Date | 2026-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

π 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!
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