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.
Security
sec0
- Mock serverhttps://docs.banxa.com/_mock/products/legacy-api/openapi/api/prices
- https://api.banxa.comhttps://api.banxa.com/api/prices
curl -i -X GET \
'https://docs.banxa.com/_mock/products/legacy-api/openapi/api/prices?source=string&target=string&source_amount=0.1&target_amount=0.1&payment_method_id=0&account_reference=string&blockchain=TRON&discount_code=VIP' \
-H 'Accept: application/json' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'X-Request-Id: string'Response
"{\n \"data\": {\n \"spot_price\": \"0.92\",\n \"prices\": [\n {\n \"payment_method_id\": 1,\n \"type\": \"FIAT_TO_CRYPTO\",\n \"spot_price_fee\": \"0.02\",\n \"spot_price_including_fee\": \"0.94\",\n \"coin_amount\": \"104.43000000\",\n \"coin_code\": \"USDT\",\n \"fiat_amount\": \"100.30\",\n \"fiat_code\": \"EUR\",\n \"fee_amount\": \"1.96\",\n \"network_fee\": \"0.00\n },\n {\n \"payment_method_id\": 2,\n \"type\": \"FIAT_TO_CRYPTO\",\n \"spot_price_fee\": \"0.00\",\n \"spot_price_including_fee\": \"0.95\",\n \"coin_amount\": \"105.17000000\",\n \"coin_code\": \"USDT\",\n \"fiat_amount\": \"100.30\",\n \"fiat_code\": \"EUR\",\n \"fee_amount\": \"0.00\",\n \"network_fee\": \"0.00\"\n }\n }\n }\n ]\n …"