Skip to content

Conversation

@gityuantao
Copy link

在添加/编辑币安交易所配置时,虽然前端提供了"使用测试网"的勾选项,且配置能保存到数据库,但实际交易时测试网选项并没有生效,仍然使用主网 API。

修复内容:

  • 在 AutoTraderConfig 中添加 BinanceTestnet 字段
  • 修改 NewFuturesTrader 函数支持 testnet 参数
  • 当启用测试网时,自动设置测试网 API 端点
  • 在 trader_manager.go 中传递 testnet 配置从数据库到交易器

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant