Takes a list of stocks from the output of consolidate prices, registers them in time, and display them at the specified resolution.
1 | register_prices(x, on = "seconds", k = 1)
|
x |
the list of stocks with a column "price" |
on |
the resolution to consolidate trades. The default is "seconds" and any resolution supported by the xts::endpoints function is valid. |
k |
along every k-th elements. For example if "seconds" is specified as the "on" parameter and k=2 then prices are consolidated for every 2 seconds. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.