You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an opt-in Xquik backend through TWITTER_BACKEND=xquik.
Preserve Tweepy as the default and accept the existing twitter alias.
Read the Xquik API key and connected-account selector from the environment.
Reuse the existing Twitter text cleanup for both publishing backends.
Send a unique Idempotency-Key for every automatic Xquik post.
Document setup and the current create-tweet API reference.
Add focused regression tests for both publishing paths.
Why
The bot already routes TradingView alerts to several destinations, including Twitter through Tweepy. The Xquik backend adds an optional API-key path for connected X accounts without changing existing installations. A unique idempotency key is required by the current Xquik write contract and prevents accidental request replay within an API call.
Validation
Installed the exact requirements.txt on Python 3.9.18
This PR remains active. Current head 2a0d9c4 supersedes the earlier scope and is rebuilt on current master.
The unrelated proxy-trust changes and MCP copy are removed. The focused integration now includes the required unique Idempotency-Key, preserves Tweepy by default, and adds 5 passing tests for configuration, request shape, text cleanup, and both backend routes.
This contribution is still active. Current head 2a0d9c4c is mergeable/clean and includes the opt-in backend, README setup, and 5 focused regression tests. The documented Python 3.9 unit, Black, Flake8, compile, contract, secret-literal, and diff checks pass. Please remove the stale no-activity label when the automation rechecks it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TWITTER_BACKEND=xquik.twitteralias.Idempotency-Keyfor every automatic Xquik post.Why
The bot already routes TradingView alerts to several destinations, including Twitter through Tweepy. The Xquik backend adds an optional API-key path for connected X accounts without changing existing installations. A unique idempotency key is required by the current Xquik write contract and prevents accidental request replay within an API call.
Validation
requirements.txton Python 3.9.18python -m unittest discover -s tests -p 'test_*.py' -v(5 tests)black --check tests/test_handler.pyflake8 --ignore E501 config.py handler.py tests/test_handler.pypython -m py_compile config.py handler.py main.py tests/test_handler.pygit -c core.whitespace=cr-at-eol diff --checkmasterThe current PR is limited to the publishing integration. It does not change webhook proxy trust.