Send a daily message to a chat

A small bot posts the market mood and the trending assets to Telegram, Slack or Discord every morning.

You need: an API key (opens in a new tab), a chat where a bot may post and a place to run a scheduled script.

  1. Get an API key

    Create a key on the API keys (opens in a new tab) page and keep it in an environment variable, not in your code. Each request uses credits.

    The API keys page
  2. Read the index and the trending list

    In your script call get_market_index and get_trending.

    A Python example of a request to the API
  3. Build one short message

    Write one message: the index value, the change over a day and the top three assets. Add a link to the Sentiment index (opens in a new tab).

  4. Schedule it

    Run the script every morning with a scheduler, after the index for the previous day is ready. Send the message to your chat.

  • What you will see

    One message in your chat every morning with the mood and the top assets.

  • Data used

    get_market_index and get_trending through the API (opens in a new tab).

  • Limits

    • Send one message a day, not one for every change.
    • Do not post advice: describe what people talk about.