---
id: "mnre365e-7s4zax"
name: "避免传入数组类型给期望字符串类型的参数"
type: "feedback"
project: "null"
tags: [error, avoid, gate-trading:gate_get_perpetual_open_orders, 参数类型错误]
created: "2026-04-09"
---
【下次这样做】调用 gate_get_perpetual_open_orders 时，settle 参数应传入字符串而非数组。错误原因：代码执行 `(args.settle || "USDT").toLowerCase()`，期望 settle 是字符串，但实际传入了数组 `["USDT"]`，导致 `.toLowerCase()` 方法调用失败。正确调用：`{"settle": "USDT"}`