Do you have an API?: Difference between revisions

From Bittylicious
Jump to navigation Jump to search
No edit summary
Line 30: Line 30:


''https://bittylicious.com/coin/COIN''
''https://bittylicious.com/coin/COIN''
''https://bittylicious.com/coin/COIN/PAYMETHOD''
''https://bittylicious.com/coin/COIN/PAYMETHOD''


* '''COIN''': Default to use this virtual currency, e.g. BTC
* '''COIN''': Default to use this virtual currency, e.g. BTC
* '''PAYMETHOD''': Default to use this payment method, e.g. BANK, CASH, PINGIT
* '''PAYMETHOD''': Default to use this payment method, e.g. BANK, CASH, PINGIT

Revision as of 14:11, 24 February 2014

We have a simple API where you can get the current price offered by Bittylicious.

Prices

Quote (number of coins)

https://bittylicious.com/api/v1/quote/COIN/COUNTRY/CURRENCY/PAYMETHOD/AMOUNT

  • COIN: The virtual currency, e.g. BTC
  • COUNTRY: The ISO country code, e.g. GB
  • CURRENCY: The currency, e.g. GBP
  • PAYMETHOD: The payment method, e.g. BANK, PINGIT or CASH
  • AMOUNT: The amount of virtual currency, e.g. 1

For example, to return the current price of 1 BTC in the UK using GBP via bank transfer, call https://bittylicious.com/api/v1/quote/BTC/GB/GBP/BANK/1

Quote (amount of fiat)

https://bittylicious.com/api/v1/quoteFiat/COIN/COUNTRY/CURRENCY/PAYMETHOD/AMOUNT

  • COIN: The virtual currency, e.g. BTC
  • COUNTRY: The ISO country code, e.g. GB
  • CURRENCY: The currency, e.g. GBP
  • PAYMETHOD: The payment method, e.g. BANK, PINGIT or CASH
  • AMOUNT: The amount of fiat, e.g. 100

For example, to return the number of BTC that 100 GBP can buy in the UK via bank transfer, call https://bittylicious.com/api/v1/quoteFiat/BTC/GB/GBP/BANK/100

User Interface

https://bittylicious.com/coin/COIN

https://bittylicious.com/coin/COIN/PAYMETHOD

  • COIN: Default to use this virtual currency, e.g. BTC
  • PAYMETHOD: Default to use this payment method, e.g. BANK, CASH, PINGIT