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 undergenesis.markets- MCP
- 5 tools
Operations
| Operation | Endpoint | API key |
|---|---|---|
| Compare 2 to 6 assets side by side | GET/compare | — |
| The biggest gainers and losers, today or over a range | GET/movers | — |
| How a whole market is doing | GET/overview | — |
| One coin, stock, ETF or index as a market card | GET/quote | — |
| The crypto Fear & Greed index | GET/sentiment | — |
Compare
Compare 2 to 6 assets side by side
GET/v1/markets/compare
Scope markets:read. Each one's price and its change over the same range (default 1M), with sparklines.
Parameters
assetsquery · stringrequired2 to 6 comma-separated assets, each optionally typed as crypto:, stock: or index: (for example crypto:bitcoin,crypto:ethereum or AAPL,MSFT)
rangequery · stringThe 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"requiredcardobjectrequiredOne's market card: kind market, a view (asset, compare, overview, movers, sentiment) and its figures, each with its time and source
card.kind"market"requiredcard.view"asset" | "compare" | "overview" | "movers" | "sentiment"requiredcard.sourcesstring[]requiredcard.as_ofstring (date-time)requiredsourcesobject[]requiredsources[].[].name"CoinGecko" | "CoinMarketCap" | "Massive"requiredsources[].[].hrefstring (uri)requiredsources[].[].creditstringrequiredThe credit to show with the figures
as_ofstring (date-time)requiredWhen the card was made
missingstring[]Assets of a comparison that could not be read
livefalsePresent (false) when a price is the last session close, not a live price
- 400An unknown, repeated, missing or invalid query parameter (INVALID_QUERY,
details.fieldnames 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);
messagesays 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.reasonnames which; retry afterRetry-Afterseconds. 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 noerror.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('markets_compare', {
assets: '<assets>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "markets_compare",
"arguments": {
"assets": "<assets>"
}
}
}Movers
The biggest gainers and losers, today or over a range
GET/v1/markets/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"requiredcrypto or stocks (US)
rangequery · stringLeft 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"requiredcardobjectrequiredOne's market card: kind market, a view (asset, compare, overview, movers, sentiment) and its figures, each with its time and source
card.kind"market"requiredcard.view"asset" | "compare" | "overview" | "movers" | "sentiment"requiredcard.sourcesstring[]requiredcard.as_ofstring (date-time)requiredsourcesobject[]requiredsources[].[].name"CoinGecko" | "CoinMarketCap" | "Massive"requiredsources[].[].hrefstring (uri)requiredsources[].[].creditstringrequiredThe credit to show with the figures
as_ofstring (date-time)requiredWhen the card was made
missingstring[]Assets of a comparison that could not be read
livefalsePresent (false) when a price is the last session close, not a live price
- 400An unknown, repeated, missing or invalid query parameter (INVALID_QUERY,
details.fieldnames 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);
messagesays 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.reasonnames which; retry afterRetry-Afterseconds. 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 noerror.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('markets_movers', {
market: '<market>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "markets_movers",
"arguments": {
"market": "<market>"
}
}
}Overview
How a whole market is doing
GET/v1/markets/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"requiredcrypto or stocks (US)
Responses
- 200The market card
Response fields
op"quote" | "compare" | "overview" | "movers" | "sentiment"requiredcardobjectrequiredOne's market card: kind market, a view (asset, compare, overview, movers, sentiment) and its figures, each with its time and source
card.kind"market"requiredcard.view"asset" | "compare" | "overview" | "movers" | "sentiment"requiredcard.sourcesstring[]requiredcard.as_ofstring (date-time)requiredsourcesobject[]requiredsources[].[].name"CoinGecko" | "CoinMarketCap" | "Massive"requiredsources[].[].hrefstring (uri)requiredsources[].[].creditstringrequiredThe credit to show with the figures
as_ofstring (date-time)requiredWhen the card was made
missingstring[]Assets of a comparison that could not be read
livefalsePresent (false) when a price is the last session close, not a live price
- 400An unknown, repeated, missing or invalid query parameter (INVALID_QUERY,
details.fieldnames 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);
messagesays 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.reasonnames which; retry afterRetry-Afterseconds. 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 noerror.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('markets_overview', {
market: '<market>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "markets_overview",
"arguments": {
"market": "<market>"
}
}
}Quote
One coin, stock, ETF or index as a market card
GET/v1/markets/quote
Scope markets:read. Its price and change with their time and source, a chart over range, and key stats.
Parameters
assetquery · stringrequiredA 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 · stringThe 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"requiredcardobjectrequiredOne's market card: kind market, a view (asset, compare, overview, movers, sentiment) and its figures, each with its time and source
card.kind"market"requiredcard.view"asset" | "compare" | "overview" | "movers" | "sentiment"requiredcard.sourcesstring[]requiredcard.as_ofstring (date-time)requiredsourcesobject[]requiredsources[].[].name"CoinGecko" | "CoinMarketCap" | "Massive"requiredsources[].[].hrefstring (uri)requiredsources[].[].creditstringrequiredThe credit to show with the figures
as_ofstring (date-time)requiredWhen the card was made
missingstring[]Assets of a comparison that could not be read
livefalsePresent (false) when a price is the last session close, not a live price
- 400An unknown, repeated, missing or invalid query parameter (INVALID_QUERY,
details.fieldnames 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);
messagesays 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.reasonnames which; retry afterRetry-Afterseconds. 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 noerror.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('markets_quote', {
asset: '<asset>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "markets_quote",
"arguments": {
"asset": "<asset>"
}
}
}Sentiment
The crypto Fear & Greed index
GET/v1/markets/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"requiredcardobjectrequiredOne's market card: kind market, a view (asset, compare, overview, movers, sentiment) and its figures, each with its time and source
card.kind"market"requiredcard.view"asset" | "compare" | "overview" | "movers" | "sentiment"requiredcard.sourcesstring[]requiredcard.as_ofstring (date-time)requiredsourcesobject[]requiredsources[].[].name"CoinGecko" | "CoinMarketCap" | "Massive"requiredsources[].[].hrefstring (uri)requiredsources[].[].creditstringrequiredThe credit to show with the figures
as_ofstring (date-time)requiredWhen the card was made
missingstring[]Assets of a comparison that could not be read
livefalsePresent (false) when a price is the last session close, not a live price
- 400An unknown, repeated, missing or invalid query parameter (INVALID_QUERY,
details.fieldnames 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);
messagesays 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.reasonnames which; retry afterRetry-Afterseconds. 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 noerror.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('markets_sentiment'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "markets_sentiment",
"arguments": {}
}
}L1fe AI Inc. · Built from Genesis 0.3.1 and the live gateway on 2026-10-25. Support