Вот обрезал нули но вибивает ошибку: неправильно указана цена,подсккажите почему?
price = tostring(math.floor(getParamEx("SPBFUT", "SRH6", 'offer') .param_value))
t = {
["CLASSCODE"]="SPBFUT",
["SECCODE"]="SRH6 ",
["ACTION"]="NEW_ORDER",
["ACCOUNT"]="SPBFUT00963 ",
["CLIENT_CODE"]="G501963/RF ",
["TYPE"]="L",
["OPERATION"]="S",
["QUANTITY"]="1",
["PRICE"]=tostring(Price),
["TRANS_ID"]="1"
}
res=sendTransaction(t)
message(res,1)
price = tostring(math.floor(getParamEx("SPBFUT", "SRH6", 'offer') .param_value))
t = {
["CLASSCODE"]="SPBFUT",
["SECCODE"]="SRH6 ",
["ACTION"]="NEW_ORDER",
["ACCOUNT"]="SPBFUT00963 ",
["CLIENT_CODE"]="G501963/RF ",
["TYPE"]="L",
["OPERATION"]="S",
["QUANTITY"]="1",
["PRICE"]=tostring(Price),
["TRANS_ID"]="1"
}
res=sendTransaction(t)
message(res,1)