POST
/
api
/
service
/
fx
/
retrieve
JavaScript
import Ivy from '@getivy/node-sdk';

const client = new Ivy({
  apiKey: 'My API Key',
});

const fx = await client.fx.retrieve({ fxId: 'fxId' });

console.log(fx.id);
{
  "id": "<string>",
  "rate": "<string>",
  "targetAmount": "<string>",
  "sourceAmount": "<string>",
  "sourceCurrency": "EUR",
  "targetCurrency": "USDC",
  "metadata": {},
  "status": "success"
}

Authorizations

X-Ivy-Api-Key
string
header
required

API key for authentication

Body

application/json

Response

200 - application/json

FX details retrieved successfully

The response is of type object.