exchange.GetHistoryOrders


```exchange.GetHistoryOrders()```函数请求数据成功时返回{@struct/Order Order}结构数组,请求数据失败时返回空值。
{@struct/Order Order}数组、空值

exchange.GetHistoryOrders()
exchange.GetHistoryOrders(symbol)

```symbol```参数用来指定所要获取的历史订单的合约名称。

symbol
false
string

```javascript
function main(){
    // 鉴于测试代码,不使用商品期货策略一般架构,这里仅仅判断exchange.IO("status")函数,判断连接期货公司前置机成功后立即执行测试代码。股票证券无需使用exchange.IO("status")判断连接状态
    while (!exchange.IO("status")) {
        Sleep(1000)
    }
    
    var orders = exchange.GetHistoryOrders()
    Log(orders)
}
def main():
    while not exchange.IO("status"):
        Sleep(1000)
    
    orders = exchange.GetHistoryOrders()
    Log(orders)
void main() {
    while (exchange.IO("status") == 0) {
        Sleep(1000);
    }
    
    auto orders = exchange.GetHistoryOrders();
    Log(orders);
}

注意:exchange.GetHistoryOrders()函数不依赖于当前合约代码设置,不传symbol参数时获取当前交易日所有合约的历史订单。传入symbol参数指定获取当前交易日具体合约的历史订单。

{@struct/Order Order}, {@fun/Trade/exchange.GetOrder exchange.GetOrder}, {@fun/Trade/exchange.GetOrders exchange.GetOrders}