async def get_orders(self, symbol):
    " 获取当前挂单列表\n\n        Args:\n            symbol: Trade target\n\n        Returns:\n            orders: Order list if successfully, otherwise it's None.\n            error: Error information, otherwise it's None.\n        "
    orders: List[Order] = []
    (success, error) = (await self._rest_api.get_open_orders(symbol))
    if error:
        return (None, error)
    if (not success['success']):
        return (None, 'get_open_orders error')
    data = success['result']
    for o in data:
        order = self._convert_order_format(o)
        if (order == None):
            return (None, 'get_open_orders error')
        orders.append(order)
    return (orders, None)
获取当前挂单列表

Args:
    symbol: Trade target

Returns:
    orders: Order list if successfully, otherwise it's None.
    error: Error information, otherwise it's None.
async def get_orders(self, symbol):
    " 获取当前挂单列表\n\n        Args:\n            symbol: Trade target\n\n        Returns:\n            orders: Order list if successfully, otherwise it's None.\n            error: Error information, otherwise it's None.\n        "
    orders: List[Order] = []
    (success, error) = (await self._rest_api.get_open_orders(symbol))
    if error:
        return (None, error)
    if (not success['success']):
        return (None, 'get_open_orders error')
    data = success['result']
    for o in data:
        order = self._convert_order_format(o)
        if (order == None):
            return (None, 'get_open_orders error')
        orders.append(order)
    return (orders, None)