texus/models/globalCoin.go

22 lines
605 B
Go
Raw Normal View History

2024-12-02 14:03:35 +08:00
package models
import (
2024-12-07 21:22:18 +08:00
"github.com/phyer/texus/utils"
2024-12-02 14:03:35 +08:00
)
type GlobalCoin struct {
CoinName string `json:"coinName"`
Instrument *Instrument `json:"instrument"`
Ticker *Ticker `json:"ticker"`
CandleMapList map[string](map[string]utils.MyStack) `json:"candleMapList"` // map["BTC"]["oneMintue"]
}
func (coin *GlobalCoin) GetInstrument() *Instrument {
return coin.Instrument
}
func (coin *GlobalCoin) SetInstrument(instr *Instrument) {
coin.Instrument = instr
}
// gcl := map[string]GlobalGoin{}