<?php
require_once __DIR__ . "/../../portal/config.php";

$license = $_POST['license'];
$ticket  = $_POST['ticket'];
$action  = $_POST['action'];
$param   = $_POST['param'] ?? 0;

$conn->query("
INSERT INTO fxh_trade_commands
(license_key,ticket,action,param,status)
VALUES ('$license','$ticket','$action','$param','QUEUED')
");

echo json_encode(["OK"=>1]);
