Run BullScript™
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#
| Name | Type | Required | Description |
|---|---|---|---|
| code | string | Optional | BullScript™ source to run. Omit when script is set. |
| script | string | Optional | A saved script id, when you are not passing code. |
| symbol | string | Optional | Ticker or pair, for example BTCUSDT or AAPL. |
| venue | string | Optional | Optional venue, for example BINANCE, COINBASE, BITSTAMP or NASDAQ. BINANCE is Binance spot, not Binance futures. |
| kind | string | Optional | Optional. spot or perp. Omit to open a spot market. Perpetuals are only opened when kind is perp or the venue is a futures venue. |
| timeframe | string | Optional | One of 1H, 4H, 1D, 1W, 1M. Example: 1D. |
| layout | string | Optional | Layout 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. |