1 Star 0 Fork 0

zqs / go-okx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.go 486 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhouqiusheng 提交于 2022-10-26 15:06 . init
package okex
var (
UseTestnet = false // UseTestnet 使用测试api
UseAWSnet = false // UseAWSnet 使用AWS api
IsSimulate = false // IsSimulate 是否使用模拟环境
)
type Config struct {
ApiKey string
SecretKey string
PassPhrase string
IsSimulate bool // 是否为模拟环境
}
func NewConfig(apiKey, secretKey, passPhrase string) *Config {
return &Config{
ApiKey: apiKey,
SecretKey: secretKey,
PassPhrase: passPhrase,
IsSimulate: IsSimulate,
}
}
1
https://gitee.com/zqs118/go-okx.git
git@gitee.com:zqs118/go-okx.git
zqs118
go-okx
go-okx
master

搜索帮助