Get ask price

GET
https://api.bitrush.nl/v1/products/id/ask

Convert an amount for a specific ask rate.

Suppling a fiat currency will convert the amount to coins. The opposite is also true.

Examples:

  1. If you want to know the Euro price for 1 Bitcoin, you could set the amount to 1 and the currency to XBT.
  2. If you want to know the Bitcoin price for 100 Euro, you could set the amount to 100 and the currency to EUR.

Parameters

amount Decimal
The amount you want to convert.
currency String
The currency for the amount.
method String
Optional - The payment method ID used for the conversion. A list of available payment methods for a specific product can be found here.
coupon String
Optional - The coupon code used for the conversion.

Response

amount Decimal
The successfully converted amount.
currency String
The currency for the converted amount.
fiat_quantity Decimal
The available fiat buffer to sell coins. Specifed in fiat_currency.
coin_quantity Decimal
The available coins for sale. Specifed in coin_currency.
coupon Object
The discount and savings amount for the supplied coupon code. This object will be empty when no coupon code has been supplied.
discount Decimal
The discount percentage of the supplied coupon code.
savings Decimal
The actial amount that has been saved by using the supplied coupon code. The currency of this field will be the same as the converted amount.

Example

curl -G https://api.bitrush.nl/v1/products/EUR-XBT/ask \
    -d amount=1 \
    -d currency=XBT \
    -d method=ideal \
    -d coupon=TEST2018
200
application/json; charset=utf-8
{
    "amount": 459.95,
    "currency": "EUR",
    "fiat_quantity": 300000,
    "coin_quantity": 125.38130294,
    "coupon": {
        "discount": 1,
        "savings": 4.59
    }
}