Symbol
This section documents the symbol (sym.*) functions.
sym.ticker
Returns the symbol name as a string, without the $ prefix.
Syntax:
sym.ticker($BTC) // "BTC"
sym.ticker($ETH) // "ETH"
sym.ticker($HYPE/USDC) // "HYPE/USDC"Examples:
// Get symbol name for coin parameter
{
"action": "limit_order",
"coin": {{ sym.ticker($BTC) }}, // "BTC"
"price": {{ $BTC.close }}
}
// Get symbol name when using muti-coins dynamic variable
{
"action": "limit_order",
"coin": {{ sym.ticker($$) }}, // Converted to each symbol name
"price": {{ $$.close }}
}
// Get symbol name for logging
{
"message": "RSI for {{ sym.ticker($BTC) }} is {{ ta.rsi($BTC, 14) }}"
}Returns: String (symbol name without $ prefix)
Use Cases:
Dynamic payload coin
Logging and debugging information
Multi-symbol strategy management
API payload construction
Last updated
Was this helpful?