Adding a single HTML tag is all that is required to enable SL4B / RTML on a given web page. The required attributes needed for this tag as described below:
| Attribute | Description | |
|---|---|---|
| Name | Value | |
| id | sl4b | Identifies the web page as SL4B compatiable. This is a mandatory parameter and must be of the value 'SL4B'. |
| id | rtml | Only used for backwards compatibility. Identifies the web page as RTML compatiable. |
| src | url | It must point to the location in your Liberator installation of the SL4B script index.js. |
| configurationfile | url | It must point to the location of a configuration file that specifies the parameters required to point to a Liberator or RTTP source. |
| includertml | (unary) | When using SL4B (i.e. id='sl4b') and require RTML to be available, this unary attribute needs to be in the <script> tag. |
Each embeded quote defined within the RTML Basic Example page contains the following required attributes:
| Attribute | Description | |
|---|---|---|
| Name | Value | |
| id | quote | Each embeded quote needs this id attribute with a value of quote to identify it as a RTML Quote element, |
| symbol | symbol | This attribute specifies which financial instrument the Quote element it relates to. If it is absent, no quote will be displayed. |
| field | field | This attribute specifies a piece of data relating to the financial instrument selected by symbol. It identifies one of the fields in the data record representing that instrument. Typical values are "Bid", "Ask", "Mid", "Chng" (for change on the day) and "Cls" (for previous day's closing price). |