Documentation ¶
Index ¶
- Constants
- Variables
- func FixTradeDate(date string) string
- func IndexToday() string
- func IsHoliday(date string) bool
- func IsTrading(date ...string) bool
- func LastNDate(date string, n ...int) []string
- func LastTradeDate() string
- func Minutes(date ...string) int
- func NextTradeDate(date string) string
- func Today() string
- func TradeRange(start, end string) []string
- type TimeRange
Constants ¶
View Source
const ( CN_SERVERTIME_FORMAT = "15:04:05.000" // 服务器时间格式 CN_StartTime = "09:15:00.000" // A股数据初始化时间 CN_StopTime = "15:00:00.000" // A股数据结束时间 BEGIN_A_AM_HOUR = 9 // A股开市-时 BEGIN_A_AM_MINUTE = 30 // A股开市-分 END_A_AM_HOUR = 11 // A股休市-时 END_A_AM_MINUTE = 30 // A股休市-分 BEGIN_A_PM_HOUR = 13 // A股开市-时 BEGIN_A_PM_MINUTE = 0 // A股开市-分 END_A_PM_HOUR = 15 // A股休市-时 END_A_PM_MINUTE = 0 // A股休市-分 )
Variables ¶
View Source
var (
CN_TOTALFZNUM = 0 // A股全天交易的分钟数
)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.