OneOS Docs
Genesis 0.3.1 Console

API reference

Markets

Market data: quotes for stocks, ETFs, indexes and crypto, comparisons, market overview, movers and crypto sentiment.

Operations
5
Base path
https://os.one.ml/api/v1/markets
Scopes
markets:read
API keys
—
SDK
genesis.call('markets_compare', …) · helpers under genesis.markets
CLI
genesis markets
MCP
5 tools

Operations

Compare

Compare 2 to 6 assets side by side

GET/v1/markets/compare

markets:readmarkets_compare

Scope markets:read. Each one's price and its change over the same range (default 1M), with sparklines.

Parameters

  • assetsquery · stringrequired

    2 to 6 comma-separated assets, each optionally typed as crypto:, stock: or index: (for example crypto:bitcoin,crypto:ethereum or AAPL,MSFT)

  • rangequery · string

    The span the chart and change cover (default 1D for a quote, 1M for a comparison): N + H, D, W, M or Y (for example 72H, 3D, 90D, 18M; at most 50 years), YTD, QTD or MTD (year, quarter or month to date; QTD and MTD read as the days since that quarter's or month's first day, UTC) or MAX. The presets 1D, 1W, 1M, 3M, 6M, 1Y, 5Y are spans too.

Responses

  • 200The market card
    Response fields
    • op"quote" | "compare" | "overview" | "movers" | "sentiment"required
    • cardobjectrequired

      One's market card: kind market, a view (asset, compare, overview, movers, sentiment) and its figures, each with its time and source

    • card.kind"market"required
    • card.view"asset" | "compare" | "overview" | "movers" | "sentiment"required
    • card.sourcesstring[]required
    • card.as_ofstring (date-time)required
    • sourcesobject[]required
    • sources[].[].name"CoinGecko" | "CoinMarketCap" | "Massive"required
    • sources[].[].hrefstring (uri)required
    • sources[].[].creditstringrequired

      The credit to show with the figures

    • as_ofstring (date-time)required

      When the card was made

    • missingstring[]

      Assets of a comparison that could not be read

    • livefalse

      Present (false) when a price is the last session close, not a live price

  • 400An unknown, repeated, missing or invalid query parameter (INVALID_QUERY, details.field names it), or one One refused
  • 403The credential lacks markets:read
  • 422One couldn't answer this read (no such asset, or that market isn't connected); message says which, in One's words
  • 429Past one of the limits (RATE_LIMITED): your organization's reads (30 a minute, 1,000 a day), its reads that need a vendor (2 a minute, 100 a day), or the ceiling all organizations share (25 vendor reads a minute, 1,000 a day). error.reason names which; retry after Retry-After seconds. On a 2xx answer these two headers describe the gateway's general per-caller limit, not these limits; a 429 from that general limit carries no error.reason
  • 502One could not be reached in time
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/markets/compare?assets=$ASSETS" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Movers

The biggest gainers and losers, today or over a range

GET/v1/markets/movers

markets:readmarkets_movers

Scope markets:read. Today's by default: crypto over the last 24 hours among the top 1,000 coins; stocks: US common stocks and ADRs in today's session at $1 or more with at least $5M traded (all=true: every listing, warrants, rights, units, funds and sub-$1 names included). With range, the biggest movers over that span instead (see range).

Parameters

  • marketquery · "crypto" | "stocks"required

    crypto or stocks (US)

  • rangequery · string

    Left out, 1D or 24H: today's movers. Otherwise the biggest movers over that span: stocks 2 days to 5 years (each listing now against its close on the last session at or before the start); crypto only CoinGecko's windows 1H, 7D, 14D, 30D, 60D, 1Y, or a span within 5% of one (1W, 2W, 1M, 2M, 12M name them; the card says the window read). YTD, QTD and MTD read as the days since the year's, quarter's or month's first day (UTC), so for crypto they answer only on days that span is within 5% of a window. MAX and other spans are 422.

  • allquery · "true" | "false"

    stocks: true includes warrants, rights, units, funds and names under $1 (default false)

