currency-controller

getCurrencyUsdRateDeprecated

Get currency USD rate

SecurityApiKeyAuth
Request
query Parameters
blockchain
required
string (Blockchain)

Type of the blockchain network

Enum: "ETHEREUM" "POLYGON" "FLOW" "TEZOS" "SOLANA" "IMMUTABLEX"
Example: blockchain=ETHEREUM
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

SecurityApiKeyAuth
Request
path Parameters
currencyId
required
string (CurrencyId)

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

Example: ETHEREUM:0x0000000000000000000000000000000000000000
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

SecurityApiKeyAuth
Responses
200

OK

400

Bad Request

500

Internal Server Error

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