Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BaseURL = os.Getenv("AKTOOL_BASE_URL") PublicAPIURI = "/api/public/" GoldHandlerNameRealtime = "spot_quotations_sge" GoldHandlerNameHistory = "spot_hist_sge" StockHandlerNameRealtime = "stock_individual_info_em" )
Functions ¶
This section is empty.
Types ¶
type GoldPriceDataHS ¶
type GoldPriceDataHS []struct { Date string `json:"date"` Open float64 `json:"open"` Close float64 `json:"close"` Low float64 `json:"low"` High float64 `json:"high"` }
func GetHistoryGoldPrice ¶
func GetHistoryGoldPrice(ctx context.Context) (res GoldPriceDataHS, err error)
func GetStockPrice ¶
func GetStockPrice(ctx context.Context, symbol string) (res GoldPriceDataHS, err error)
type GoldPriceDataRT ¶
type GoldPriceDataRTList ¶
type GoldPriceDataRTList []*GoldPriceDataRT
func GetRealtimeGoldPrice ¶
func GetRealtimeGoldPrice(ctx context.Context) (res GoldPriceDataRTList, err error)
Click to show internal directories.
Click to hide internal directories.