Tree Service
  • 🌳Welcome
    • How to Subscribe
  • 📈Tree Terminal
    • Installation
    • Setup
      • Create Binance API
      • Create Bybit API
      • Create OKX API
    • First-Timer Checklist
    • Features
      • 📈Charts
      • 📰News feed
      • 📋Command line
      • 💸Positions & orders
      • 💰Accounts
      • 💲Symbols
      • 🤖Botting
      • 📕Orderbook
      • 👆Buttons
      • Customization
      • 🔔Notifications
      • Filters
    • Security
    • FAQ
  • 🗃️Websockets
    • API Key
    • Python connection
    • JavaScript connection
    • Response
    • Like/Dislike feature
    • News history
Powered by GitBook
On this page
  • How It Works
  • Guidelines
  • API Endpoints
  • Why Use This Feature?
  1. Websockets

Like/Dislike feature

PreviousResponseNextNews history

Last updated 4 months ago

Tree Terminal allows users to interact with news headlines by sending likes or dislikes. This feature not only helps prioritize important news but also contributes to the community by surfacing valuable insights.

This feature is directly setup on the website

How It Works

  1. Liking News:

    • Users can upvote a piece of news they find important or actionable.

    • First Upvote:

      • Pings all Discord users subscribed to the feed.

    • High-Engagement News:

  2. Disliking News:

    • Dislikes help filter out irrelevant or misleading news from the feed.

Guidelines

  • Only upvote news if you are confident in its relevance and value to the community.

  • Misuse of the feature (e.g., spamming likes or dislikes) may result in the loss of privileges.

API Endpoints

  1. Get Like/Dislike History:

    • Endpoint:

      GET /api/mylikes?api_key=yourApiKey
    • Purpose: Retrieve your like/dislike history.

  2. Like a News Item:

    • Endpoint:

      POST /api/like?id=newsId&api_key=yourApiKey
    • Purpose: Add a like to the specified news item.

  3. Dislike a News Item:

    • Endpoint:

      POST /api/dislike?id=newsId&api_key=yourApiKey
    • Purpose: Add a dislike to the specified news item.

  4. Remove a Like/Dislike:

    • Endpoint:

      POST /api/unlike?id=newsId&api_key=yourApiKey
    • Purpose: Remove your like or dislike from a specific news item.

  5. Stream Live Likes/Dislikes:

    • WebSocket Endpoint:

      WS /ws/likes
    • Purpose: Stream live updates of likes/dislikes directly to your terminal UI.

Why Use This Feature?

  • Community-Driven Insights: Highlight important news for the community.

  • Real-Time Feedback: Help the platform improve by flagging irrelevant or low-quality news.

  • Streamlined Notifications: Ensure valuable news reaches platforms like Discord and Twitter for broader visibility.

By using this feature responsibly, you contribute to a more efficient and effective news trading environment.

If a headline receives enough votes, it will be pushed to the public Twitter account: .

You can interact with this feature programmatically using your unique API Key and the _id of the

🗃️
News of Alpha
news item.
https://news.treeofalpha.com/