Здравствуйте, перешли знач на Lua 5.3 и данный код перестал фурычить, как исправить то?
t = {
["CLASSCODE"] = "SPBFUT",
["SECCODE"] = "RIM0",
["ACTION"] = "NEW_ORDER",
["ACCOUNT"] = "счёт" ,
["TYPE"] = "M",
["TRANS_ID"] = "25"
}
t["QUANTITY"] = "1"
t["OPERATION"] = "B"
if vol < 0 then
t["OPERATION"] = "S"
end
t["PRICE"] = priceForMarketOrder( vol )
local transResult = sendTransaction( t )
-- Проверка на ошибку
if ( transResult and transResult ~= "" ) then
return
end
t = {
["CLASSCODE"] = "SPBFUT",
["SECCODE"] = "RIM0",
["ACTION"] = "NEW_ORDER",
["ACCOUNT"] = "счёт" ,
["TYPE"] = "M",
["TRANS_ID"] = "25"
}
t["QUANTITY"] = "1"
t["OPERATION"] = "B"
if vol < 0 then
t["OPERATION"] = "S"
end
t["PRICE"] = priceForMarketOrder( vol )
local transResult = sendTransaction( t )
-- Проверка на ошибку
if ( transResult and transResult ~= "" ) then
return
end