curl --request GET \
--url https://api.sandbox.iron.xyz/api/exchange-rate \
--header 'X-API-Key: <api-key>'{
"effective_rate": "<string>",
"fee": {
"banking_fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"iron_fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"network_fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"network_fees": [
{
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
}
],
"network_fees_with_settlement": [
{
"fee_amount": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"fee_type": "SepaIn",
"settlement": "deductedImmediately"
}
],
"partner_fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"partner_fees": [
{
"fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"label": "<string>",
"settlement": "deductedImmediately"
}
],
"total_fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"transaction_fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"deducted_fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"iron_fee_settlement": "deductedImmediately"
},
"from": {
"blockchain": "Solana",
"token": "USDC"
},
"out_amount": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"to": {
"blockchain": "Solana",
"token": "USDC"
}
}Get the exchange rate from a source currency to a destination currency for a customer with effective rate and fees
curl --request GET \
--url https://api.sandbox.iron.xyz/api/exchange-rate \
--header 'X-API-Key: <api-key>'{
"effective_rate": "<string>",
"fee": {
"banking_fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"iron_fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"network_fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"network_fees": [
{
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
}
],
"network_fees_with_settlement": [
{
"fee_amount": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"fee_type": "SepaIn",
"settlement": "deductedImmediately"
}
],
"partner_fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"partner_fees": [
{
"fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"label": "<string>",
"settlement": "deductedImmediately"
}
],
"total_fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"transaction_fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"deducted_fee": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"iron_fee_settlement": "deductedImmediately"
},
"from": {
"blockchain": "Solana",
"token": "USDC"
},
"out_amount": {
"amount": "100.5",
"currency": {
"code": "USD",
"type": "Fiat"
}
},
"to": {
"blockchain": "Solana",
"token": "USDC"
}
}API Key
customer id
source currency code
32source currency type Currency Type
The type of currency
fiat, crypto source currency chain Blockchain
A type of blockchain
Solana, Ethereum, Polygon, Arbitrum, Base, Stellar destination currency code
32destination currency type Currency Type
The type of currency
fiat, crypto destination currency chain Blockchain
A type of blockchain
Solana, Ethereum, Polygon, Arbitrum, Base, Stellar amount
partner fee in bips
The exchange rate response
Exchange Rate
The exchange rate for a given currency pair
The effective rate
Fee
The fee for a given currency pair
Show child attributes
An amount of money
Show child attributes
The amount, a decimal number
Currency
Can be either crypto or fiat
Show child attributes
Crypto "Crypto"
Blockchain
A type of blockchain
Solana, Ethereum, Polygon, Arbitrum, Base, Stellar The ticker of the token e.g. 'USDC'
{ "blockchain": "Solana", "token": "USDC" }
{
"amount": "100.5",
"currency": { "code": "USD", "type": "Fiat" }
}
An amount of money
Show child attributes
The amount, a decimal number
Currency
Can be either crypto or fiat
Show child attributes
Crypto "Crypto"
Blockchain
A type of blockchain
Solana, Ethereum, Polygon, Arbitrum, Base, Stellar The ticker of the token e.g. 'USDC'
{ "blockchain": "Solana", "token": "USDC" }
{
"amount": "100.5",
"currency": { "code": "USD", "type": "Fiat" }
}
An amount of money
Show child attributes
The amount, a decimal number
Currency
Can be either crypto or fiat
Show child attributes
Crypto "Crypto"
Blockchain
A type of blockchain
Solana, Ethereum, Polygon, Arbitrum, Base, Stellar The ticker of the token e.g. 'USDC'
{ "blockchain": "Solana", "token": "USDC" }
{
"amount": "100.5",
"currency": { "code": "USD", "type": "Fiat" }
}
The network fees in source currency
Network Fee
The network fee for a given currency. This is deprecated and will be removed in the future. Use NetworkFeeWithSettlement instead.
Show child attributes
SwiftOut "SwiftOut"
The amount, a decimal number
Currency
Can be either crypto or fiat
Show child attributes
Crypto "Crypto"
Blockchain
A type of blockchain
Solana, Ethereum, Polygon, Arbitrum, Base, Stellar The ticker of the token e.g. 'USDC'
{ "blockchain": "Solana", "token": "USDC" }
{
"amount": "100.5",
"currency": { "code": "USD", "type": "Fiat" }
}
The network fees with settlement
Show child attributes
An amount of money
Show child attributes
The amount, a decimal number
Currency
Can be either crypto or fiat
Show child attributes
Crypto "Crypto"
Blockchain
A type of blockchain
Solana, Ethereum, Polygon, Arbitrum, Base, Stellar The ticker of the token e.g. 'USDC'
{ "blockchain": "Solana", "token": "USDC" }
{
"amount": "100.5",
"currency": { "code": "USD", "type": "Fiat" }
}
Network Fee Type
The type of network fee
SepaIn, SepaOut, EthereumGas, SolanaTransactionFee, StellarTransactionFee, RailFee, AchIn, AchOut, WireIn, WireOut, SwiftIn, SwiftOut, FpsIn, FpsOut, ChapsIn, ChapsOut Fee Settlement
The settlement type for the fee
deductedImmediately, settledLater An amount of money
Show child attributes
The amount, a decimal number
Currency
Can be either crypto or fiat
Show child attributes
Crypto "Crypto"
Blockchain
A type of blockchain
Solana, Ethereum, Polygon, Arbitrum, Base, Stellar The ticker of the token e.g. 'USDC'
{ "blockchain": "Solana", "token": "USDC" }
{
"amount": "100.5",
"currency": { "code": "USD", "type": "Fiat" }
}
The partner fees
Show child attributes
An amount of money
Show child attributes
The amount, a decimal number
Currency
Can be either crypto or fiat
Show child attributes
Crypto "Crypto"
Blockchain
A type of blockchain
Solana, Ethereum, Polygon, Arbitrum, Base, Stellar The ticker of the token e.g. 'USDC'
{ "blockchain": "Solana", "token": "USDC" }
{
"amount": "100.5",
"currency": { "code": "USD", "type": "Fiat" }
}
The label of the partner fee
Fee Settlement
The settlement type for the fee
deductedImmediately, settledLater An amount of money
Show child attributes
The amount, a decimal number
Currency
Can be either crypto or fiat
Show child attributes
Crypto "Crypto"
Blockchain
A type of blockchain
Solana, Ethereum, Polygon, Arbitrum, Base, Stellar The ticker of the token e.g. 'USDC'
{ "blockchain": "Solana", "token": "USDC" }
{
"amount": "100.5",
"currency": { "code": "USD", "type": "Fiat" }
}
An amount of money
Show child attributes
The amount, a decimal number
Currency
Can be either crypto or fiat
Show child attributes
Crypto "Crypto"
Blockchain
A type of blockchain
Solana, Ethereum, Polygon, Arbitrum, Base, Stellar The ticker of the token e.g. 'USDC'
{ "blockchain": "Solana", "token": "USDC" }
{
"amount": "100.5",
"currency": { "code": "USD", "type": "Fiat" }
}
The amount of the fee that was deducted immediately and charged to the end customer. This is deprecated and will be removed in the future. Use transaction_fee instead.
Show child attributes
The amount, a decimal number
Currency
Can be either crypto or fiat
Show child attributes
Crypto "Crypto"
Blockchain
A type of blockchain
Solana, Ethereum, Polygon, Arbitrum, Base, Stellar The ticker of the token e.g. 'USDC'
{ "blockchain": "Solana", "token": "USDC" }
{
"amount": "100.5",
"currency": { "code": "USD", "type": "Fiat" }
}
Fee Settlement
The settlement type for the fee
deductedImmediately, settledLater Currency
Can be either crypto or fiat
{ "blockchain": "Solana", "token": "USDC" }
An amount of money
Show child attributes
The amount, a decimal number
Currency
Can be either crypto or fiat
Show child attributes
Crypto "Crypto"
Blockchain
A type of blockchain
Solana, Ethereum, Polygon, Arbitrum, Base, Stellar The ticker of the token e.g. 'USDC'
{ "blockchain": "Solana", "token": "USDC" }
{
"amount": "100.5",
"currency": { "code": "USD", "type": "Fiat" }
}
Currency
Can be either crypto or fiat
{ "blockchain": "Solana", "token": "USDC" }