Sumber dimuat naik... memuat...

GetLastError

Dapatkan mesej ralat terakhir.

Mesej ralat terakhir. senar

GetLastError()

function main(){
    // Because the order number 123 does not exist, so there will be an error.
    exchange.GetOrder("123")
    var error = GetLastError()
    Log(error)
}
def main():
    exchange.GetOrder("123")
    error = GetLastError()
    Log(error)
void main() {
    // Order ID type: TId, so you can't pass in a string, we place an order that doesn't meet the exchange specification to trigger
    exchange.GetOrder(exchange.Buy(1, 1));
    auto error = GetLastError();
    Log(error);
}

Ia tidak berfungsi dalam sistem backtesting.

GetPid GetCommand