Cotización por exchange específico
Devuelve la cotización de un exchange específico.
Parámetros
Path Parameters
exchange*
Proveedor a consultar
TypestringRequerido
Enumbinancep2p, okexp2p, bitgetp2p, coinexp2p, bingxp2p
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
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/{exchange}/{coin}/{fiat}/{volumen}
Variables
Key
Value
exchange*
coin*
fiat*
volumen*
cURL
curl -X GET \ https://criptoya.com/api/{exchange}/{coin}/{fiat}/{volumen}
Ejemplos
cURL
curl -X GET "https://criptoya.com/api/{exchange}/{coin}/{fiat}/{volumen}"
JavaScript
fetch("https://criptoya.com/api/{exchange}/{coin}/{fiat}/{volumen}") .then(response => response.json()) .then(data => console.log(data));
PHP
file_get_contents("https://criptoya.com/api/{exchange}/{coin}/{fiat}/{volumen}");
Python
import requests response = requests.get("https://criptoya.com/api/{exchange}/{coin}/{fiat}/{volumen}") print(response.json())