API Reference
REST API for building integrations on TrynQuant. Base URL: https://tryn-quant.com/api/v1
Authentication
Most endpoints require a Bearer token in the Authorization header:
Authorization: Bearer <api_key>:<api_secret> # Example: Authorization: Bearer pk_a1b2c3…:sk_d4e5f6…
Generate your API key via POST /api/v1/auth. The signals endpoint is the exception — it accepts credentials in the JSON body instead.
Endpoints
https://tryn-quant.com/api/v1/auth/Generate a platform API key
Request body
emailstringrequiredYour TrynQuant account emailpasswordstringrequiredYour TrynQuant account passwordResponse
{ api_key, api_secret, expires_at, plan }The api_secret is shown only once. Store it securely. Keys expire after 90 days.
https://tryn-quant.com/api/v1/bots/ Auth requiredList all bots for the authenticated user
Response
{ bots: BotConfig[] }https://tryn-quant.com/api/v1/bots/ Auth requiredCreate a new bot
Request body
namestringrequiredHuman-readable bot namebot_typestringrequiredBot strategy ID from the registry (e.g. rsi_bot, grid_standard)symbolstringrequiredTrading pair (e.g. BTC/USDT)exchangestringoptionalExchange ID (e.g. bybit)investment_usdtnumberoptionalCapital allocated in USDTleveragenumberoptionalLeverage multiplier (default 1)stop_lossnumberoptionalStop-loss percentageis_paper_tradingbooleanoptionalPaper mode (default false)parametersobjectoptionalStrategy-specific parametersResponse
{ bot: BotConfig }New bots start with status "stopped". Use POST /bots/{botId}/ with action: "start" to activate.
https://tryn-quant.com/api/v1/bots/{botId}/ Auth requiredGet bot details and recent trades
Response
{ bot: BotConfig, trades: Trade[] }Returns up to 20 most recent trades.
https://tryn-quant.com/api/v1/bots/{botId}/ Auth requiredControl a bot (start / stop / pause)
Request body
action"start" | "stop" | "pause"requiredControl action to performResponse
{ bot: BotConfig }Status transitions: start → active, stop → stopped, pause → paused.
https://tryn-quant.com/api/v1/bots/{botId}/ Auth requiredDelete a bot permanently
Response
{ message: string }The bot is stopped before deletion.
https://tryn-quant.com/api/v1/signals/TradingView webhook — trigger a trade signal
Request body
api_keystringrequiredYour platform API key (pk_…)secretstringrequiredYour platform API secret (sk_…)symbolstringrequiredTrading pair (e.g. BTCUSDT)action"buy" | "sell" | "close"requiredTrade actionquantitynumberoptionalOptional trade quantitybot_idstringoptionalTarget a specific bot by ID; omit to auto-match by symbolResponse
{ executed: boolean, order_id?: string, signal_id?: string, message: string }Credentials go in the JSON body — no Authorization header needed. This endpoint accepts TradingView Pine Script alerts.
https://tryn-quant.com/api/v1/exchanges/supported/List all supported exchanges with metadata
Response
Exchange[] (id, name, tier, requires_passphrase, requires_rsa, has_testnet, has_futures, doc_url, manage_url)https://tryn-quant.com/api/v1/exchanges/{exchange}/pairs/Fetch tradable pairs for an exchange
Response
{ exchange: string, pairs: string[], count: number }Proxied from the Railway backend. Pair data may be cached for a short period.
https://tryn-quant.com/api/v1/platform-ips/Get static egress IPs used by the platform
Response
{ ips: string[] }Whitelist these IPs on your exchange when enabling IP restriction on API keys.
TradingView Integration
Use POST /api/v1/signals/ as your TradingView alert webhook URL. Configure a Pine Script alert with the following JSON payload:
// TradingView alert message (JSON format):
{
"api_key": "pk_your_api_key",
"secret": "sk_your_api_secret",
"symbol": "{{ticker}}",
"action": "{{strategy.order.action}}",
"quantity": {{strategy.order.contracts}}
}The signal is matched to your active bot for that symbol. Optionally include bot_id to target a specific bot.
Rate Limits & Errors
200OKRequest succeeded201CreatedResource created (POST /auth, POST /bots)400Bad RequestMissing or invalid parameters401UnauthorizedMissing, invalid, or expired API key404Not FoundBot or resource does not exist or belongs to another user500Internal Server ErrorPlatform error — retry with exponential back-off
