currency-controller

getCurrencyUsdRateDeprecated

Get currency USD rate

Request
query Parameters
blockchain
required
string (Blockchain)

Type of the blockchain network

Enum: "ETHEREUM" "POLYGON" "FLOW" "TEZOS" "SOLANA" "IMMUTABLEX"
address
required
string

Address of the currency

at
required
string <date-time>

Date and time for getting currency USD rate

Responses
200

OK

400

Bad Request

500

Internal Server Error

get/v0.1/currency/rate/usd
Response samples
application/json
{
  • "currencyId": "usdc",
  • "symbol": "usdc",
  • "rate": 123456.789,
  • "date": "2019-08-24T14:15:22Z"
}

getCurrencyUsdRateByCurrencyId

Get currency USD rate by currency id

Request
path Parameters
currencyId
required
string (CurrencyId)

Currency Id, has format ${blockchain}:${token} or ${blockchain}:${token}:${tokenId}

Example: ETHEREUM:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
query Parameters
at
required
string <date-time>

Date and time for getting currency USD rate

Example: at=2022-01-01T12:00:00Z
Responses
200

OK

400

Bad Request

500

Internal Server Error

get/v0.1/currencies/{currencyId}/rates/usd
Response samples
application/json
{
  • "currencyId": "usdc",
  • "symbol": "usdc",
  • "rate": 123456.789,
  • "date": "2019-08-24T14:15:22Z"
}

getAllCurrencies

Get all registered currencies

Responses
200

OK

400

Bad Request

500

Internal Server Error

get/v0.1/currencies/all
Response samples
application/json
{
  • "currencies": [
    ]
}