2 Star 4 Fork 10

王布衣/engine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
paging.go 274 Bytes
一键复制 编辑 原始数据 按行查看 历史
王布衣 提交于 2023-10-01 17:49 . 增加第一个策略执行的demo
package functions
// GetPages 计算页数
func GetPages(pageSize, count int) (pages int) {
//pages = int(math.Ceil(float64(raw.Data.TotalHits) / float64(EastmoneyNoticesPageSize)))
pages = count / pageSize
n := count % pageSize
if n > 0 {
pages++
}
return pages
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/quant1x/engine.git
git@gitee.com:quant1x/engine.git
quant1x
engine
engine
v0.1.3

搜索帮助

Cb406eda 1850385 E526c682 1850385