You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
openapi: 3.0.0info:
title: CoinMarketCap APIversion: "1.0"servers:
- url: https://pro-api.coinmarketcap.compaths:
/v2/cryptocurrency/quotes/latest:
get:
summary: Get the latest cryptocurrency market quotes.operationId: getLatestQuotesparameters:
- in: queryname: symbolrequired: trueschema:
type: stringdescription: The symbol of the cryptocurrency to get the latest market quote for.
- in: queryname: convertschema:
type: stringdescription: The fiat currency or cryptocurrency to convert the market quotes into.responses:
'200':
description: Successful response with the latest market quotes.content:
application/json:
schema:
$ref: '#/components/schemas/LatestQuotesResponse'security:
- apiKeyAuth: []/v3/cryptocurrency/quotes/historical:
get:
summary: Get historical market quotes for a cryptocurrency on a specific date.operationId: getHistoricalQuotesparameters:
- in: queryname: symbolrequired: trueschema:
type: stringdescription: The symbol of the cryptocurrency to get historical market quotes for.
- in: queryname: time_startschema:
type: stringformat: datedescription: Timestamp (Unix or ISO 8601) to start returning quotes for.
- in: queryname: time_endschema:
type: stringformat: datedescription: Timestamp (Unix or ISO 8601) to stop returning quotes for (inclusive).
- in: queryname: countschema:
type: numberdescription: The number of interval periods to return results for.
- in: queryname: intervalschema:
type: stringdefault: "daily"description: Interval of time to return data points for.
- in: queryname: convertschema:
type: stringdescription: The fiat currency or cryptocurrency to convert the historical market quotes into.responses:
'200':
description: Successful response with the historical market quotes.content:
application/json:
schema:
$ref: '#/components/schemas/HistoricalQuotesResponse'security:
- apiKeyAuth: []/v1/cryptocurrency/trending/latest:
get:
summary: Get the latest trending cryptocurrencies.operationId: getTrendingCryptocurrenciesparameters:
- in: queryname: startschema:
type: integerdescription: The starting index for the returned cryptocurrencies list.
- in: queryname: limitschema:
type: integerdescription: The number of cryptocurrencies to return. Optionally specify the number of results to return. Use this parameter and the "start" parameter to determine your own pagination size.
- in: queryname: time_periodschema:
type: stringdefault: "24h"description: The starting index for the returned cryptocurrencies list.
- in: queryname: convertschema:
type: stringdescription: The fiat currency or cryptocurrency to convert the market quotes into.responses:
'200':
description: A list of the latest trending cryptocurrencies.content:
application/json:
schema:
$ref: '#/components/schemas/TrendingLatestResponse'components:
securitySchemes:
apiKeyAuth:
type: apiKeyin: headername: X-CMC_PRO_API_KEYschemas:
LatestQuotesResponse:
type: objectproperties:
data:
type: objectadditionalProperties:
$ref: '#/components/schemas/CryptocurrencyQuote'CryptocurrencyQuote:
type: objectproperties:
price:
type: numbervolume_24h:
type: numbermarket_cap:
type: numberpercent_change_24h:
type: numberHistoricalQuotesResponse:
type: objectproperties:
data:
$ref: '#/components/schemas/HistoricalCryptocurrencyData'HistoricalCryptocurrencyData:
type: objectproperties:
id:
type: integername:
type: stringsymbol:
type: stringis_active:
type: integeris_fiat:
type: integerquotes:
type: arrayitems:
$ref: '#/components/schemas/QuoteDetail'QuoteDetail:
type: objectproperties:
timestamp:
type: stringformat: datequote:
$ref: '#/components/schemas/QuoteCurrency'QuoteCurrency:
type: objectproperties:
USD:
$ref: '#/components/schemas/CurrencyDetail'CurrencyDetail:
type: objectproperties:
price:
type: numbervolume_24h:
type: numbermarket_cap:
type: numbercirculating_supply:
type: numbertotal_supply:
type: numbertimestamp:
type: stringformat: dateTrendingCryptocurrency:
type: objectproperties:
id:
type: integername:
type: stringsymbol:
type: stringslug:
type: stringcmc_rank:
type: integeris_active:
type: booleanis_fiat:
type: integernum_market_pairs:
type: integercirculating_supply:
type: numbertotal_supply:
type: numbermax_supply:
type: numbertags:
type: arrayitems:
type: stringquote:
type: objectadditionalProperties:
$ref: '#/components/schemas/Quote'Quote:
type: objectproperties:
price:
type: numbervolume_24h:
type: numberpercent_change_1h:
type: numberpercent_change_24h:
type: numberpercent_change_7d:
type: numbermarket_cap:
type: numberTrendingLatestResponse:
type: objectproperties:
data:
type: arrayitems:
$ref: '#/components/schemas/TrendingCryptocurrency'
The text was updated successfully, but these errors were encountered:
You are a crypto expert who provides brief, to-the-point information and insights on cryptocurrencies. When users inquire about cryptocurrency prices or information, you now also retrieve the information of spot trading assets the user owns related to the queried cryptocurrency from the spot.techbay.club API. For the most current price data and real-time updates, you use the CoinMarketCap API to ensure the information reflects the latest market conditions. When displaying data, especially when presenting asset information or price comparisons, you present it in a table format whenever possible, making it easier for users to digest and compare the information. Your responses should be concise and include both your asset status for the specific cryptocurrency and the real-time market price, offering quick insights to help users grasp the essential information.
目前我们通过 coinmarket cap 只能获得 1 个月内的数据。 我们希望能够获取到更早的数据, 可以通过我们自己的 position 的项目获取到。
但是如何在 gpts 里面支持多个 api, 需要弄明白怎么使用, 或者我们通过我们自己的 api, 集成进 coinmarket cap 也是可以的。
我们自己的 coin 数据拉取记录来自: https://github.com/brtr/coin_elite 这个项目
下面是我目前在 gpts 里面创建的 actions, 调用的是 coinmarket cap 的 api, 请做进一步的实现
https://chat.openai.com/g/g-VnVpO5spV-crypto-quant-expert
The text was updated successfully, but these errors were encountered: