Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentPrice ¶
CurrentPrice fetches current Price of Bitcoin from coindesk API. It returns the Price in USD, GBP and EUR.
func GetPrice ¶
GetPrice fetches the latest Bitcoin Price from coindesk API in given currency. s is the ISO code of the currency. Defaults to USD. Supported Currencies - https://api.coindesk.com/v1/bpi/supported-currencies.json
Types ¶
Click to show internal directories.
Click to hide internal directories.