Skip to main content

๐ŸŽฏPrice API

Notes

For more details visit BCH APIs page.

//imports
using Cash.NetCore.Contracts;

//inject
private readonly IPriceService _priceService;

๐Ÿ’ฐGet rates for several different currencies.โ€‹

Get rates for several different currencies from Coinbase.โ€‹

//Sample Request ๐ŸŽ
var info = await _priceService!.GetRatesAsync();

๐Ÿ’ฐGet the USD price of BCHโ€‹

Get the USD price of BCH from Coinbase.โ€‹

//Sample Request ๐ŸŽ
var price = await _priceService!.GetBchUsdPriceAsync();

๐Ÿ’ฐGet the USD price of BCHAโ€‹

Get the USD price of BCHA from Coinex.โ€‹

//Sample Request ๐ŸŽ
var price = await _priceService!.GeteCashUsdPriceAsync();