Run BullScript™

run_bullscriptReads onlySafe to repeat

The app runs BullScript™ and reads the result.

Details#

Run BullScript™ over the full history and return the latest values, crossings, labels, stats and a short summary, plus history_start for the loaded book. log.* is capped at the newest 10 lines (further lines are omitted with a note). Tables may include computed results; at most 20 raw price-like cells are returned per run. Up to 20 runs a minute, a budget of its own that does not count toward the 100 calls a minute for other tools; there is no daily limit. A failure returns error_detail (class, code, step, retryable, trace_id, and line, column and bar for script errors). Pass code for a new script, or script for one of the member's saved scripts. Never returns the series and does not draw on the chart: to draw it, save_script and then add_indicator with the script id. Opens exactly the venue you pass. Example: code the indicator, symbol BTC/USDT, venue BINANCE, timeframe 1D.

Inputs#

NameTypeRequiredDescription
codestringOptionalBullScript™ source to run. Omit when script is set.
scriptstringOptionalA saved script id, when you are not passing code.
symbolstringOptionalTicker or pair, for example BTCUSDT or AAPL.
venuestringOptionalOptional venue, for example BINANCE, COINBASE, BITSTAMP or NASDAQ. BINANCE is Binance spot, not Binance futures.
kindstringOptionalOptional. spot or perp. Omit to open a spot market. Perpetuals are only opened when kind is perp or the venue is a futures venue.
timeframestringOptionalOne of 1H, 4H, 1D, 1W, 1M. Example: 1D.
layoutstringOptionalLayout name from list_layouts, or "Default" (the member's own chart). Omit to use the layout the member has open, or Default when no chart is open.