Added fetching currency exchange rate and conversion support.

This commit is contained in:
Adrian Gallagher
2014-11-24 22:09:59 +11:00
parent 3b5df9f78f
commit 9ae33e95fe
8 changed files with 239 additions and 59 deletions

View File

@@ -44,7 +44,13 @@ type Bitstamp struct {
}
type BitstampTicker struct {
Last, High, Low, Vwap, Volume, Bid, Ask string
Last float64 `json:",string"`
High float64 `json:",string"`
Low float64 `json:",string"`
Vwap float64 `json:",string"`
Volume float64 `json:",string"`
Bid float64 `json:",string"`
Ask float64 `json:",string"`
}
type Orderbook struct {