Adds new function to interface to retrieve all enabled currency data from exchange

Implements on alphapointhttp.go
Adds new page to UI to handle exchange balances
This commit is contained in:
Scott
2016-09-05 21:57:23 +10:00
parent 8d1afb7e4e
commit 244cdcb48c
6 changed files with 111 additions and 5 deletions

13
wallet.go Normal file
View File

@@ -0,0 +1,13 @@
package main
//ExchangeAccountInfo : Generic type to hold each exchange's holdings in all enabled currencies
type ExchangeAccountInfo struct {
Currencies []ExchangeAccountCurrencyInfo
}
//ExchangeAccountCurrencyInfo : Sub type to store currency name and value
type ExchangeAccountCurrencyInfo struct {
CurrencyName string
TotalValue int
Hold int
}