nofx
nofx copied to clipboard
[BUG] 币安测试网功能没有实现
币安测试网功能没有实现
// NewFuturesTrader 创建合约交易器 func NewFuturesTrader(apiKey, secretKey string) *FuturesTrader { futures.UseTestnet = true //我自己加了这一行。我不会提交代码。这里只需要传一个bool来就行了然后判断 加入这行就好了 client := futures.NewClient(apiKey, secretKey) return &FuturesTrader{ client: client, cacheDuration: 15 * time.Second, // 15秒缓存 } }