Skip to contents

A dataset containing hourly Bitcoin price and volume data for a one-year period.

Usage

btc_1_year_hourly

Format

A data frame with 8756 rows and 8 variables:

symbol

Character. Trading symbol, e.g., 'BTC/USDT'

datetime

POSIXct. Date and time of the observation

open

Numeric. Opening price for the hour

high

Numeric. Highest price during the hour

low

Numeric. Lowest price during the hour

close

Numeric. Closing price for the hour

volume

Numeric. Trading volume during the hour

turnover

Numeric. Trading turnover (in USD) during the hour

Source

Cryptocurrency exchange data, retrieved using `get_market_data()` function

Details

This dataset was created using the `get_market_data()` function, fetching data for the BTC/USDT pair over a one-year period with hourly frequency. The data spans from July 14, 2023 to July 13, 2024.

Examples

data(btc_1_year_hourly)
head(btc_1_year_hourly)
#>      symbol            datetime    open    high     low   close    volume
#>      <char>              <POSc>   <num>   <num>   <num>   <num>     <num>
#> 1: BTC/USDT 2023-07-14 05:00:00 31391.6 31401.0 31350.7 31361.0  56.62707
#> 2: BTC/USDT 2023-07-14 06:00:00 31360.9 31383.2 31288.1 31296.5  88.97855
#> 3: BTC/USDT 2023-07-14 07:00:00 31296.5 31343.1 31071.6 31099.5 228.04175
#> 4: BTC/USDT 2023-07-14 08:00:00 31099.5 31284.4 31085.0 31245.5 133.14915
#> 5: BTC/USDT 2023-07-14 09:00:00 31245.5 31245.5 31143.0 31192.8  83.95030
#> 6: BTC/USDT 2023-07-14 10:00:00 31192.7 31205.9 31094.4 31174.5  75.78023
#>    turnover
#>       <num>
#> 1:  1776388
#> 2:  2788156
#> 3:  7117764
#> 4:  4155515
#> 5:  2619031
#> 6:  2360569
summary(btc_1_year_hourly$close)
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#>   25021   29859   43081   46748   63625   73574