Initiate a swap from an input cryptocurrency to an output cryptocurrency.
POST https://api.ivorypay.io/v1/swaps
Request Body
Name
Type
Description
inputCryptocurrency*
String
The cryptocurrency to swap from.
outputCryptocurrency*
String
The cryptocurrency to swap to.
inputCryptocurrencyAmount*
String
The amount in the input cryptocurrency. This the amount you wish to swap from the input cryptocurrency to the output cryptocurrency.
{"success": true,"message": "Your request has been submitted","data": {"inputCryptocurrency":"USDC","outputCryptocurrency":"USDT","inputCryptocurrencyAmount":0.003,"localFiat":"NGN","userId":"3f795e70-3267-458d-9d45-4d66d01e118d","businessId":"e0353a89-09dc-4304-ac1e-618b6f88f721","amountInLocalFiat":1.5001,"amountInUSD":0.0030,"feeInCrypto":0.00003,"feeInUSD":0.00003,"minOutputCryptocurrencyAmount":0.00298,"environment":"TEST","createdAtDateOnly":"2022-10-03","conversionRate":0,"actualOutputCryptocurrencyAmount":null,"usdToLocalFiatRate":0,"completedAt":null,"uuid":"f78e59be-3a50-483a-a470-d5f8f0f533a2","status":"PENDING","createdAt":"2022-10-03T19:00:04.098Z" }}