Skip to content

[BUG] 获取K线接口超时后,网格交易无法自动重试 #1361

@Iridescent-5

Description

@Iridescent-5
01-27 15:56:16 [INFO] trader/binance_order_sync.go:79   📋 COMMISSION symbols found: 0 - []

01-27 15:56:16 [INFO] trader/binance_futures.go:177 🔄 Cache expired, calling Binance API to get position information...
01-27 15:56:16 [INFO] market/data.go:296 ⚠️ Failed to get ETHUSDT 4h K-line from CoinAnk: CoinAnk API error: Get "https://api.coinank.com/api/kline/list/open?exchange=Binance&interval=4h&side=to&size=200&symbol=ETHUSDT&ts=1769500566967": net/http: TLS handshake timeout
01-27 15:56:16 [INFO] trader/auto_trader.go:457 ❌ Grid execution failed: failed to build grid context: failed to get market data: Primary timeframe 5m K-line data is empty
01-27 15:56:16 [INFO] trader/auto_trader.go:485 ⏹ Automatic trading system stopped

使用的是日本服务器,前期可以正常启动,过段时间后,就没反应了,删除机器人,重新创建后(或者直接重启机器人)又可以正常运行一段时间后,但还是会复现
建议如果某次调用API失败后,间隔多少秒再次循环触发,直到可以正常响应为止

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions