Type/to search
Built-in Functions
Structures
Ticker
Depth
OrderBook
Trade
Record
Market
Order
Condition
Account
Asset
Position
Funding
Other Structures
HttpQuery-options
HttpQuery-return
LogStatus-table
LogStatus-btnTypeOne
LogStatus-btnTypeTwo
Status Bar Components
grid
tabs
kpi
stat
progress
gauge
sparkline
chart
heatmap
calendar
histogram
pie
timeline
markdown
alert
badge
Chart-options
Chart-return
KLineChart-options
KLineChart-return
SetData-data
EventLoop-return
exchange.Go-return
DBExec-return
Dial-return
Thread.join-return
Built-in Variables and Constants
Conventions
Exchanges

Renders Markdown text with headings, lists, bold and tables, for strategy notes and market commentary.

Examples

Builds a note with a heading and a list from account data.

javascript
function main() { var account = exchange.GetAccount() if (!account) return var text = "#### Account overview\n" + "- Available: **" + _N(account.Balance, 2) + "** USDT\n" + "- Frozen: " + _N(account.FrozenBalance, 2) + " USDT\n" + "- Updated: " + _D() LogStatus({type: "markdown", text: text}) }
python
def main(): account = exchange.GetAccount() if not account: return text = ("#### Account overview\n" + "- Available: **" + str(_N(account["Balance"], 2)) + "** USDT\n" + "- Frozen: " + str(_N(account["FrozenBalance"], 2)) + " USDT\n" + "- Updated: " + _D()) LogStatus({"type": "markdown", "text": text})
rust
fn main() { let Ok(a) = exchange.GetAccount() else { return }; let text = format!( "#### Account overview\\n- Available: **{}** USDT\\n- Frozen: {} USDT\\n- Updated: {}", _N(a.Balance, 2), _N(a.FrozenBalance, 2), _D(None) ); // Line breaks are the JSON escape \\n inside the JSON string LogStatus!(format!(r#"{{"type": "markdown", "text": "{}"}}"#, text)); }

Attributes

NameTypeDescription

type

string

Required. Always markdown.

text

string

Required. Markdown text.

id

string

Stable identifier. Set it when the number or order of components changes, so refreshes do not rebuild the component.

span

number

Number of columns it spans in the enclosing grid. Default 1.

See Also

Remarks

Plain status bar text is not parsed as Markdown; use this component when you need formatting.