Responses

  • 200The market card
    Response fields
    • op"quote" | "compare" | "overview" | "movers" | "sentiment"required
    • cardobjectrequired

      One's market card: kind market, a view (asset, compare, overview, movers, sentiment) and its figures, each with its time and source

    • card.kind"market"required
    • card.view"asset" | "compare" | "overview" | "movers" | "sentiment"required
    • card.sourcesstring[]required
    • card.as_ofstring (date-time)required
    • sourcesobject[]required
    • sources[].[].name"CoinGecko" | "CoinMarketCap" | "Massive"required
    • sources[].[].hrefstring (uri)required
    • sources[].[].creditstringrequired

      The credit to show with the figures

    • as_ofstring (date-time)required

      When the card was made

    • missingstring[]

      Assets of a comparison that could not be read

    • livefalse

      Present (false) when a price is the last session close, not a live price

  • 400An unknown, repeated, missing or invalid query parameter (INVALID_QUERY, details.field names it), or one One refused
  • 403The credential lacks markets:read
  • 422One couldn't answer this read (no such asset, or that market isn't connected); message says which, in One's words
  • 429Past one of the limits (RATE_LIMITED): your organization's reads (30 a minute, 1,000 a day), its reads that need a vendor (2 a minute, 100 a day), or the ceiling all organizations share (25 vendor reads a minute, 1,000 a day). error.reason names which; retry after Retry-After seconds. On a 2xx answer these two headers describe the gateway's general per-caller limit, not these limits; a 429 from that general limit carries no error.reason
  • 502One could not be reached in time
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/markets/movers?market=$MARKET" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Overview

How a whole market is doing

GET/v1/markets/overview

markets:readmarkets_overview

Scope markets:read. crypto: the largest coins, total market cap and volume, BTC dominance and Fear & Greed; stocks: the major US indices and whether the market is open.

Parameters

  • marketquery · "crypto" | "stocks"required

    crypto or stocks (US)

Responses

  • 200The market card
    Response fields
    • op"quote" | "compare" | "overview" | "movers" | "sentiment"required
    • cardobjectrequired

      One's market card: kind market, a view (asset, compare, overview, movers, sentiment) and its figures, each with its time and source

    • card.kind"market"required
    • card.view"asset" | "compare" | "overview" | "movers" | "sentiment"required
    • card.sourcesstring[]required
    • card.as_ofstring (date-time)required
    • sourcesobject[]required
    • sources[].[].name"CoinGecko" | "CoinMarketCap" | "Massive"required
    • sources[].[].hrefstring (uri)required
    • sources[].[].creditstringrequired

      The credit to show with the figures

    • as_ofstring (date-time)required

      When the card was made

    • missingstring[]

      Assets of a comparison that could not be read

    • livefalse

      Present (false) when a price is the last session close, not a live price

  • 400An unknown, repeated, missing or invalid query parameter (INVALID_QUERY, details.field names it), or one One refused
  • 403The credential lacks markets:read
  • 422One couldn't answer this read (no such asset, or that market isn't connected); message says which, in One's words
  • 429Past one of the limits (RATE_LIMITED): your organization's reads (30 a minute, 1,000 a day), its reads that need a vendor (2 a minute, 100 a day), or the ceiling all organizations share (25 vendor reads a minute, 1,000 a day). error.reason names which; retry after Retry-After seconds. On a 2xx answer these two headers describe the gateway's general per-caller limit, not these limits; a 429 from that general limit carries no error.reason
  • 502One could not be reached in time
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/markets/overview?market=$MARKET" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Quote

One coin, stock, ETF or index as a market card

GET/v1/markets/quote

markets:readmarkets_quote

Scope markets:read. Its price and change with their time and source, a chart over range, and key stats.

