List configs
GET /api/bot/configs
List all bot platform configurations.
Example request
curl https://api.hyperoru.com/api/bot/configs
Example response
[
{ "platform": "telegram", "connected": true, "chat_id": "123456" },
{ "platform": "discord", "connected": false }
]
Get config
GET /api/bot/config/
Get configuration for a specific bot platform.
Platform name: telegram or discord.
Example request
curl https://api.hyperoru.com/api/bot/config/telegram
Example response
{
"platform": "telegram",
"connected": true,
"chat_id": "123456",
"bot_token": "***masked***"
}
Delete config
DELETE /api/bot/config/
Remove bot configuration for a platform.
Example request
curl -X DELETE https://api.hyperoru.com/api/bot/config/telegram
Example response
Save config
POST /api/bot/config
Create or update a bot platform configuration.
Bot authentication token.
Example request
curl -X POST https://api.hyperoru.com/api/bot/config \
-H "Content-Type: application/json" \
-d '{"platform": "telegram", "bot_token": "123:ABC...", "chat_id": "123456"}'
Example response
Update status
PUT /api/bot/status
Enable or disable bot notifications globally.
Whether bots are enabled.
Example request
curl -X PUT https://api.hyperoru.com/api/bot/status \
-H "Content-Type: application/json" \
-d '{"enabled": true}'
Example response
Get notification config
GET /api/bot/notification-config
Get notification preferences and filters.
Example request
curl https://api.hyperoru.com/api/bot/notification-config
Example response
{
"trade_notifications": true,
"error_notifications": true,
"signal_notifications": false,
"min_pnl_threshold": 50.0
}
Update notification config
PUT /api/bot/notification-config
Update notification preferences.
Notify on trade execution.
Notify on signal triggers.
Example request
curl -X PUT https://api.hyperoru.com/api/bot/notification-config \
-H "Content-Type: application/json" \
-d '{"signal_notifications": true}'
Example response
Telegram connect
POST /api/bot/telegram/connect
Initiate Telegram bot connection.
Example request
curl -X POST https://api.hyperoru.com/api/bot/telegram/connect \
-H "Content-Type: application/json" \
-d '{"bot_token": "123:ABC..."}'
Example response
{
"status": "ok",
"bot_name": "HyperOruBot"
}
Telegram disconnect
POST /api/bot/telegram/disconnect
Disconnect the Telegram bot.
Example request
curl -X POST https://api.hyperoru.com/api/bot/telegram/disconnect
Example response
Telegram retry webhook
POST /api/bot/telegram/retry-webhook
Retry setting up the Telegram webhook.
Example request
curl -X POST https://api.hyperoru.com/api/bot/telegram/retry-webhook
Example response
{
"status": "ok",
"webhook_url": "https://example.com/api/bot/telegram/webhook"
}
Telegram webhook
POST /api/bot/telegram/webhook
Webhook endpoint for incoming Telegram messages. Called by Telegram servers.
Example request
curl -X POST https://api.hyperoru.com/api/bot/telegram/webhook \
-H "Content-Type: application/json" \
-d '{"update_id": 123, "message": {"text": "/status"}}'
Example response
Discord connect
POST /api/bot/discord/connect
Initiate Discord bot connection.
Discord channel ID for notifications.
Example request
curl -X POST https://api.hyperoru.com/api/bot/discord/connect \
-H "Content-Type: application/json" \
-d '{"bot_token": "MTIz...", "channel_id": "9876543210"}'
Example response
Discord disconnect
POST /api/bot/discord/disconnect
Disconnect the Discord bot.
Example request
curl -X POST https://api.hyperoru.com/api/bot/discord/disconnect
Example response
Discord status
GET /api/bot/discord/status
Check Discord bot connection status.
Example request
curl https://api.hyperoru.com/api/bot/discord/status
Example response
{
"connected": true,
"guild_name": "Trading Hub",
"channel_name": "alerts"
}
Chat bindings
GET /api/bot/chat-bindings
List all bot chat-to-account bindings.
Example request
curl https://api.hyperoru.com/api/bot/chat-bindings
Example response
[
{ "platform": "telegram", "chat_id": "123456", "account_id": 1 }
]