if (FALSE) {
# Get daily candles for `SBER`, `FXGD` from 2020-01-01 until today. Note that
# an unknown symbol `XXXX` is skipped with a warning.
get_candles(
secid = c('XXXX', 'SBER', 'FXGD'),
from = '2020-01-01',
debug_output = TRUE
)
# Get SBER minute candles for one trading day (all 526 of them)
get_candles(
secid = 'SBER',
from = '2020-01-10',
till = '2020-01-10',
interval = 'per_minute'
)
# Get SBER minute candles for the specified time period (1 hour)
get_candles(
secid = 'SBER',
from = '2020-01-10 11:00:00',
till = '2020-01-10 12:00:00',
interval = 'per_minute'
)
}
Run the code above in your browser using DataLab