Exchange Rate

Version: 1.0.0
crypto/exchange-rate
superface

Get exchange rate of two currencies

Get Exchange Rate

Get exchange rate of two currencies

From
To
Rate

1. Install

npx @superfaceai/cli install crypto/exchange-rate

2. Use in your code

const { SuperfaceClient } = require('@superfaceai/one-sdk');

const sdk = new SuperfaceClient();

async function run() {
  // Load the installed profile
  const profile = await sdk.getProfile('crypto/exchange-rate');

  // Use the profile
  const result = await profile
    .getUseCase('GetExchangeRate')
    .perform({
      from: '',
      to: ''
    });

  return result.unwrap();
}

run();

3. Add providers