How to connect Marketstack to Hermes in 2 mins: No API key needed

You can get a message when a stock crosses a price, get a closing report on your watchlist every weekday and hear about new dividends and splits on stocks you hold from Hermes. Composio runs each call on its own Marketstack account, so you don't need a Marketstack API key, and your first $2 is free.

MarketstackInstant · No API key

Hermes runs Marketstack through Composio, and the cost comes out of your free $2.

  • The latest price for a stock$0.0009
  • A year of daily prices for a stock$0.0009
  • Dividend history for a stock$0.0009

$2 ≈ 2200 lookups

Composio Instant

What you can do with your free $2

What your free $2 gets you with Marketstack
When you ask Hermes forHermes uses this toolCostWhat $2 gets you
The latest price for a stockGet Real-Time Stock Price$0.0009 per lookupAbout 2,200 lookups
A year of daily prices for a stockGet End-of-Day Data$0.0009 per lookupAbout 2,200 lookups
Dividend history for a stockGet Dividends$0.0009 per lookupAbout 2,200 lookups
Today's intraday prices for a stockGet Ticker Intraday Data$0.0009 per lookupAbout 2,200 lookups
Sector and industry for a tickerGet Ticker Info$0.0009 per lookupAbout 2,200 lookups

You pay Marketstack's price for each call with 0% markup, plus the regular Composio tool call charge. There's no Marketstack subscription, and you only pay for what you use.

19 of 19 Marketstack tools work without a key. Read how Instant works.

How it works

How to connect Marketstack to Hermes

Composio adds Marketstack to Hermes as an Instant toolkit. You connect Composio to Hermes once, and then Hermes can use Marketstack right away. There are two ways to do this:

  • Bring your own key

    You bring your own Marketstack API key, set it up, and use it.

  • Use the Composio wallet

    Instant

    Composio runs each call on its own Marketstack account, so you don't have to set anything up at Marketstack, and your first $2 is free.

You do the setup one time and it takes about a minute. If you build Marketstack into your own product, turn on Instant toolkits in your project settings so your agent can call Marketstack for each of your users without a Marketstack API key, and read Instant tools in the Composio docs for the setup steps and code examples.

Get started

Start to use Marketstack in Hermes in 3 steps

  1. Turn on Instant

    Open your Composio wallet and turn on Instant. Your free $2 shows up there.

  2. Add Composio to Hermes

    Follow the setup below. You only do this once.

  3. Ask Hermes for something

    Try a Marketstack prompt. The cost comes out of your $2.

Setup

Integrating Marketstack with Hermes

Using Composio Connect CLI

1. Install the Composio CLI

Run the install script directly, or paste https://composio.dev/hermes into your Hermes chat box to have it installed for you.

bash
curl -fsSL https://composio.dev/install | bash
Hermes authenticating with Composio

2. Authenticate

Once the CLI is installed, ask Hermes to authenticate with Composio.

3. Connect to Marketstack

Ask your agent to connect to Marketstack, or simply request any Marketstack-related task. Hermes will prompt you to authenticate and authorize access.

4. Done. You're all set with a new Marketstack connection.


Using Composio Connect MCP

1. Get your MCP URL and API Key

Go to dashboard.composio.dev and copy your Connect MCP URL and API key.

Copy MCP URL and API key from Composio dashboard

2. Open the Hermes config file

bash
nano ~/.hermes/config.yaml

3. Add the Composio Connect MCP server

bash
mcp_servers:
  composio:
    url: "https://connect.composio.dev/mcp"
    headers:
      x-consumer-api-key: "YOUR_COMPOSIO_API_KEY"
    connect_timeout: 60
    timeout: 180

Save with Ctrl + O, Enter, then exit with Ctrl + X.

4. Restart your Hermes agent

Once restarted, ask your agent to connect to Marketstack or request any Marketstack-related task. It will prompt you to authenticate and authorize access.

5. Done!

Try it

Ask Hermes for something with Marketstack

Start a new chat and try this prompt:

Check the price of [US ticker] every 30 minutes while the US market is open. Message me once if it goes above [price] or below [price], with the price and the time. Then wait for me to set new levels.

Hermes runs it on Instant and shows you the result. It doesn't ask you for a Marketstack key, and the cost comes out of your $2. You can see each call in your wallet.

Starter prompts

Use your first $2: copy a prompt into Hermes

Each prompt runs on Instant, and the cost next to it is about what it takes from your $2.

  • Get a message when a stock crosses a price

    Less than $0.01 per run

    Checks a US stock's price every 30 minutes during market hours and messages you when it passes a level you set.

    Check the price of [US ticker] every 30 minutes while the US market is open. Message me once if it goes above [price] or below [price], with the price and the time. Then wait for me to set new levels.

  • Get a closing report on your watchlist every weekday

    Less than $0.01 per run

    Sends you each stock's close and daily change after the market closes, with the biggest movers first.

    Every weekday after the US market closes, get the latest closing prices for [up to 10 tickers]. Message me each one's close and percent change for the day, biggest movers first, and flag anything that moved more than 3%.

  • Hear about new dividends and splits on stocks you hold

    About $0.02 per run

    Checks dividend and split records for your stocks each week and messages you only when something new shows up.

    Each Monday, check the dividend and split records for [up to 10 tickers]. Message me anything that wasn't there last week, with the date and the amount per share or the split ratio. If nothing is new, don't message me.

  • Spot unusual trading volume

    Less than $0.01 per run

    Compares each day's volume with the 30-day average and messages you when a stock trades at more than double.

    Every weekday after the close, get the last 30 days of daily data for [up to 10 tickers]. Message me any stock whose volume today was more than twice its 30-day average, with the volume, the average and the day's price change.

  • Get told when a stock crosses its moving average

    Less than $0.01 per run

    Works out a stock's 50-day and 200-day averages after each close and messages you only on the day it crosses one.

    Every weekday after the close, get the last 200 daily closes for [ticker] and work out its 50-day and 200-day moving averages. Message me only on days when the close crosses either average, and say which way it crossed.

  • Alert me when an opening gap is large

    Less than $0.01 per run

    Compare today's first intraday price with the prior close.

    Each trading day after the open, get yesterday's closing price and today's first intraday bar for [US ticker]. Message me if the gap from the prior close exceeds [percent], with both prices and the gap. Remember which date you already reported.

  • Watch a stock's bid ask spread

    Less than $0.01 per run

    Alert when the latest quote spread widens beyond a limit.

    During market hours, get the latest intraday bar for [US ticker] every 30 minutes. If bid and ask are returned, message me when their spread exceeds [percent], with both quotes and the timestamp. Send one alert per widening episode.

  • Tell me when a stock makes a new 52 week high

    Less than $0.01 per run

    Check daily closes against the prior year of prices.

    After each trading day, get the past year of daily prices for [ticker]. Message me when today's high exceeds every earlier high in that returned year, with the new high and prior high. Remember the last date reported.

What it can do

What Hermes can do with Marketstack

Works without a key

  • The latest price for a stock
  • A year of daily prices for a stock
  • Dividend history for a stock
  • Today's intraday prices for a stock
  • Sector and industry for a ticker
Tools and prices

Supported tools (19)

Marketstack tools and their Instant prices
ToolWhat it doesWorks without a keyCost on Instant
Get DividendsTool to retrieve stock dividend data for one or more ticker symbols from Marketstack API.Yes$0.009 per 10 stock requests
Get End-of-Day DataTool to retrieve end-of-day (EOD) stock data for one or multiple ticker symbols.Yes$0.009 per 10 stock requests
Get Exchange InfoTool to retrieve detailed information for a specific stock exchange by its MIC (Market Identifier Code).Yes$0.009 per 10 API requests
Get Exchange Intraday DataTool to retrieve intraday stock data for symbols on a specific stock exchange (by MIC) at a chosen interval.Yes$0.009 per 10 stock requests
Get Exchange Intraday Data for DateTool to retrieve intraday stock data for symbols on a specific stock exchange (by MIC) for a specific date.Yes$0.009 per 10 stock requests
Get Exchange Intraday LatestTool to retrieve the latest available intraday data for symbols on a specific stock exchange (by MIC).Yes$0.009 per 10 stock requests
Get Intraday DataTool to retrieve intraday (real-time and historical) stock data for one or multiple ticker symbols at a chosen interval (1min/5min/10min/15min/30min/1hour).Yes$0.009 per 10 stock requests
Get Intraday Data for DateTool to retrieve intraday stock data for one or multiple ticker symbols on a specific date.Yes$0.009 per 10 stock requests
Get Intraday Latest DataTool to retrieve the latest available intraday data point(s) for one or multiple ticker symbols.Yes$0.009 per 10 stock requests
Get Stock SplitsTool to retrieve stock split data for one or more stock symbols from Marketstack.Yes$0.009 per 10 stock requests
Get Real-Time Stock PriceTool to retrieve the real-time (last known) stock price for a ticker symbol.Yes$0.009 per 10 stock requests
Get Ticker EOD DataTool to retrieve end-of-day stock price data for a specific ticker symbol.Yes$0.009 per 10 stock requests
Get Ticker EOD LatestTool to retrieve end-of-day (EOD) stock data for the latest available date for a specific ticker.Yes$0.009 per 10 stock requests
Get Ticker InfoTool to retrieve detailed information about stock tickers including exchange, sector, and industry data.Yes$0.009 per 10 stock requests
Get Ticker Intraday DataTool to retrieve intraday stock data for a single ticker symbol at a chosen interval (1min/5min/10min/15min/30min/1hour).Yes$0.009 per 10 stock requests
Get Ticker Intraday LatestTool to retrieve the latest available intraday bar for a single ticker symbol, including real-time bid/ask quote fields.Yes$0.009 per 10 stock requests
List CurrenciesTool to retrieve a list of all supported currencies from the Marketstack API.Yes$0.009 per 10 API requests
List Stock ExchangesTool to retrieve information about supported stock exchanges.Yes$0.009 per 10 API requests
List TickersList supported stock tickers or search for specific tickers, with optional exchange filtering.Yes$0.009 per 10 API requests
Pricing

How you pay for Marketstack

  • Your first $2 is freeIt's added to your Composio wallet when you turn on Instant.
  • You pay for each callYou pay Marketstack's price with 0% markup, plus the regular Composio tool call charge.
  • Your own key comes firstIf you connect your own Marketstack key, Composio uses it and doesn't charge Instant for those calls.
  • You control the costYou can ask your agent to check with you before each paid call, and you can turn Instant off at any time.
  • You can see each callYour wallet shows each call and what it cost.
  • When your balance runs outYou can add funds to your wallet on a Pro plan or connect your own key.
Help

Troubleshooting

  1. 1. Hermes asks me for a Marketstack API key

    Check that Instant is turned on in your Composio wallet, then ask again.

  2. 2. I can't see my free $2

    Open your wallet in the Composio dashboard and check that Instant is turned on. If the $2 still isn't there, email support@composio.dev from the address you signed up with.

  3. 3. A Marketstack call failed with a balance error

    Your balance is empty. Add funds to your wallet on a Pro plan, or connect your own Marketstack key, then try again.

FAQ

Frequently asked questions

Start with Marketstack.It takes 30 seconds.

New accounts get a one-time $2 starter credit for Instant calls.Run Marketstack from your agent with no Marketstack key.

Get $2 starter credit