|
|
|
@ -30,23 +30,23 @@ func (ct *Cointop) UpdateTableHeader() error {
|
|
|
|
|
|
|
|
|
|
baseColor := ct.colorscheme.TableHeaderSprintf()
|
|
|
|
|
possibleHeaders := map[string]*t{
|
|
|
|
|
"rank": {baseColor, "[r]ank", 0, 1, " "},
|
|
|
|
|
"name": {baseColor, "[n]ame", 0, 11, " "},
|
|
|
|
|
"symbol": {baseColor, "[s]ymbol", 4, 0, " "},
|
|
|
|
|
"targetprice": {baseColor, "[t]arget price", 2, 0, " "},
|
|
|
|
|
"price": {baseColor, "[p]rice", 2, 0, " "},
|
|
|
|
|
"frequency": {baseColor, "frequency", 1, 0, " "},
|
|
|
|
|
"holdings": {baseColor, "[h]oldings", 5, 0, " "},
|
|
|
|
|
"balance": {baseColor, "[b]alance", 5, 0, " "},
|
|
|
|
|
"marketcap": {baseColor, "[m]arket cap", 5, 0, " "},
|
|
|
|
|
"24hvolume": {baseColor, "24H [v]olume", 3, 0, " "},
|
|
|
|
|
"1hchange": {baseColor, "[1]H%", 5, 0, " "},
|
|
|
|
|
"24hchange": {baseColor, "[2]4H%", 3, 0, " "},
|
|
|
|
|
"7dchange": {baseColor, "[7]D%", 4, 0, " "},
|
|
|
|
|
"totalsupply": {baseColor, "[t]otal supply", 7, 0, " "},
|
|
|
|
|
"availablesupply": {baseColor, "[a]vailable supply", 0, 0, " "},
|
|
|
|
|
"percentholdings": {baseColor, "[%]holdings", 2, 0, " "},
|
|
|
|
|
"lastupdated": {baseColor, "last [u]pdated", 3, 0, " "},
|
|
|
|
|
"rank": {baseColor, "[r]ank", 0, 1, " "},
|
|
|
|
|
"name": {baseColor, "[n]ame", 0, 11, " "},
|
|
|
|
|
"symbol": {baseColor, "[s]ymbol", 4, 0, " "},
|
|
|
|
|
"target_price": {baseColor, "[t]arget price", 2, 0, " "},
|
|
|
|
|
"price": {baseColor, "[p]rice", 2, 0, " "},
|
|
|
|
|
"frequency": {baseColor, "frequency", 1, 0, " "},
|
|
|
|
|
"holdings": {baseColor, "[h]oldings", 5, 0, " "},
|
|
|
|
|
"balance": {baseColor, "[b]alance", 5, 0, " "},
|
|
|
|
|
"marketcap": {baseColor, "[m]arket cap", 5, 0, " "},
|
|
|
|
|
"24h_volume": {baseColor, "24H [v]olume", 3, 0, " "},
|
|
|
|
|
"1h_change": {baseColor, "[1]H%", 5, 0, " "},
|
|
|
|
|
"24h_change": {baseColor, "[2]4H%", 3, 0, " "},
|
|
|
|
|
"7d_change": {baseColor, "[7]D%", 4, 0, " "},
|
|
|
|
|
"total_supply": {baseColor, "[t]otal supply", 7, 0, " "},
|
|
|
|
|
"available_supply": {baseColor, "[a]vailable supply", 0, 0, " "},
|
|
|
|
|
"percent_holdings": {baseColor, "[%]holdings", 2, 0, " "},
|
|
|
|
|
"last_updated": {baseColor, "last [u]pdated", 3, 0, " "},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for k := range possibleHeaders {
|
|
|
|
|