get https://api.banxa.com/api/prices
Get prices for all available payment methods or for a single payment method. Note that this endpoint should only be called when a user requests prices by providing the cryptocurrency, fiat and ideally amounts and payment method. This endpoint is for dynamic quotations and not to retrieve a list of static prices that can be cached. As a result, the endpoint is rate limited.
Response
Prices for an exchange will be calculated and returned as the following:
Field | Description | Format |
---|---|---|
data.spot_price | Spot price for the fiat to coin exchange. | string |
data.prices.payment_method_id | Unique ID for the payment method that prices have been be returned for. | number |
data.prices.type | The exchange type e.g. fiat to cryptocurrency | string |
data.prices.spot_price_fee | Payment Provider Gateway fee calculated based on the Spot Price | string |
data.prices.spot_price_including_fee | Spot price for the exchange including the Payment Provider Gateway fee | string |
data.prices.coin_amount | Amount cryptocurrency that the customer will receive | string |
data.prices.coin_code | Cryptocurrency code | string |
data.prices.fiat_amount | Fiat amount that the customer is spending | string |
data.prices.fiat_code | Fiat code | string |
data.prices.fee_amount | Payment Provider Gateway Fee calculated based on the transaction value | string |
network_fee | The blockchain network fee associated with the purchase. | string |