Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 509 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 509 Bytes

CoinBaseAPI

This is a coinbase Golang API written in Go

Getcoinprice

EX: Get Bitcoin Price

	bitcoin := coinprice.Getcoinprice("BTC", "USD")
	fmt.Printf("%s: %s\n", bitcoin.Data.Currency, bitcoin.Data.Amount)

EX: Get Eherium Price in USD

	eth := coinprice.Getcoinprice("ETH", "USD")
	fmt.Printf("%s: %s\n", eth.Data.Currency, eth.Data.Amount)

ETH in Euro

	etheur := coinprice.Getcoinprice("ETH", "EUR")
	fmt.Printf("%s: %s\n", etheur.Data.Currency, etheur.Data.Amount)