Oracles

Provides connectivity across the various Oracles.

GET Get Price

Endpoint: /api/getPrice

Method: GET

Description: Retrieve the current price for a specified asset.

Parameters:

  • assetId (required): The unique identifier of the asset.

Response:

  • 200 OK: Returns a JSON object with the current price of the asset.

  • 404 Not Found: If the assetId does not exist.

Example:

GET /api/getPrice?assetId=bitcoin

GET Get Supported Tokens

Endpoint: /api/getSupportedTokens

Method: GET

Description: Fetch a list of all tokens currently supported by the service.

Parameters: None

Response:

  • 200 OK: Returns a JSON array containing supported tokens and their details.

Example:

GET /api/getSupportedTokens

Last updated