Skip to content

最后更新

更新日志

Selcoin API

正常只读

来自 Selcoin(selcoin.io)的实时行情数据:加密货币与传统金融资产的现货价格、外汇、贵金属、美股、OHLC K 线,以及单个资产的详情。 来源: selcoin.io.

基础 URL
https://api.maviapi.com/v1/sites/selcoin
7
端点
39 min ago
最近验证
99.2%
可用率 / 7 天
640ms
p50 延迟
1
自动修复 / 累计
GET/forex1 credit per call

外汇

外汇货币对列表,包含实时价格、24 小时开盘价/涨跌/最高价/最低价、成交量、买价/卖价和时间戳(ns)。

Bearer auth. Pass your key as Authorization: Bearer <key> on every request.
stringOptionalin query

base currency code to keep, e.g. "EUR" (optional)

stringOptionalin query

quote currency code to keep, e.g. "TRY" (optional)

stringOptionalin query

text matched against the pair symbol, ticker and label, e.g. "usd" (optional)

sourcestringe.g."Massive"
pairsobject[]15 fields
asknumbere.g.55.71351
basestringe.g."EUR"
bidnumbere.g.55.70406
change24hPercentnumbere.g.-0.0399
high24hnumbere.g.55.82053
labelstringe.g."EUR/TRY"
low24hnumbere.g.55.639
open24hnumbere.g.55.7263
pricenumbere.g.55.70436
quotestringe.g."TRY"
sourcestringe.g."Massive"
symbolstringe.g."EUR-TRY"
tickerstringe.g."C:EURTRY"
timestampintegere.g.1795774413000000000
volume24hintegere.g.36389
paginationobject3 fields
countintegere.g.1146
has_morebooleane.g.false
next_cursornull
fetched_atstringe.g."2026-11-27T10:13:35.536Z"
ageintegere.g.0
Try itLive
GET
https://api.maviapi.com/v1/sites/selcoin/forex
Request
curl "https://api.maviapi.com/v1/sites/selcoin/forex" \
-H "Authorization: Bearer $MAVI_KEY"
Example599 B
{
  "source": "Massive",
  "pairs": [
    {
      "ask": 55.71351,
      "base": "EUR",
      "bid": 55.70406,
      "change24hPercent": -0.0399,
      "high24h": 55.82053,
      "label": "EUR/TRY",
      "low24h": 55.639,
      "open24h": 55.7263,
      "price": 55.70436,
      "quote": "TRY",
      "source": "Massive",
      "symbol": "EUR-TRY",
      "ticker": "C:EURTRY",
      "timestamp": 1795774413000000000,
      "volume24h": 36389
    }
  ],
  "pagination": {
    "count": 1146,
    "has_more": false,
    "next_cursor": null
  },
  "fetched_at": "2026-11-27T10:13:35.536Z",
  "age": 0
}

Get all the data, no code

Collect every page of GET /forex into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.

Use Selcoin API from Claude, ChatGPT and your coding tools

Add this URL as a custom connector and sign in to maviapi. Nothing to install.

How to connect
https://mcp.maviapi.com/mcp

Or run it locally, with each endpoint of Selcoin API as its own tool:

claude mcp add maviapi -e MAVIAPI_TOOLS=selcoin -- npx -y '@maviapi/mcp'

Import Selcoin API into Postman and other tools

How to import

Paste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.

  • OpenAPI 3.1
    https://api.maviapi.com/v1/apis/selcoin/openapi.json
  • Postman
    https://api.maviapi.com/v1/apis/selcoin/postman.json

The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.

使用 Selcoin API 进行开发

