mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-02 07:26:53 +00:00
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:
13
wallet.go
Normal file
13
wallet.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user