BTC/USD Price Oracle

-

 
Last update
Checking...
Current Ledger
Fetching historical oracle data
(connecting...)
Legend: Median Mean (trimmed set) Standard Deviation (trimmed set)
Live price updates
Providers
...



API Access

XRPL Command:
Generating...
Pair details (XRPLWin API):
API Endpoint:
https://xwa.xrplwin.com/v1/oracles?base=BTC&quote=USD
SHELL:
curl --request GET \
     --url https://xwa.xrplwin.com/v1/oracles?base=BTC&quote=USD \
     --header 'Content-Type: application/json' \
     --header 'accept: application/json'
Node:
const url = 'https://xwa.xrplwin.com/v1/oracles?base=BTC&quote=USD';
const options = {
  method: 'GET',
  headers: {accept: 'application/json', 'Content-Type': 'application/json'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
Javascript (Fetch):
const options = {
  method: 'GET',
  headers: {accept: 'application/json', 'Content-Type': 'application/json'}
};

fetch('https://xwa.xrplwin.com/v1/oracles?base=BTC&quote=USD', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
Python:
# python -m pip install requests
import requests

url = "https://xwa.xrplwin.com/v1/oracles?base=BTC&quote=USD"

headers = {
    "accept": "application/json",
    "Content-Type": "application/json"
}

response = requests.get(url, headers=headers)

print(response.text)