Skip to content

Cotización general

Devuelve la cotización general para todas las casas de cambio.

Parámetros

Path Parameters

coin*
Cripto a operar
TypestringRequerido
EnumBTC, ETH, USDT, USDC, DAI, UXD, USDP, WLD, BNB, SOL, XRP, ADA, AVAX, DOGE, TRX, LINK, DOT, MATIC, SHIB, LTC, BCH, EOS, XLM, FTM, AAVE, UNI, ALGO, BAT, PAXG, CAKE, AXS, SLP, MANA, SAND, CHZ
fiat*
Moneda contra la que se opera, puede ser fiat o stablecoin
TypestringRequerido
EnumARS, BRL, CLP, COP, MXN, PEN, VES, BOB, UYU, DOP, PYG, USD, EUR
volumen*
Volumen a operar, utilizar el punto como separador decimal
TypenumberRequerido

Respuesta

200Cotización exitosa
Content-Type:application/json
asknumber
totalAsknumber
bidnumber
totalBidnumber
timeinteger
JSON
{
  "ask": "number",
  "totalAsk": "number",
  "bid": "number",
  "totalBid": "number",
  "time": "integer"
}
GET/api/{coin}/{fiat}/{volumen}

Variables

Key
Value
coin*
fiat*
volumen*
cURL
curl -X GET \
 https://criptoya.com/api/{coin}/{fiat}/{volumen}

Ejemplos

cURL
curl -X GET "https://criptoya.com/api/{coin}/{fiat}/{volumen}"
JavaScript
fetch("https://criptoya.com/api/{coin}/{fiat}/{volumen}")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("https://criptoya.com/api/{coin}/{fiat}/{volumen}");
Python
import requests
response = requests.get("https://criptoya.com/api/{coin}/{fiat}/{volumen}")
print(response.json())
Powered by VitePress Theme OpenAPI