77trust / 100

Reference Tickers

by Massive in Markets & finance

x402 APIPassing, checked 3 h ago

Query the stock and OTC ticker symbols supported by Massive. Each result carries the ticker, company name, primary exchange, security type, CIK and OpenFIGI identifiers, and whether the asset still trades. Can't find what you're looking for? POST feedback to /feedback, no charge.

GET https://agent.massive.com/v3/reference/tickers

Last 30 days

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

Uptime
100%
Response time
372 ms typical, 822 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

GET https://agent.massive.com/v3/reference/tickers

Each call costs $0.01 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://agent.massive.com/v3/reference/tickers?active=true&limit=100&order=asc&sort=ticker

Parameters

ParameterTypeRequiredDescription
activebooleanNoSpecify if the tickers returned should be actively traded on the queried date. Default is true.
cikstringNoSpecify the CIK of the asset you want to search for. Find more information about CIK codes [at their website](https://www.sec.gov/edgar/searchedgar/cik.htm). Defaults to empty string which queries all CIKs.
cusipstringNoSpecify the CUSIP code of the asset you want to search for. Find more information about CUSIP codes [at their website](https://www.cusip.com/identifiers.html#/CUSIP). Defaults to empty string which queries all CUSIPs. Note: Although you can query by CUSIP, due to legal reasons we do not return the …
datestring (date)NoSpecify a point in time to retrieve tickers available on that date. Defaults to the most recent available date.
exchangestringNoSpecify the asset's primary exchange Market Identifier Code (MIC) according to [ISO 10383](https://www.iso20022.org/market-identifier-codes). Defaults to empty string which queries all exchanges.
limitintegerNoLimit the number of results returned, default is 100 and max is 1000. Default: 100.
marketstringNoFilter by market type. By default all markets are included. One of: stocks, otc.
orderstringNoOrder results based on the `sort` field. One of: asc, desc.
searchstringNoSearch for terms within the ticker and/or company name.
sortstringNoSort field used for ordering. One of: ticker, name, market, locale, primary_exchange, type, currency_symbol, currency_name, base_currency_symbol, base_currency_name, cik, composite_figi. Default: "ticker".
tickerstringNoSpecify a ticker symbol. Defaults to empty string which queries all tickers.
ticker.gtstringNoRange by ticker.
ticker.gtestringNoRange by ticker.
ticker.ltstringNoRange by ticker.
ticker.ltestringNoRange by ticker.
typestringNoSpecify the type of the tickers. Find the types that we support via our [Ticker Types API](https://massive.com/docs/rest/stocks/tickers/ticker-types). Defaults to empty string which queries all types. One of: CS, ADRC, ADRP, ADRR, UNIT, RIGHT, PFD, FUND, SP, WARRANT, INDEX, ETF.

Example response

The provider's example. We can't check it without paying.

{
  "count": 1,
  "next_url": "https://api.massive.com/v3/reference/tickers?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy",
  "request_id": "e70013d92930de90e089dc8fa098888e",
  "results": [
    {
      "active": true,
      "cik": "0001090872",
      "composite_figi": "BBG000BWQYZ5",
      "currency_name": "usd",
      "last_updated_utc": "2021-04-25T00:00:00Z",
      "locale": "us",
      "market": "stocks",
      "name": "Agilent Technologies Inc.",
      "primary_exchange": "XNYS",
      "share_class_figi": "BBG001SCTQY4",
      "ticker": "A",
      "type": "CS"
    }
  ],
  "status": "OK"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://agent.massive.com/v3/reference/tickers?active=true&limit=100&order=asc&sort=ticker'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://agent.massive.com/v3/reference/tickers?active=true&limit=100&order=asc&sort=ticker' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent.massive.com%2Fv3%2Freference%2Ftickers
const res = await pay("https://agent.massive.com/v3/reference/tickers?active=true&limit=100&order=asc&sort=ticker");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://agent.massive.com/v3/reference/tickers?active=true&limit=100&order=asc&sort=ticker")
    print(res.status_code, res.text)

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402491 ms$0.01
7 h agoPassed402424 ms$0.01
11 h agoPassed402358 ms$0.01
15 h agoPassed402363 ms$0.01
19 h agoPassed402437 ms$0.01
23 h agoPassed402851 ms$0.01
27 h agoPassed402343 ms$0.01
31 h agoPassed402433 ms$0.01
34 h agoPassed402337 ms$0.01
38 h agoPassed402367 ms$0.01
41 h agoPassed402402 ms$0.01
45 h agoPassed402327 ms$0.01
2 days agoPassed402328 ms$0.01
2 days agoPassed402822 ms$0.01
2 days agoPassed402385 ms$0.01