Filters
Last updated
Last updated
The Filters function allows users to customize how specific events or keywords from various sources are processed and displayed within Tree Terminal. By selecting a source WebSocket, defining actions, and applying regex-based filters, users can create tailored responses to match their trading strategies.
Source WebSocket:
Users can select the WebSocket that acts as the input source for their filter.
Any: Applies the filter to all WebSockets.
Sources:
Within a selected WebSocket, users can further specify the exact data source
e.g. Binance, Twitter, Telegram, Blogs, and more.
For Twitter
, we support Any
as a handle as well, to indicate that this filter applies to all incoming tweets from source websocket.
Regex-Based Filtering:
Filters use regex (ECMA flavour) to match patterns in the incoming data.
Tree Terminal's Regex are always case-insensitive (/ /i
)
Examples:
DUMPING
: Matches all data containing the word "DUMPING."
We recommend using chatgpt to assist with regex creation, and specify ECMA
flavour
Actions:
Define what happens when a filter matches incoming data. Multiple actions can be applied.
Supported actions include:
show_feed
: Display the matching content in the feed.
show_search
: Make the match searchable in the terminal.
show_notif
: Trigger a notification.
Supports screen location
top
orbottom
left
or center
or right
E.g. show_notif left-center
pushover
: Send a push notification.
play_sound <sound_name>
: Play specified sound
E.g. play_sound sound3;
pin
: Pin the notification for greater visibility.
highlight
: Highlight the notification for increased visibility.
nothing
: Do nothing.
default
: Have all basic behaviors
They must be segmented by ;
Navigate to Filters:
Open the Filters section in Settings.
Add a New Filter:
Select the WebSocket source
Specify the exact source within the WebSocket if needed (e.g., Twitter)
Add the username if needed
Define the Regex:
Enter a regex pattern to match specific content.
Example:
To have the filter actions apply to every source, simply use .
as the regex
To match news updates about "Added" on Coinbase:
Set Actions:
Choose one or more actions for the matched content.
Example:
show_feed; show_notif; pushover
for high-priority events.
Save and Test:
Save your configuration and monitor the feed to ensure the filter behaves as expected.
Filters in Tree Terminal can be configured to perform specific actions based on matched content. Below are examples of practical use cases:
Use Case 1: Someone Tweets
Scenario: You want to be notified in Discord whenever a specific user tweets.
Filter Configuration:
Source: "Any", Twitter
Regex:
Action:
Outcome: The tweet will be forwarded to your Discord dm.
Important: We did not add default;
and therefore this user will no longer appear on notifications. If you wish to retain it, you should instead do:
Action:
Use Case 2: Trading Activity
Scenario: You want to get notified on large trading activity updates to Discord or a Pushover.
Filter Configuration:
Source: Community
Regex:
Matches updates like "Trading Activity: +2.3M."
Action:
Outcome: High-volume trading activity notifications will be sent to your Discord and Pushover.
Use Case 3: Applying actions to a set of twitter users
Scenario: You want pushovers on a set of twitter users, and want to minimize the number of filters created.
Filter Configuration:
Source: Twitter
Handle: Any
Regex:
Action:
Outcome: Handle 1,2,3 will give a pushover when they tweet.
Have a test twitter account: Add yourself and test if your filters are functioning as expected.
Be Specific: Use precise regex patterns to avoid unnecessary matches or spam.
Update Regularly: Adjust your filters as market conditions and priorities change.
Combine Actions: For critical updates, combine actions like notifications, push alerts, and sound cues.
Sequential logic: Filters are applied from top to bottom, ordering matters.
The Filters feature in Tree Terminal ensures that you only receive relevant, actionable information, tailored to your trading strategy and preferences.