function SetOrder(oper, qty, price)
Trans = {
ACCOUNT="MB0094600002",
CLIENT_CODE="DEMO205",
TYPE="M",
TRANS_ID="7",
CLASSCODE="CETS",
SECCODE="USDRUB_TOM",
ACTION="NEW_ORDER",
OPERATION=oper,
PRICE=tostring(price),
QUANTITY=tostring(qty)
}
Res = sendTransaction(Trans)
if Res ~= '' then
Res = "Îøèáêà: "..Res
return Res
end
return nil
end
Trans = {
ACCOUNT="MB0094600002",
CLIENT_CODE="DEMO205",
TYPE="M",
TRANS_ID="7",
CLASSCODE="CETS",
SECCODE="USDRUB_TOM",
ACTION="NEW_ORDER",
OPERATION=oper,
PRICE=tostring(price),
QUANTITY=tostring(qty)
}
Res = sendTransaction(Trans)
if Res ~= '' then
Res = "Îøèáêà: "..Res
return Res
end
return nil
end