Current price

Get the current prices for the requested pair

POST https://price.api.watchdata.io/price/current_price?api_key=your_api_key

Parameters

base_symbol - the first ticker about which you are requesting for a rate;

quote_symbol - the second ticker to which you get the rate relative to the first ticker.

Request

{
    "base_symbol": "BTC",
    "quote_symbol": "ETH"
}

Returns

base_symbol - the first ticker about which you are requesting for a course;

quote_symbol - the second ticker to which you get the rate relative to the first ticker;

price - current price;

created_at - date relative to which the current price is provided.

Response

{
    "base_symbol": "BTC",
    "quote_symbol": "ETH",
    "price": 13.745515525559787,
    "created_at": "2022-05-04T09:36:51+00:00"
}

Last updated