probe-gate
Demonstrates fetching the current exchange rate between two currencies
curl 'https://api.exchange.cryptomkt.com/api/3/public/price/rate?from=BTC&to=USDT'
import requests
resp = requests.get(
"https://api.exchange.cryptomkt.com/api/3/public/price/rate",
params={
'from': 'BTC',
'to': 'USDT',
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("cryptomkt")
result = api.fetch("public/price/rate", from="BTC", to="USDT")
for item in result:
print(item)
const resp = await fetch("https://api.exchange.cryptomkt.com/api/3/public/price/rate?from=BTC&to=USDT");
const data = await resp.json();