我正在使用 PHP。当我尝试通过 API 取消一个有效订单时,出现错误:
"error" => array:2 [▼
"message" => "orderIDs or clOrdIDs must be sent."
"name" => "ValidationError"
]
我把 orderID 作为数组(这是我的 lib 方法):
public function cancelOrder($orderID) {
$symbol = self::SYMBOL;
$data['method'] = "DELETE";
$data['function'] = "order";
$data['params'] = array(
"orderID" => $orderID, // ['r5ff364da-4243-8ee3-7853-6fb0f9f7e44d']
);
return $this->authQuery($data);
}
我做错了什么? https://www.bitmex.com/api/explorer/#!/Order/Order_cancel