最后更新
更新日志/forex1 credit per call外汇
外汇货币对列表,包含实时价格、24 小时开盘价/涨跌/最高价/最低价、成交量、买价/卖价和时间戳(ns)。
Authorization: Bearer <key> on every request.Parameters
base currency code to keep, e.g. "EUR" (optional)
quote currency code to keep, e.g. "TRY" (optional)
text matched against the pair symbol, ticker and label, e.g. "usd" (optional)
Response fields
sourcee.g."Massive"pairs
aske.g.55.71351basee.g."EUR"bide.g.55.70406change24hPercente.g.-0.0399high24he.g.55.82053labele.g."EUR/TRY"low24he.g.55.639open24he.g.55.7263pricee.g.55.70436quotee.g."TRY"sourcee.g."Massive"symbole.g."EUR-TRY"tickere.g."C:EURTRY"timestampe.g.1795774413000000000volume24he.g.36389pagination
counte.g.1146has_moree.g.falsenext_cursorfetched_ate.g."2026-11-27T10:13:35.536Z"agee.g.0curl "https://api.maviapi.com/v1/sites/selcoin/forex" \-H "Authorization: Bearer $MAVI_KEY"
{
"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.
https://mcp.maviapi.com/mcpOr 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 importPaste 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 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 base string / query 否 base currency code to keep, e.g. "EUR" (optional) quote string / query 否 quote currency code to keep, e.g. "TRY" (optional) q string / query 否 text matched against the pair symbol, ticker and label, e.g. "usd" (optional) 响应字段 字段 类型 说明 source string pairs object[] pairs[].ask number pairs[].base string pairs[].bid number pairs[].change24hPercent number pairs[].high24h number pairs[].label string pairs[].low24h number pairs[].open24h number pairs[].price number pairs[].quote string pairs[].source string pairs[].symbol string pairs[].ticker string pairs[].timestamp integer pairs[].volume24h integer pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 市场列表
GET /markets现货市场(加密货币及代币化传统金融资产),包含最新价、24 小时涨跌幅、最高价/最低价、基础币和计价币成交量、最优买价/卖价和时间戳(ms)。
GET /markets 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 assetClass string / query 否 "all", "crypto" or "tradfi" 可选值: all, crypto, tradfi. quote string / query 否 quote currency to keep, e.g. "USDT" (optional) q string / query 否 text matched against symbol, base, full name or project, e.g. "bitcoin" (optional) sort string / 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} 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 symbol string / path 是 market pair as BASE-QUOTE, e.g. "BTC-USDT" 响应字段 字段 类型 说明 ask number base string bid number change24hPercent number exchange string fullName string high24h number icon string introduce string last number low24h number open24h number project string quote string symbol string timestamp integer tradingViewSymbol string volume24hBase number volume24hQuote number fetched_at string age integer - 股票
GET /stocks美股快照,按传入代码的顺序每个代码返回一条:价格、日涨跌额和涨跌幅、当日开盘价/最高价/最低价/收盘价、成交量、VWAP、前一交易日的 OHLC 和成交量、买价/卖价及其挂单量和价差、时间戳(ns)。未知代码不返回。
GET /stocks 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 tickers string / 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 的参数和响应字段
响应字段 字段 类型 说明 ons object ons.XAG object ons.XAG.change24hPercent integer ons.XAG.high24h number ons.XAG.label string ons.XAG.low24h number ons.XAG.price number ons.XAG.symbol string ons.XAG.timestamp integer ons.XAG.volume24h number ons.XAU object ons.XAU.change24hPercent number ons.XAU.high24h number ons.XAU.label string ons.XAU.low24h number ons.XAU.price number ons.XAU.symbol string ons.XAU.timestamp integer ons.XAU.volume24h number ons.XPD object ons.XPD.change24hPercent number ons.XPD.high24h number ons.XPD.label string ons.XPD.low24h number ons.XPD.price number ons.XPD.symbol string ons.XPD.timestamp integer ons.XPD.volume24h number ons.XPT object ons.XPT.change24hPercent number ons.XPT.high24h number ons.XPT.label string ons.XPT.low24h number ons.XPT.price number ons.XPT.symbol string ons.XPT.timestamp integer ons.XPT.volume24h number source string turkish object turkish.altin-14-ayar object turkish.altin-14-ayar.alis number turkish.altin-14-ayar.change24hFrom integer turkish.altin-14-ayar.change24hPercent number turkish.altin-14-ayar.change24hTo integer turkish.altin-14-ayar.formula string turkish.altin-14-ayar.label string turkish.altin-14-ayar.liveSource string turkish.altin-14-ayar.open24h number turkish.altin-14-ayar.price number turkish.altin-14-ayar.satis number turkish.altin-14-ayar.sparkline number[] turkish.altin-14-ayar.spread_percent integer turkish.altin-14-ayar.timestamp integer turkish.altin-22-ayar object turkish.altin-22-ayar.alis number turkish.altin-22-ayar.change24hFrom integer turkish.altin-22-ayar.change24hPercent number turkish.altin-22-ayar.change24hTo integer turkish.altin-22-ayar.formula string turkish.altin-22-ayar.label string turkish.altin-22-ayar.liveSource string turkish.altin-22-ayar.open24h number turkish.altin-22-ayar.price number turkish.altin-22-ayar.satis number turkish.altin-22-ayar.sparkline number[] turkish.altin-22-ayar.spread_percent integer turkish.altin-22-ayar.timestamp integer turkish.altin14Ayar object turkish.altin14Ayar.alis number turkish.altin14Ayar.change24hFrom integer turkish.altin14Ayar.change24hPercent number turkish.altin14Ayar.change24hTo integer turkish.altin14Ayar.formula string turkish.altin14Ayar.label string turkish.altin14Ayar.liveSource string turkish.altin14Ayar.open24h number turkish.altin14Ayar.price number turkish.altin14Ayar.satis number turkish.altin14Ayar.sparkline number[] turkish.altin14Ayar.spread_percent integer turkish.altin14Ayar.timestamp integer turkish.altin22Ayar object turkish.altin22Ayar.alis number turkish.altin22Ayar.change24hFrom integer turkish.altin22Ayar.change24hPercent number turkish.altin22Ayar.change24hTo integer turkish.altin22Ayar.formula string turkish.altin22Ayar.label string turkish.altin22Ayar.liveSource string turkish.altin22Ayar.open24h number turkish.altin22Ayar.price number turkish.altin22Ayar.satis number turkish.altin22Ayar.sparkline number[] turkish.altin22Ayar.spread_percent integer turkish.altin22Ayar.timestamp integer turkish.ceyrek-altin object turkish.ceyrek-altin.alis number turkish.ceyrek-altin.change24hFrom integer turkish.ceyrek-altin.change24hPercent number turkish.ceyrek-altin.change24hTo integer turkish.ceyrek-altin.formula string turkish.ceyrek-altin.label string turkish.ceyrek-altin.liveSource string turkish.ceyrek-altin.open24h number turkish.ceyrek-altin.price number turkish.ceyrek-altin.satis number turkish.ceyrek-altin.sparkline number[] turkish.ceyrek-altin.spread_percent number turkish.ceyrek-altin.timestamp integer turkish.ceyrekAltin object turkish.ceyrekAltin.alis number turkish.ceyrekAltin.change24hFrom integer turkish.ceyrekAltin.change24hPercent number turkish.ceyrekAltin.change24hTo integer turkish.ceyrekAltin.formula string turkish.ceyrekAltin.label string turkish.ceyrekAltin.liveSource string turkish.ceyrekAltin.open24h number turkish.ceyrekAltin.price number turkish.ceyrekAltin.satis number turkish.ceyrekAltin.sparkline number[] turkish.ceyrekAltin.spread_percent number turkish.ceyrekAltin.timestamp integer turkish.gold-silver-ratio object turkish.gold-silver-ratio.alis number turkish.gold-silver-ratio.change24hFrom integer turkish.gold-silver-ratio.change24hPercent number turkish.gold-silver-ratio.change24hTo integer turkish.gold-silver-ratio.formula string turkish.gold-silver-ratio.label string turkish.gold-silver-ratio.liveSource string turkish.gold-silver-ratio.open24h number turkish.gold-silver-ratio.price number turkish.gold-silver-ratio.satis number turkish.gold-silver-ratio.sparkline number[] turkish.gold-silver-ratio.spread_percent integer turkish.gold-silver-ratio.timestamp integer turkish.goldSilverRatio object turkish.goldSilverRatio.alis number turkish.goldSilverRatio.change24hFrom integer turkish.goldSilverRatio.change24hPercent number turkish.goldSilverRatio.change24hTo integer turkish.goldSilverRatio.formula string turkish.goldSilverRatio.label string turkish.goldSilverRatio.liveSource string turkish.goldSilverRatio.open24h number turkish.goldSilverRatio.price number turkish.goldSilverRatio.satis number turkish.goldSilverRatio.sparkline number[] turkish.goldSilverRatio.spread_percent integer turkish.goldSilverRatio.timestamp integer turkish.gram-altin object turkish.gram-altin.alis number turkish.gram-altin.change24hFrom integer turkish.gram-altin.change24hPercent number turkish.gram-altin.change24hTo integer turkish.gram-altin.formula string turkish.gram-altin.label string turkish.gram-altin.liveSource string turkish.gram-altin.open24h number turkish.gram-altin.price number turkish.gram-altin.satis number turkish.gram-altin.sparkline number[] turkish.gram-altin.spread_percent number turkish.gram-altin.timestamp integer turkish.gram-gumus object turkish.gram-gumus.alis integer turkish.gram-gumus.change24hFrom integer turkish.gram-gumus.change24hPercent number turkish.gram-gumus.change24hTo integer turkish.gram-gumus.formula string turkish.gram-gumus.label string turkish.gram-gumus.liveSource string turkish.gram-gumus.open24h number turkish.gram-gumus.price number turkish.gram-gumus.satis number turkish.gram-gumus.sparkline number[] turkish.gram-gumus.spread_percent number turkish.gram-gumus.timestamp integer turkish.gramAltin object turkish.gramAltin.alis number turkish.gramAltin.change24hFrom integer turkish.gramAltin.change24hPercent number turkish.gramAltin.change24hTo integer turkish.gramAltin.formula string turkish.gramAltin.label string turkish.gramAltin.liveSource string turkish.gramAltin.open24h number turkish.gramAltin.price number turkish.gramAltin.satis number turkish.gramAltin.sparkline number[] turkish.gramAltin.spread_percent number turkish.gramAltin.timestamp integer turkish.gramGumus object turkish.gramGumus.alis integer turkish.gramGumus.change24hFrom integer turkish.gramGumus.change24hPercent number turkish.gramGumus.change24hTo integer turkish.gramGumus.formula string turkish.gramGumus.label string turkish.gramGumus.liveSource string turkish.gramGumus.open24h number turkish.gramGumus.price number turkish.gramGumus.satis number turkish.gramGumus.sparkline number[] turkish.gramGumus.spread_percent number turkish.gramGumus.timestamp integer usdTry number fetched_at string age integer - K 线
GET /klines/{symbol}交易对的 OHLC K 线历史,按时间从旧到新排列:开盘时间(ms)、开盘价、最高价、最低价、收盘价、基础币成交量,以及该 K 线是否已收盘(confirm)。
GET /klines/{symbol} 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 symbol string / path 是 market pair as BASE-QUOTE, e.g. "BTC-USDT" interval string / query 否 candle length, one of 1m, 5m, 15m, 30m, 1H, 4H, 1D, 1W, 1M 可选值: 1m, 5m, 15m, 30m, 1H, 4H, 1D, 1W, 1M. count integer / query 否 number of most recent candles, 1 to 300 (fewer when the pair has less history) 响应字段 字段 类型 说明 symbol string interval string count integer candles object[] candles[].close number candles[].confirm boolean candles[].high number candles[].low number candles[].open number candles[].time integer candles[].volume number pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 概览
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 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 kind string / query 否 which sections to include: "all", "crypto", "forex" or "metals" 可选值: all, crypto, forex, metals. count integer / query 否 number of pairs in each crypto top list, 1 to 20 响应字段 字段 类型 说明 kind string count integer crypto object crypto.total integer crypto.gainers object[] crypto.gainers[].ask number crypto.gainers[].assetClass string crypto.gainers[].base string crypto.gainers[].bid number crypto.gainers[].change24hPercent number crypto.gainers[].fullName null crypto.gainers[].high24h number crypto.gainers[].instType string crypto.gainers[].last number crypto.gainers[].low24h number crypto.gainers[].project null crypto.gainers[].quote string crypto.gainers[].symbol string crypto.gainers[].timestamp integer crypto.gainers[].tradingViewSymbol string crypto.gainers[].volume24hBase number crypto.gainers[].volume24hQuote number crypto.losers object[] crypto.losers[].ask integer crypto.losers[].assetClass string crypto.losers[].base string crypto.losers[].bid number crypto.losers[].change24hPercent number crypto.losers[].fullName null crypto.losers[].high24h integer crypto.losers[].instType string crypto.losers[].last number crypto.losers[].low24h number crypto.losers[].project null crypto.losers[].quote string crypto.losers[].symbol string crypto.losers[].timestamp integer crypto.losers[].tradingViewSymbol string crypto.losers[].volume24hBase integer crypto.losers[].volume24hQuote number crypto.top_volume object[] crypto.top_volume[].ask number crypto.top_volume[].assetClass string crypto.top_volume[].base string crypto.top_volume[].bid number crypto.top_volume[].change24hPercent number crypto.top_volume[].fullName null crypto.top_volume[].high24h number crypto.top_volume[].instType string crypto.top_volume[].last number crypto.top_volume[].low24h number crypto.top_volume[].project null crypto.top_volume[].quote string crypto.top_volume[].symbol string crypto.top_volume[].timestamp integer crypto.top_volume[].tradingViewSymbol string crypto.top_volume[].volume24hBase number crypto.top_volume[].volume24hQuote number forex object forex.majors object[] forex.majors[].ask number forex.majors[].base string forex.majors[].bid number forex.majors[].change24hPercent number forex.majors[].high24h number forex.majors[].label string forex.majors[].low24h number forex.majors[].open24h number forex.majors[].price number forex.majors[].quote string forex.majors[].source string forex.majors[].symbol string forex.majors[].ticker string forex.majors[].timestamp integer forex.majors[].volume24h integer metals object metals.ons object metals.ons.XAG object metals.ons.XAG.change24hPercent integer metals.ons.XAG.high24h number metals.ons.XAG.label string metals.ons.XAG.low24h number metals.ons.XAG.price number metals.ons.XAG.symbol string metals.ons.XAG.timestamp integer metals.ons.XAG.volume24h number metals.ons.XAU object metals.ons.XAU.change24hPercent number metals.ons.XAU.high24h number metals.ons.XAU.label string metals.ons.XAU.low24h number metals.ons.XAU.price number metals.ons.XAU.symbol string metals.ons.XAU.timestamp integer metals.ons.XAU.volume24h number metals.ons.XPD object metals.ons.XPD.change24hPercent number metals.ons.XPD.high24h number metals.ons.XPD.label string metals.ons.XPD.low24h number metals.ons.XPD.price number metals.ons.XPD.symbol string metals.ons.XPD.timestamp integer metals.ons.XPD.volume24h number metals.ons.XPT object metals.ons.XPT.change24hPercent number metals.ons.XPT.high24h number metals.ons.XPT.label string metals.ons.XPT.low24h number metals.ons.XPT.price number metals.ons.XPT.symbol string metals.ons.XPT.timestamp integer metals.ons.XPT.volume24h number metals.source string metals.turkish object metals.turkish.altin-14-ayar object metals.turkish.altin-14-ayar.alis number metals.turkish.altin-14-ayar.change24hFrom integer metals.turkish.altin-14-ayar.change24hPercent number metals.turkish.altin-14-ayar.change24hTo integer metals.turkish.altin-14-ayar.formula string metals.turkish.altin-14-ayar.label string metals.turkish.altin-14-ayar.liveSource string metals.turkish.altin-14-ayar.open24h number metals.turkish.altin-14-ayar.price number metals.turkish.altin-14-ayar.satis number metals.turkish.altin-14-ayar.sparkline number[] metals.turkish.altin-14-ayar.spread_percent integer metals.turkish.altin-14-ayar.timestamp integer metals.turkish.altin-22-ayar object metals.turkish.altin-22-ayar.alis number metals.turkish.altin-22-ayar.change24hFrom integer metals.turkish.altin-22-ayar.change24hPercent number metals.turkish.altin-22-ayar.change24hTo integer metals.turkish.altin-22-ayar.formula string metals.turkish.altin-22-ayar.label string metals.turkish.altin-22-ayar.liveSource string metals.turkish.altin-22-ayar.open24h number metals.turkish.altin-22-ayar.price number metals.turkish.altin-22-ayar.satis number metals.turkish.altin-22-ayar.sparkline number[] metals.turkish.altin-22-ayar.spread_percent integer metals.turkish.altin-22-ayar.timestamp integer metals.turkish.altin14Ayar object metals.turkish.altin14Ayar.alis number metals.turkish.altin14Ayar.change24hFrom integer metals.turkish.altin14Ayar.change24hPercent number metals.turkish.altin14Ayar.change24hTo integer metals.turkish.altin14Ayar.formula string metals.turkish.altin14Ayar.label string metals.turkish.altin14Ayar.liveSource string metals.turkish.altin14Ayar.open24h number metals.turkish.altin14Ayar.price number metals.turkish.altin14Ayar.satis number metals.turkish.altin14Ayar.sparkline number[] metals.turkish.altin14Ayar.spread_percent integer metals.turkish.altin14Ayar.timestamp integer metals.turkish.altin22Ayar object metals.turkish.altin22Ayar.alis number metals.turkish.altin22Ayar.change24hFrom integer metals.turkish.altin22Ayar.change24hPercent number metals.turkish.altin22Ayar.change24hTo integer metals.turkish.altin22Ayar.formula string metals.turkish.altin22Ayar.label string metals.turkish.altin22Ayar.liveSource string metals.turkish.altin22Ayar.open24h number metals.turkish.altin22Ayar.price number metals.turkish.altin22Ayar.satis number metals.turkish.altin22Ayar.sparkline number[] metals.turkish.altin22Ayar.spread_percent integer metals.turkish.altin22Ayar.timestamp integer metals.turkish.ceyrek-altin object metals.turkish.ceyrek-altin.alis number metals.turkish.ceyrek-altin.change24hFrom integer metals.turkish.ceyrek-altin.change24hPercent number metals.turkish.ceyrek-altin.change24hTo integer metals.turkish.ceyrek-altin.formula string metals.turkish.ceyrek-altin.label string metals.turkish.ceyrek-altin.liveSource string metals.turkish.ceyrek-altin.open24h number metals.turkish.ceyrek-altin.price number metals.turkish.ceyrek-altin.satis number metals.turkish.ceyrek-altin.sparkline number[] metals.turkish.ceyrek-altin.spread_percent number metals.turkish.ceyrek-altin.timestamp integer metals.turkish.ceyrekAltin object metals.turkish.ceyrekAltin.alis number metals.turkish.ceyrekAltin.change24hFrom integer metals.turkish.ceyrekAltin.change24hPercent number metals.turkish.ceyrekAltin.change24hTo integer metals.turkish.ceyrekAltin.formula string metals.turkish.ceyrekAltin.label string metals.turkish.ceyrekAltin.liveSource string metals.turkish.ceyrekAltin.open24h number metals.turkish.ceyrekAltin.price number metals.turkish.ceyrekAltin.satis number metals.turkish.ceyrekAltin.sparkline number[] metals.turkish.ceyrekAltin.spread_percent number metals.turkish.ceyrekAltin.timestamp integer metals.turkish.gold-silver-ratio object metals.turkish.gold-silver-ratio.alis number metals.turkish.gold-silver-ratio.change24hFrom integer metals.turkish.gold-silver-ratio.change24hPercent number metals.turkish.gold-silver-ratio.change24hTo integer metals.turkish.gold-silver-ratio.formula string metals.turkish.gold-silver-ratio.label string metals.turkish.gold-silver-ratio.liveSource string metals.turkish.gold-silver-ratio.open24h number metals.turkish.gold-silver-ratio.price number metals.turkish.gold-silver-ratio.satis number metals.turkish.gold-silver-ratio.sparkline number[] metals.turkish.gold-silver-ratio.spread_percent integer metals.turkish.gold-silver-ratio.timestamp integer metals.turkish.goldSilverRatio object metals.turkish.goldSilverRatio.alis number metals.turkish.goldSilverRatio.change24hFrom integer metals.turkish.goldSilverRatio.change24hPercent number metals.turkish.goldSilverRatio.change24hTo integer metals.turkish.goldSilverRatio.formula string metals.turkish.goldSilverRatio.label string metals.turkish.goldSilverRatio.liveSource string metals.turkish.goldSilverRatio.open24h number metals.turkish.goldSilverRatio.price number metals.turkish.goldSilverRatio.satis number metals.turkish.goldSilverRatio.sparkline number[] metals.turkish.goldSilverRatio.spread_percent integer metals.turkish.goldSilverRatio.timestamp integer metals.turkish.gram-altin object metals.turkish.gram-altin.alis number metals.turkish.gram-altin.change24hFrom integer metals.turkish.gram-altin.change24hPercent number metals.turkish.gram-altin.change24hTo integer metals.turkish.gram-altin.formula string metals.turkish.gram-altin.label string metals.turkish.gram-altin.liveSource string metals.turkish.gram-altin.open24h number metals.turkish.gram-altin.price number metals.turkish.gram-altin.satis number metals.turkish.gram-altin.sparkline number[] metals.turkish.gram-altin.spread_percent number metals.turkish.gram-altin.timestamp integer metals.turkish.gram-gumus object metals.turkish.gram-gumus.alis integer metals.turkish.gram-gumus.change24hFrom integer metals.turkish.gram-gumus.change24hPercent number metals.turkish.gram-gumus.change24hTo integer metals.turkish.gram-gumus.formula string metals.turkish.gram-gumus.label string metals.turkish.gram-gumus.liveSource string metals.turkish.gram-gumus.open24h number metals.turkish.gram-gumus.price number metals.turkish.gram-gumus.satis number metals.turkish.gram-gumus.sparkline number[] metals.turkish.gram-gumus.spread_percent number metals.turkish.gram-gumus.timestamp integer metals.turkish.gramAltin object metals.turkish.gramAltin.alis number metals.turkish.gramAltin.change24hFrom integer metals.turkish.gramAltin.change24hPercent number metals.turkish.gramAltin.change24hTo integer metals.turkish.gramAltin.formula string metals.turkish.gramAltin.label string metals.turkish.gramAltin.liveSource string metals.turkish.gramAltin.open24h number metals.turkish.gramAltin.price number metals.turkish.gramAltin.satis number metals.turkish.gramAltin.sparkline number[] metals.turkish.gramAltin.spread_percent number metals.turkish.gramAltin.timestamp integer metals.turkish.gramGumus object metals.turkish.gramGumus.alis integer metals.turkish.gramGumus.change24hFrom integer metals.turkish.gramGumus.change24hPercent number metals.turkish.gramGumus.change24hTo integer metals.turkish.gramGumus.formula string metals.turkish.gramGumus.label string metals.turkish.gramGumus.liveSource string metals.turkish.gramGumus.open24h number metals.turkish.gramGumus.price number metals.turkish.gramGumus.satis number metals.turkish.gramGumus.sparkline number[] metals.turkish.gramGumus.spread_percent number metals.turkish.gramGumus.timestamp integer metals.usdTry number fetched_at string age integer
将 Selcoin 数据导出为 CSV
下面的每个列表都可以下载为 CSV 文件,每条记录一行。用上方控制台下面的 "Get all the data, no code" 卡片把列表收集到数据集中。数据集会逐页读取列表,之后可下载为 CSV、JSON 或 JSONL。
| 列表 | CSV 列 |
|---|---|
外汇GET /forex | ask, 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 '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 API 集成吗?
不会。您正在使用的端点,其结构永远不会改变:新的字段、可选参数和端点只会加在旁边,会破坏调用的变更则作为新端点发布。请忽略您不认识的响应字段,新内容请关注更新日志。
相关 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 和工具点数、工具租用,附价格、交付时间和下单要求。