Coin/Fiat Conversion

This endpoint can be used to cross-convert fiat and coin

POST {{BASE_URL}}/partner/collection/convert_coin_fiat/

Conversion Choices

fiat2coin
fiat2coin_collect [This should strictly be used with Pay via DLT endpoint]
coin2fiat

Params for conversion_type fiat2coin or fiat2coin_collect

conversion_type
fiat_amount e.g 100
to_currency e.g USD
coin_type   e.g BTC

Params for conversion_type coin2fiat

conversion_type
coin_amount e.g 0.1
to_currency e.g USD
coin_type e.g BTC
ParameterTypeDescriptionRequired

conversion_type

string

Type of conversion that needs to be carried out. e.g coin2fiat

true

fiat_amount

string

Amount to be converted

false

to_currency

string

Currency code (ISO 4217)

false

coin_type

string

Cryptocurrency type

false

coin_amount

string

Cryptocurrency amount to be converted

false

{
   "conversion_type":"coin2fiat",
   "coin_amount":"0.1",
   "to_currency":"GBP",
   "coin_type":"BTC"
}

Last updated