Persist trade signal
curl --request POST \
--url https://api.hoox.sh/signals \
--header 'Content-Type: application/json' \
--data '
{
"symbol": "BTCUSDT",
"signal_type": "LONG",
"timestamp": 1779261050000
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({symbol: 'BTCUSDT', signal_type: 'LONG', timestamp: 1779261050000})
};
fetch('https://api.hoox.sh/signals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hoox.sh/signals"
payload = {
"symbol": "BTCUSDT",
"signal_type": "LONG",
"timestamp": 1779261050000
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"result": {
"signalId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"success": false,
"requestId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"error": "Invalid JSON payload structure."
}{
"success": false,
"requestId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"error": "Invalid JSON payload structure."
}{
"success": false,
"requestId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"error": "Invalid JSON payload structure."
}Signals
Persist trade signal
Internal endpoint on trade-worker. Inserts a new trade signal
record into the trade_signals D1 table.
POST
/
signals
Persist trade signal
curl --request POST \
--url https://api.hoox.sh/signals \
--header 'Content-Type: application/json' \
--data '
{
"symbol": "BTCUSDT",
"signal_type": "LONG",
"timestamp": 1779261050000
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({symbol: 'BTCUSDT', signal_type: 'LONG', timestamp: 1779261050000})
};
fetch('https://api.hoox.sh/signals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hoox.sh/signals"
payload = {
"symbol": "BTCUSDT",
"signal_type": "LONG",
"timestamp": 1779261050000
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"result": {
"signalId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"success": false,
"requestId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"error": "Invalid JSON payload structure."
}{
"success": false,
"requestId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"error": "Invalid JSON payload structure."
}{
"success": false,
"requestId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"error": "Invalid JSON payload structure."
}Body
application/json
Last modified on June 17, 2026
⌘I