选择一个端点开始

  • 外汇 GET /forex

    外汇货币对列表,包含实时价格、24 小时开盘价/涨跌/最高价/最低价、成交量、买价/卖价和时间戳(ns)。

    GET /forex 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    basestring / query否base currency code to keep, e.g. "EUR" (optional)
    quotestring / query否quote currency code to keep, e.g. "TRY" (optional)
    qstring / query否text matched against the pair symbol, ticker and label, e.g. "usd" (optional)
    响应字段
    字段类型说明
    sourcestring
    pairsobject[]
    pairs[].asknumber
    pairs[].basestring
    pairs[].bidnumber
    pairs[].change24hPercentnumber
    pairs[].high24hnumber
    pairs[].labelstring
    pairs[].low24hnumber
    pairs[].open24hnumber
    pairs[].pricenumber
    pairs[].quotestring
    pairs[].sourcestring
    pairs[].symbolstring
    pairs[].tickerstring
    pairs[].timestampinteger
    pairs[].volume24hinteger
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 市场列表 GET /markets

    现货市场(加密货币及代币化传统金融资产),包含最新价、24 小时涨跌幅、最高价/最低价、基础币和计价币成交量、最优买价/卖价和时间戳(ms)。

    GET /markets 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    assetClassstring / query否"all", "crypto" or "tradfi" 可选值: all, crypto, tradfi.
    quotestring / query否quote currency to keep, e.g. "USDT" (optional)
    qstring / query否text matched against symbol, base, full name or project, e.g. "bitcoin" (optional)
    sortstring / query否"gainers" (24h change high to low), "losers" (low to high) or "volume" (24h quote volume high to low) (optional)
  • 市场 GET /market/{symbol}

    单个交易对的完整详情:最新价、24 小时开盘价/最高价/最低价/涨跌幅、基础币和计价币成交量、最优买价/卖价、交易所、全称、项目简介和图标 URL。

    GET /market/{symbol} 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    symbolstring / path是market pair as BASE-QUOTE, e.g. "BTC-USDT"
    响应字段
    字段类型说明
    asknumber
    basestring
    bidnumber
    change24hPercentnumber
    exchangestring
    fullNamestring
    high24hnumber
    iconstring
    introducestring
    lastnumber
    low24hnumber
    open24hnumber
    projectstring
    quotestring
    symbolstring
    timestampinteger
    tradingViewSymbolstring
    volume24hBasenumber
    volume24hQuotenumber
    fetched_atstring
    ageinteger
  • 股票 GET /stocks

    美股快照,按传入代码的顺序每个代码返回一条:价格、日涨跌额和涨跌幅、当日开盘价/最高价/最低价/收盘价、成交量、VWAP、前一交易日的 OHLC 和成交量、买价/卖价及其挂单量和价差、时间戳(ns)。未知代码不返回。

    GET /stocks 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    tickersstring / query否comma-separated US tickers, up to 25, e.g. "NVDA,AAPL,TSLA"
  • 贵金属 GET /metals

    贵金属价格:`ons` 下为 XAU、XAG、XPT 和 XPD 的国际盎司价格(价格、24 小时涨跌幅、最高价/最低价、成交量、时间戳 ms),`turkish` 下为土耳其零售金银品种(克金、四分之一金币、14K 和 22K 金、克银、金银比:价格、买入价 `alis`、卖出价 `satis`、24 小时开盘价/涨跌幅、走势迷你图、计算公式),`usdTry` 为 USD/TRY 汇率。

    GET /metals 的参数和响应字段
    响应字段
    字段类型说明
    onsobject
    ons.XAGobject
    ons.XAG.change24hPercentinteger
    ons.XAG.high24hnumber
    ons.XAG.labelstring
    ons.XAG.low24hnumber
    ons.XAG.pricenumber
    ons.XAG.symbolstring
    ons.XAG.timestampinteger
    ons.XAG.volume24hnumber
    ons.XAUobject
    ons.XAU.change24hPercentnumber
    ons.XAU.high24hnumber
    ons.XAU.labelstring
    ons.XAU.low24hnumber
    ons.XAU.pricenumber
    ons.XAU.symbolstring
    ons.XAU.timestampinteger
    ons.XAU.volume24hnumber
    ons.XPDobject
    ons.XPD.change24hPercentnumber
    ons.XPD.high24hnumber
    ons.XPD.labelstring
    ons.XPD.low24hnumber
    ons.XPD.pricenumber
    ons.XPD.symbolstring
    ons.XPD.timestampinteger
    ons.XPD.volume24hnumber
    ons.XPTobject
    ons.XPT.change24hPercentnumber
    ons.XPT.high24hnumber
    ons.XPT.labelstring
    ons.XPT.low24hnumber
    ons.XPT.pricenumber
    ons.XPT.symbolstring
    ons.XPT.timestampinteger
    ons.XPT.volume24hnumber
    sourcestring
    turkishobject
    turkish.altin-14-ayarobject
    turkish.altin-14-ayar.alisnumber
    turkish.altin-14-ayar.change24hFrominteger
    turkish.altin-14-ayar.change24hPercentnumber
    turkish.altin-14-ayar.change24hTointeger
    turkish.altin-14-ayar.formulastring
    turkish.altin-14-ayar.labelstring
    turkish.altin-14-ayar.liveSourcestring
    turkish.altin-14-ayar.open24hnumber
    turkish.altin-14-ayar.pricenumber
    turkish.altin-14-ayar.satisnumber
    turkish.altin-14-ayar.sparklinenumber[]
    turkish.altin-14-ayar.spread_percentinteger
    turkish.altin-14-ayar.timestampinteger
    turkish.altin-22-ayarobject
    turkish.altin-22-ayar.alisnumber
    turkish.altin-22-ayar.change24hFrominteger
    turkish.altin-22-ayar.change24hPercentnumber
    turkish.altin-22-ayar.change24hTointeger
    turkish.altin-22-ayar.formulastring
    turkish.altin-22-ayar.labelstring
    turkish.altin-22-ayar.liveSourcestring
    turkish.altin-22-ayar.open24hnumber
    turkish.altin-22-ayar.pricenumber
    turkish.altin-22-ayar.satisnumber
    turkish.altin-22-ayar.sparklinenumber[]
    turkish.altin-22-ayar.spread_percentinteger
    turkish.altin-22-ayar.timestampinteger
    turkish.altin14Ayarobject
    turkish.altin14Ayar.alisnumber
    turkish.altin14Ayar.change24hFrominteger
    turkish.altin14Ayar.change24hPercentnumber
    turkish.altin14Ayar.change24hTointeger
    turkish.altin14Ayar.formulastring
    turkish.altin14Ayar.labelstring
    turkish.altin14Ayar.liveSourcestring
    turkish.altin14Ayar.open24hnumber
    turkish.altin14Ayar.pricenumber
    turkish.altin14Ayar.satisnumber
    turkish.altin14Ayar.sparklinenumber[]
    turkish.altin14Ayar.spread_percentinteger
    turkish.altin14Ayar.timestampinteger
    turkish.altin22Ayarobject
    turkish.altin22Ayar.alisnumber
    turkish.altin22Ayar.change24hFrominteger
    turkish.altin22Ayar.change24hPercentnumber
    turkish.altin22Ayar.change24hTointeger
    turkish.altin22Ayar.formulastring
    turkish.altin22Ayar.labelstring
    turkish.altin22Ayar.liveSourcestring
    turkish.altin22Ayar.open24hnumber
    turkish.altin22Ayar.pricenumber
    turkish.altin22Ayar.satisnumber
    turkish.altin22Ayar.sparklinenumber[]
    turkish.altin22Ayar.spread_percentinteger
    turkish.altin22Ayar.timestampinteger
    turkish.ceyrek-altinobject
    turkish.ceyrek-altin.alisnumber
    turkish.ceyrek-altin.change24hFrominteger
    turkish.ceyrek-altin.change24hPercentnumber
    turkish.ceyrek-altin.change24hTointeger
    turkish.ceyrek-altin.formulastring
    turkish.ceyrek-altin.labelstring
    turkish.ceyrek-altin.liveSourcestring
    turkish.ceyrek-altin.open24hnumber
    turkish.ceyrek-altin.pricenumber
    turkish.ceyrek-altin.satisnumber
    turkish.ceyrek-altin.sparklinenumber[]
    turkish.ceyrek-altin.spread_percentnumber
    turkish.ceyrek-altin.timestampinteger
    turkish.ceyrekAltinobject
    turkish.ceyrekAltin.alisnumber
    turkish.ceyrekAltin.change24hFrominteger
    turkish.ceyrekAltin.change24hPercentnumber
    turkish.ceyrekAltin.change24hTointeger
    turkish.ceyrekAltin.formulastring
    turkish.ceyrekAltin.labelstring
    turkish.ceyrekAltin.liveSourcestring
    turkish.ceyrekAltin.open24hnumber
    turkish.ceyrekAltin.pricenumber
    turkish.ceyrekAltin.satisnumber
    turkish.ceyrekAltin.sparklinenumber[]
    turkish.ceyrekAltin.spread_percentnumber
    turkish.ceyrekAltin.timestampinteger
    turkish.gold-silver-ratioobject
    turkish.gold-silver-ratio.alisnumber
    turkish.gold-silver-ratio.change24hFrominteger
    turkish.gold-silver-ratio.change24hPercentnumber
    turkish.gold-silver-ratio.change24hTointeger
    turkish.gold-silver-ratio.formulastring
    turkish.gold-silver-ratio.labelstring
    turkish.gold-silver-ratio.liveSourcestring
    turkish.gold-silver-ratio.open24hnumber
    turkish.gold-silver-ratio.pricenumber
    turkish.gold-silver-ratio.satisnumber
    turkish.gold-silver-ratio.sparklinenumber[]
    turkish.gold-silver-ratio.spread_percentinteger
    turkish.gold-silver-ratio.timestampinteger
    turkish.goldSilverRatioobject
    turkish.goldSilverRatio.alisnumber
    turkish.goldSilverRatio.change24hFrominteger
    turkish.goldSilverRatio.change24hPercentnumber
    turkish.goldSilverRatio.change24hTointeger
    turkish.goldSilverRatio.formulastring
    turkish.goldSilverRatio.labelstring
    turkish.goldSilverRatio.liveSourcestring
    turkish.goldSilverRatio.open24hnumber
    turkish.goldSilverRatio.pricenumber
    turkish.goldSilverRatio.satisnumber
    turkish.goldSilverRatio.sparklinenumber[]
    turkish.goldSilverRatio.spread_percentinteger
    turkish.goldSilverRatio.timestampinteger
    turkish.gram-altinobject
    turkish.gram-altin.alisnumber
    turkish.gram-altin.change24hFrominteger
    turkish.gram-altin.change24hPercentnumber
    turkish.gram-altin.change24hTointeger
    turkish.gram-altin.formulastring
    turkish.gram-altin.labelstring
    turkish.gram-altin.liveSourcestring
    turkish.gram-altin.open24hnumber
    turkish.gram-altin.pricenumber
    turkish.gram-altin.satisnumber
    turkish.gram-altin.sparklinenumber[]
    turkish.gram-altin.spread_percentnumber
    turkish.gram-altin.timestampinteger
    turkish.gram-gumusobject
    turkish.gram-gumus.alisinteger
    turkish.gram-gumus.change24hFrominteger
    turkish.gram-gumus.change24hPercentnumber
    turkish.gram-gumus.change24hTointeger
    turkish.gram-gumus.formulastring
    turkish.gram-gumus.labelstring
    turkish.gram-gumus.liveSourcestring
    turkish.gram-gumus.open24hnumber
    turkish.gram-gumus.pricenumber
    turkish.gram-gumus.satisnumber
    turkish.gram-gumus.sparklinenumber[]
    turkish.gram-gumus.spread_percentnumber
    turkish.gram-gumus.timestampinteger
    turkish.gramAltinobject
    turkish.gramAltin.alisnumber
    turkish.gramAltin.change24hFrominteger
    turkish.gramAltin.change24hPercentnumber
    turkish.gramAltin.change24hTointeger
    turkish.gramAltin.formulastring
    turkish.gramAltin.labelstring
    turkish.gramAltin.liveSourcestring
    turkish.gramAltin.open24hnumber
    turkish.gramAltin.pricenumber
    turkish.gramAltin.satisnumber
    turkish.gramAltin.sparklinenumber[]
    turkish.gramAltin.spread_percentnumber
    turkish.gramAltin.timestampinteger
    turkish.gramGumusobject
    turkish.gramGumus.alisinteger
    turkish.gramGumus.change24hFrominteger
    turkish.gramGumus.change24hPercentnumber
    turkish.gramGumus.change24hTointeger
    turkish.gramGumus.formulastring
    turkish.gramGumus.labelstring
    turkish.gramGumus.liveSourcestring
    turkish.gramGumus.open24hnumber
    turkish.gramGumus.pricenumber
    turkish.gramGumus.satisnumber
    turkish.gramGumus.sparklinenumber[]
    turkish.gramGumus.spread_percentnumber
    turkish.gramGumus.timestampinteger
    usdTrynumber
    fetched_atstring
    ageinteger
  • K 线 GET /klines/{symbol}

    交易对的 OHLC K 线历史,按时间从旧到新排列:开盘时间(ms)、开盘价、最高价、最低价、收盘价、基础币成交量,以及该 K 线是否已收盘(confirm)。

    GET /klines/{symbol} 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    symbolstring / path是market pair as BASE-QUOTE, e.g. "BTC-USDT"
    intervalstring / query否candle length, one of 1m, 5m, 15m, 30m, 1H, 4H, 1D, 1W, 1M 可选值: 1m, 5m, 15m, 30m, 1H, 4H, 1D, 1W, 1M.
    countinteger / query否number of most recent candles, 1 to 300 (fewer when the pair has less history)
    响应字段
    字段类型说明
    symbolstring
    intervalstring
    countinteger
    candlesobject[]
    candles[].closenumber
    candles[].confirmboolean
    candles[].highnumber
    candles[].lownumber
    candles[].opennumber
    candles[].timeinteger
    candles[].volumenumber
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 概览 GET /overview

    一次调用获取市场看板数据。`crypto` 包含加密货币现货市场数量(`total`),以及 24 小时涨幅、跌幅和成交最活跃(按计价币成交量)排名前 `count` 的加密货币现货交易对;`forex.majors` 包含主要货币对(USD/TRY、EUR/TRY、GBP/TRY、EUR/USD、GBP/USD、USD/JPY、USD/CHF、AUD/USD、USD/CAD、NZD/USD)及其实时价格和 24 小时涨跌;`metals` 与 /metals 返回的对象相同。

    GET /overview 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    kindstring / query否which sections to include: "all", "crypto", "forex" or "metals" 可选值: all, crypto, forex, metals.
    countinteger / query否number of pairs in each crypto top list, 1 to 20
    响应字段
    字段类型说明
    kindstring
    countinteger
    cryptoobject
    crypto.totalinteger
    crypto.gainersobject[]
    crypto.gainers[].asknumber
    crypto.gainers[].assetClassstring
    crypto.gainers[].basestring
    crypto.gainers[].bidnumber
    crypto.gainers[].change24hPercentnumber
    crypto.gainers[].fullNamenull
    crypto.gainers[].high24hnumber
    crypto.gainers[].instTypestring
    crypto.gainers[].lastnumber
    crypto.gainers[].low24hnumber
    crypto.gainers[].projectnull
    crypto.gainers[].quotestring
    crypto.gainers[].symbolstring
    crypto.gainers[].timestampinteger
    crypto.gainers[].tradingViewSymbolstring
    crypto.gainers[].volume24hBasenumber
    crypto.gainers[].volume24hQuotenumber
    crypto.losersobject[]
    crypto.losers[].askinteger
    crypto.losers[].assetClassstring
    crypto.losers[].basestring
    crypto.losers[].bidnumber
    crypto.losers[].change24hPercentnumber
    crypto.losers[].fullNamenull
    crypto.losers[].high24hinteger
    crypto.losers[].instTypestring
    crypto.losers[].lastnumber
    crypto.losers[].low24hnumber
    crypto.losers[].projectnull
    crypto.losers[].quotestring
    crypto.losers[].symbolstring
    crypto.losers[].timestampinteger
    crypto.losers[].tradingViewSymbolstring
    crypto.losers[].volume24hBaseinteger
    crypto.losers[].volume24hQuotenumber
    crypto.top_volumeobject[]
    crypto.top_volume[].asknumber
    crypto.top_volume[].assetClassstring
    crypto.top_volume[].basestring
    crypto.top_volume[].bidnumber
    crypto.top_volume[].change24hPercentnumber
    crypto.top_volume[].fullNamenull
    crypto.top_volume[].high24hnumber
    crypto.top_volume[].instTypestring
    crypto.top_volume[].lastnumber
    crypto.top_volume[].low24hnumber
    crypto.top_volume[].projectnull
    crypto.top_volume[].quotestring
    crypto.top_volume[].symbolstring
    crypto.top_volume[].timestampinteger
    crypto.top_volume[].tradingViewSymbolstring
    crypto.top_volume[].volume24hBasenumber
    crypto.top_volume[].volume24hQuotenumber
    forexobject
    forex.majorsobject[]
    forex.majors[].asknumber
    forex.majors[].basestring
    forex.majors[].bidnumber
    forex.majors[].change24hPercentnumber
    forex.majors[].high24hnumber
    forex.majors[].labelstring
    forex.majors[].low24hnumber
    forex.majors[].open24hnumber
    forex.majors[].pricenumber
    forex.majors[].quotestring
    forex.majors[].sourcestring
    forex.majors[].symbolstring
    forex.majors[].tickerstring
    forex.majors[].timestampinteger
    forex.majors[].volume24hinteger
    metalsobject
    metals.onsobject
    metals.ons.XAGobject
    metals.ons.XAG.change24hPercentinteger
    metals.ons.XAG.high24hnumber
    metals.ons.XAG.labelstring
    metals.ons.XAG.low24hnumber
    metals.ons.XAG.pricenumber
    metals.ons.XAG.symbolstring
    metals.ons.XAG.timestampinteger
    metals.ons.XAG.volume24hnumber
    metals.ons.XAUobject
    metals.ons.XAU.change24hPercentnumber
    metals.ons.XAU.high24hnumber
    metals.ons.XAU.labelstring
    metals.ons.XAU.low24hnumber
    metals.ons.XAU.pricenumber
    metals.ons.XAU.symbolstring
    metals.ons.XAU.timestampinteger
    metals.ons.XAU.volume24hnumber
    metals.ons.XPDobject
    metals.ons.XPD.change24hPercentnumber
    metals.ons.XPD.high24hnumber
    metals.ons.XPD.labelstring
    metals.ons.XPD.low24hnumber
    metals.ons.XPD.pricenumber
    metals.ons.XPD.symbolstring
    metals.ons.XPD.timestampinteger
    metals.ons.XPD.volume24hnumber
    metals.ons.XPTobject
    metals.ons.XPT.change24hPercentnumber
    metals.ons.XPT.high24hnumber
    metals.ons.XPT.labelstring
    metals.ons.XPT.low24hnumber
    metals.ons.XPT.pricenumber
    metals.ons.XPT.symbolstring
    metals.ons.XPT.timestampinteger
    metals.ons.XPT.volume24hnumber
    metals.sourcestring
    metals.turkishobject
    metals.turkish.altin-14-ayarobject
    metals.turkish.altin-14-ayar.alisnumber
    metals.turkish.altin-14-ayar.change24hFrominteger
    metals.turkish.altin-14-ayar.change24hPercentnumber
    metals.turkish.altin-14-ayar.change24hTointeger
    metals.turkish.altin-14-ayar.formulastring
    metals.turkish.altin-14-ayar.labelstring
    metals.turkish.altin-14-ayar.liveSourcestring
    metals.turkish.altin-14-ayar.open24hnumber
    metals.turkish.altin-14-ayar.pricenumber
    metals.turkish.altin-14-ayar.satisnumber
    metals.turkish.altin-14-ayar.sparklinenumber[]
    metals.turkish.altin-14-ayar.spread_percentinteger
    metals.turkish.altin-14-ayar.timestampinteger
    metals.turkish.altin-22-ayarobject
    metals.turkish.altin-22-ayar.alisnumber
    metals.turkish.altin-22-ayar.change24hFrominteger
    metals.turkish.altin-22-ayar.change24hPercentnumber
    metals.turkish.altin-22-ayar.change24hTointeger
    metals.turkish.altin-22-ayar.formulastring
    metals.turkish.altin-22-ayar.labelstring
    metals.turkish.altin-22-ayar.liveSourcestring
    metals.turkish.altin-22-ayar.open24hnumber
    metals.turkish.altin-22-ayar.pricenumber
    metals.turkish.altin-22-ayar.satisnumber
    metals.turkish.altin-22-ayar.sparklinenumber[]
    metals.turkish.altin-22-ayar.spread_percentinteger
    metals.turkish.altin-22-ayar.timestampinteger
    metals.turkish.altin14Ayarobject
    metals.turkish.altin14Ayar.alisnumber
    metals.turkish.altin14Ayar.change24hFrominteger
    metals.turkish.altin14Ayar.change24hPercentnumber
    metals.turkish.altin14Ayar.change24hTointeger
    metals.turkish.altin14Ayar.formulastring
    metals.turkish.altin14Ayar.labelstring
    metals.turkish.altin14Ayar.liveSourcestring
    metals.turkish.altin14Ayar.open24hnumber
    metals.turkish.altin14Ayar.pricenumber
    metals.turkish.altin14Ayar.satisnumber
    metals.turkish.altin14Ayar.sparklinenumber[]
    metals.turkish.altin14Ayar.spread_percentinteger
    metals.turkish.altin14Ayar.timestampinteger
    metals.turkish.altin22Ayarobject
    metals.turkish.altin22Ayar.alisnumber
    metals.turkish.altin22Ayar.change24hFrominteger
    metals.turkish.altin22Ayar.change24hPercentnumber
    metals.turkish.altin22Ayar.change24hTointeger
    metals.turkish.altin22Ayar.formulastring
    metals.turkish.altin22Ayar.labelstring
    metals.turkish.altin22Ayar.liveSourcestring
    metals.turkish.altin22Ayar.open24hnumber
    metals.turkish.altin22Ayar.pricenumber
    metals.turkish.altin22Ayar.satisnumber
    metals.turkish.altin22Ayar.sparklinenumber[]
    metals.turkish.altin22Ayar.spread_percentinteger
    metals.turkish.altin22Ayar.timestampinteger
    metals.turkish.ceyrek-altinobject
    metals.turkish.ceyrek-altin.alisnumber
    metals.turkish.ceyrek-altin.change24hFrominteger
    metals.turkish.ceyrek-altin.change24hPercentnumber
    metals.turkish.ceyrek-altin.change24hTointeger
    metals.turkish.ceyrek-altin.formulastring
    metals.turkish.ceyrek-altin.labelstring
    metals.turkish.ceyrek-altin.liveSourcestring
    metals.turkish.ceyrek-altin.open24hnumber
    metals.turkish.ceyrek-altin.pricenumber
    metals.turkish.ceyrek-altin.satisnumber
    metals.turkish.ceyrek-altin.sparklinenumber[]
    metals.turkish.ceyrek-altin.spread_percentnumber
    metals.turkish.ceyrek-altin.timestampinteger
    metals.turkish.ceyrekAltinobject
    metals.turkish.ceyrekAltin.alisnumber
    metals.turkish.ceyrekAltin.change24hFrominteger
    metals.turkish.ceyrekAltin.change24hPercentnumber
    metals.turkish.ceyrekAltin.change24hTointeger
    metals.turkish.ceyrekAltin.formulastring
    metals.turkish.ceyrekAltin.labelstring
    metals.turkish.ceyrekAltin.liveSourcestring
    metals.turkish.ceyrekAltin.open24hnumber
    metals.turkish.ceyrekAltin.pricenumber
    metals.turkish.ceyrekAltin.satisnumber
    metals.turkish.ceyrekAltin.sparklinenumber[]
    metals.turkish.ceyrekAltin.spread_percentnumber
    metals.turkish.ceyrekAltin.timestampinteger
    metals.turkish.gold-silver-ratioobject
    metals.turkish.gold-silver-ratio.alisnumber
    metals.turkish.gold-silver-ratio.change24hFrominteger
    metals.turkish.gold-silver-ratio.change24hPercentnumber
    metals.turkish.gold-silver-ratio.change24hTointeger
    metals.turkish.gold-silver-ratio.formulastring
    metals.turkish.gold-silver-ratio.labelstring
    metals.turkish.gold-silver-ratio.liveSourcestring
    metals.turkish.gold-silver-ratio.open24hnumber
    metals.turkish.gold-silver-ratio.pricenumber
    metals.turkish.gold-silver-ratio.satisnumber
    metals.turkish.gold-silver-ratio.sparklinenumber[]
    metals.turkish.gold-silver-ratio.spread_percentinteger
    metals.turkish.gold-silver-ratio.timestampinteger
    metals.turkish.goldSilverRatioobject
    metals.turkish.goldSilverRatio.alisnumber
    metals.turkish.goldSilverRatio.change24hFrominteger
    metals.turkish.goldSilverRatio.change24hPercentnumber
    metals.turkish.goldSilverRatio.change24hTointeger
    metals.turkish.goldSilverRatio.formulastring
    metals.turkish.goldSilverRatio.labelstring
    metals.turkish.goldSilverRatio.liveSourcestring
    metals.turkish.goldSilverRatio.open24hnumber
    metals.turkish.goldSilverRatio.pricenumber
    metals.turkish.goldSilverRatio.satisnumber
    metals.turkish.goldSilverRatio.sparklinenumber[]
    metals.turkish.goldSilverRatio.spread_percentinteger
    metals.turkish.goldSilverRatio.timestampinteger
    metals.turkish.gram-altinobject
    metals.turkish.gram-altin.alisnumber
    metals.turkish.gram-altin.change24hFrominteger
    metals.turkish.gram-altin.change24hPercentnumber
    metals.turkish.gram-altin.change24hTointeger
    metals.turkish.gram-altin.formulastring
    metals.turkish.gram-altin.labelstring
    metals.turkish.gram-altin.liveSourcestring
    metals.turkish.gram-altin.open24hnumber
    metals.turkish.gram-altin.pricenumber
    metals.turkish.gram-altin.satisnumber
    metals.turkish.gram-altin.sparklinenumber[]
    metals.turkish.gram-altin.spread_percentnumber
    metals.turkish.gram-altin.timestampinteger
    metals.turkish.gram-gumusobject
    metals.turkish.gram-gumus.alisinteger
    metals.turkish.gram-gumus.change24hFrominteger
    metals.turkish.gram-gumus.change24hPercentnumber
    metals.turkish.gram-gumus.change24hTointeger
    metals.turkish.gram-gumus.formulastring
    metals.turkish.gram-gumus.labelstring
    metals.turkish.gram-gumus.liveSourcestring
    metals.turkish.gram-gumus.open24hnumber
    metals.turkish.gram-gumus.pricenumber
    metals.turkish.gram-gumus.satisnumber
    metals.turkish.gram-gumus.sparklinenumber[]
    metals.turkish.gram-gumus.spread_percentnumber
    metals.turkish.gram-gumus.timestampinteger
    metals.turkish.gramAltinobject
    metals.turkish.gramAltin.alisnumber
    metals.turkish.gramAltin.change24hFrominteger
    metals.turkish.gramAltin.change24hPercentnumber
    metals.turkish.gramAltin.change24hTointeger
    metals.turkish.gramAltin.formulastring
    metals.turkish.gramAltin.labelstring
    metals.turkish.gramAltin.liveSourcestring
    metals.turkish.gramAltin.open24hnumber
    metals.turkish.gramAltin.pricenumber
    metals.turkish.gramAltin.satisnumber
    metals.turkish.gramAltin.sparklinenumber[]
    metals.turkish.gramAltin.spread_percentnumber
    metals.turkish.gramAltin.timestampinteger
    metals.turkish.gramGumusobject
    metals.turkish.gramGumus.alisinteger
    metals.turkish.gramGumus.change24hFrominteger
    metals.turkish.gramGumus.change24hPercentnumber
    metals.turkish.gramGumus.change24hTointeger
    metals.turkish.gramGumus.formulastring
    metals.turkish.gramGumus.labelstring
    metals.turkish.gramGumus.liveSourcestring
    metals.turkish.gramGumus.open24hnumber
    metals.turkish.gramGumus.pricenumber
    metals.turkish.gramGumus.satisnumber
    metals.turkish.gramGumus.sparklinenumber[]
    metals.turkish.gramGumus.spread_percentnumber
    metals.turkish.gramGumus.timestampinteger
    metals.usdTrynumber
    fetched_atstring
    ageinteger