Parameters

  • assetquery · stringrequired

    A ticker, coin or company, as a person names it (for example BTC, bitcoin, AAPL, Apple, I:SPX)

  • typequery · "crypto" | "stock" | "index"

    crypto, stock (ETFs and funds are stock) or index; default stock, which also finds a coin by name

  • rangequery · string

    The span the chart and change cover (default 1D for a quote, 1M for a comparison): N + H, D, W, M or Y (for example 72H, 3D, 90D, 18M; at most 50 years), YTD, QTD or MTD (year, quarter or month to date; QTD and MTD read as the days since that quarter's or month's first day, UTC) or MAX. The presets 1D, 1W, 1M, 3M, 6M, 1Y, 5Y are spans too.

Responses

  • 200The market card
    Response fields
    • op"quote" | "compare" | "overview" | "movers" | "sentiment"required
    • cardobjectrequired

      One's market card: kind market, a view (asset, compare, overview, movers, sentiment) and its figures, each with its time and source

    • card.kind"market"required
    • card.view"asset" | "compare" | "overview" | "movers" | "sentiment"required
    • card.sourcesstring[]required
    • card.as_ofstring (date-time)required
    • sourcesobject[]required
    • sources[].[].name"CoinGecko" | "CoinMarketCap" | "Massive"required
    • sources[].[].hrefstring (uri)required
    • sources[].[].creditstringrequired

      The credit to show with the figures

    • as_ofstring (date-time)required

      When the card was made

    • missingstring[]

      Assets of a comparison that could not be read

    • livefalse

      Present (false) when a price is the last session close, not a live price

  • 400An unknown, repeated, missing or invalid query parameter (INVALID_QUERY, details.field names it), or one One refused
  • 403The credential lacks markets:read
  • 422One couldn't answer this read (no such asset, or that market isn't connected); message says which, in One's words
  • 429Past one of the limits (RATE_LIMITED): your organization's reads (30 a minute, 1,000 a day), its reads that need a vendor (2 a minute, 100 a day), or the ceiling all organizations share (25 vendor reads a minute, 1,000 a day). error.reason names which; retry after Retry-After seconds. On a 2xx answer these two headers describe the gateway's general per-caller limit, not these limits; a 429 from that general limit carries no error.reason
  • 502One could not be reached in time
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/markets/quote?asset=$ASSET" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Sentiment

The crypto Fear & Greed index

GET/v1/markets/sentiment

markets:readmarkets_sentiment

Scope markets:read. Today's value and word, yesterday, a week and a month ago, and the last 30 days (CoinMarketCap).

Responses

  • 200The market card
    Response fields
    • op"quote" | "compare" | "overview" | "movers" | "sentiment"required
    • cardobjectrequired

      One's market card: kind market, a view (asset, compare, overview, movers, sentiment) and its figures, each with its time and source

    • card.kind"market"required
    • card.view"asset" | "compare" | "overview" | "movers" | "sentiment"required
    • card.sourcesstring[]required
    • card.as_ofstring (date-time)required
    • sourcesobject[]required
    • sources[].[].name"CoinGecko" | "CoinMarketCap" | "Massive"required
    • sources[].[].hrefstring (uri)required
    • sources[].[].creditstringrequired

      The credit to show with the figures

    • as_ofstring (date-time)required

      When the card was made

    • missingstring[]

      Assets of a comparison that could not be read

    • livefalse

      Present (false) when a price is the last session close, not a live price

  • 400An unknown, repeated, missing or invalid query parameter (INVALID_QUERY, details.field names it), or one One refused
  • 403The credential lacks markets:read
  • 422One couldn't answer this read (no such asset, or that market isn't connected); message says which, in One's words
  • 429Past one of the limits (RATE_LIMITED): your organization's reads (30 a minute, 1,000 a day), its reads that need a vendor (2 a minute, 100 a day), or the ceiling all organizations share (25 vendor reads a minute, 1,000 a day). error.reason names which; retry after Retry-After seconds. On a 2xx answer these two headers describe the gateway's general per-caller limit, not these limits; a 429 from that general limit carries no error.reason
  • 502One could not be reached in time
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/markets/sentiment" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

L1fe AI Inc. · Built from Genesis 0.3.1 and the live gateway on 2026-10-25. Support