Jump to
Ctrl
+
/

Get Exchange Rate By Asset Symbols

GET
/market-data/exchange-rates/by-symbols/{fromAssetSymbol}/{toAssetSymbol}

Through this endpoint customers can obtain exchange rates by asset symbols. The process represents the exchange rate value of a single unit of one asset versus another one. Data is provided per unique asset symbol.

Path Parameters

fromAssetSymbol string Required

Defines the base asset symbol to get a rate for.

toAssetSymbol string Required

Defines the relation asset symbol in which the base asset rate will be displayed.

Query Parameters

context string Optional

In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

calculationTimestamp integer Optional

Defines the time of the market data used to calculate the exchange rate in UNIX Timestamp. Oldest possible timestamp is 30 days.

Response Schema

apiVersion string Required

Specifies the version of the API that incorporates this endpoint.

2021-03-20
requestId string Required

Defines the ID of the request. The requestId is generated by Crypto APIs and it's unique for every request.

601c1710034ed6d407996b30
context string Optional

In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

yourExampleString
data object Required
item object Required
calculationTimestamp integer Required

Defines the time of the market data used to calculate the exchange rate in UNIX Timestamp. Oldest possible timestamp is 30 days.

1618577849
fromAssetId string Required

Defines the base asset Reference ID to get a rate for.

5b1ea92e584bf50020130612
fromAssetSymbol string Required

Defines the base asset symbol to get a rate for.

BTC
rate string Required

Defines the exchange rate between assets calculated by weighted average of the last trades in every exchange for the last 24 hours by giving more weight to exchanges with higher volume.

54768.26745499848
toAssetId string Required

Defines the relation asset Reference ID in which the base asset rate will be displayed.

5b1ea92e584bf50020130615
toAssetSymbol string Required

Defines the relation asset symbol in which the base asset rate will be displayed.

USD

Credits Cost : 100 Credits for 1 Results

Was this page helpful?
Yes
No
Language
URL

{
    "apiVersion": "2021-03-20",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "calculationTimestamp": 1618577849,
            "fromAssetId": "5b1ea92e584bf50020130612",
            "fromAssetSymbol": "BTC",
            "rate": "54768.26745499848",
            "toAssetId": "5b1ea92e584bf50020130615",
            "toAssetSymbol": "USD"
        }
    }
}