将 Selcoin 数据导出为 CSV

下面的每个列表都可以下载为 CSV 文件,每条记录一行。用上方控制台下面的 "Get all the data, no code" 卡片把列表收集到数据集中。数据集会逐页读取列表,之后可下载为 CSV、JSON 或 JSONL。

列表CSV 列
外汇GET /forexask, base, bid, change24hPercent, high24h, label, low24h, open24h, price, quote, source, symbol, ticker, timestamp, volume24h
K 线GET /klines/{symbol}close, confirm, high, low, open, time, volume

嵌套的值(列表或对象)以 JSON 写入同一个单元格。 数据集和导出如何工作

Selcoin API 常见问题

能获取什么数据、费用多少、如何调用。

Selcoin 有官方 API 吗?

这个 Selcoin API 不是官方 API。它是 maviapi 针对 selcoin.io 上的公开数据提供的独立托管 API,并非由 Selcoin 开发、认可或支持。Selcoin 是否提供自己的开发者 API,请向 Selcoin 咨询。这个 API 用一个 maviapi 密钥即可调用,它的每个端点和返回的每个字段都在本页有文档说明。

Selcoin API 可以获取哪些数据?

Selcoin API 有 7 个端点。每个端点都返回 JSON,参数和字段见上方的文档:

  • GET /forex: 外汇货币对列表,包含实时价格、24 小时开盘价/涨跌/最高价/最低价、成交量、买价/卖价和时间戳(ns)。
  • GET /markets: 现货市场(加密货币及代币化传统金融资产),包含最新价、24 小时涨跌幅、最高价/最低价、基础币和计价币成交量、最优买价/卖价和时间戳(ms)。
  • GET /market/{symbol}: 单个交易对的完整详情:最新价、24 小时开盘价/最高价/最低价/涨跌幅、基础币和计价币成交量、最优买价/卖价、交易所、全称、项目简介和图标 URL。
  • GET /stocks: 美股快照,按传入代码的顺序每个代码返回一条:价格、日涨跌额和涨跌幅、当日开盘价/最高价/最低价/收盘价、成交量、VWAP、前一交易日的 OHLC 和成交量、买价/卖价及其挂单量和价差、时间戳(ns)。
  • GET /metals: 贵金属价格:`ons` 下为 XAU、XAG、XPT 和 XPD 的国际盎司价格(价格、24 小时涨跌幅、最高价/最低价、成交量、时间戳 ms),`turkish` 下为土耳其零售金银品种(克金、四分之一金币、14K 和 22K 金、克银、金银比:价格、买入价 `alis`、卖出价 `satis`、24…
  • GET /klines/{symbol}: 交易对的 OHLC K 线历史,按时间从旧到新排列:开盘时间(ms)、开盘价、最高价、最低价、收盘价、基础币成交量,以及该 K 线是否已收盘(confirm)。
  • GET /overview: 一次调用获取市场看板数据。

Selcoin API 的价格是多少?

调用用您 maviapi 套餐中的积分支付,只有成功的调用才会计费。此 API 的每个端点每次调用消耗 1 个积分。在 Hobby 套餐下(每月 $49,含 250,000 个积分),1,000 次调用约 $0.20。失败的调用不收费。Free 套餐每月提供 1,000 个积分,无需信用卡。超出部分请查看套餐和积分价格。

如何调用 Selcoin API?

向端点发送 HTTPS 请求,并在 Authorization 请求头中带上您的 API 密钥。例如 GET /forex:

cURL
curl 'https://api.maviapi.com/v1/sites/selcoin/forex' \
  -H "Authorization: Bearer $MAVI_KEY"

在您的 API 密钥页面创建密钥,或者先在上方的控制台中用免费测试密钥试用任意端点。

以 JSON 获取 Selcoin 数据有哪些方式?

以 JSON 获取 Selcoin 数据的每种方式适合不同的需求:

  • 自己写爬虫: 完全由自己掌控,不依赖任何服务商,但解析、被拦截的请求以及 selcoin.io 每次改版后的修复都要自己负责。更适合从很少变化的页面一次性获取数据。
  • Apify: 一个 Actor 市场,Actor 由您自己运行,输入、输出和价格由各个 Actor 决定。当已有 Actor 能返回您需要的数据,或者您想托管自己的代码时更合适。参见maviapi 与 Apify 的对比。
  • RapidAPI: 一个汇集了众多提供方 API 的平台,用一个 RapidAPI 密钥调用,每个 API 单独定价。当您已经在使用该平台,并且其中某个 API 能满足需求时更合适。来源:RapidAPI docs。
  • maviapi: 本页的 Selcoin API:7 个带文档的端点、公开的响应结构,以及一个可用于整个目录的密钥。当这些数据是您产品的一部分,而您不想维护爬虫时更合适。

selcoin.io 改版后会怎样?

您的代码不需要改动。selcoin.io 修改页面时,maviapi 会让 Selcoin API 保持可用,您继续调用同样的端点,并得到本页文档所述结构的 JSON。它当前的运行状况见状态页,变更记录见它的更新日志。

更新会破坏我的 Selcoin API 集成吗?

不会。您正在使用的端点,其结构永远不会改变:新的字段、可选参数和端点只会加在旁边,会破坏调用的变更则作为新端点发布。请忽略您不认识的响应字段,新内容请关注更新日志。

  • Pritam Bullion API

    Rajkot 的 Pritam Bullion Pvt Ltd 提供的实时金银报价:每款黄金和白银产品及其当前卖出价,另有 MCX 和现货参考价。

  • Booking.com API

    按地点和入住日期搜索 Booking.com 的住宿,查看住宿详情、价格和住客评分。

  • Hepsiburada API

    来自 Hepsiburada(hepsiburada.com)的商品搜索列表:按搜索词返回商品名称、品牌、价格、评分和卖家(商家)。

  • A101 API

    A101 Kapıda(A101 的线上超市)的商品:名称、门店价格、折扣标签和库存,可按类别浏览。

  • GSM Servix API

    gsmservix.net 的 GSM 服务目录:手机网络解锁、IMEI 查询、FRP 和工具点数、工具租用,附价格、交付时间和下单要求。