Skip to content

Commit

Permalink
CRAN Release (#8)
Browse files Browse the repository at this point in the history
Created release for version 1.3.0.

Added playground to .gitignore.
  • Loading branch information
serkor1 authored Mar 15, 2024
1 parent e6a5a84 commit df5c565
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ inst/doc
/doc/
/Meta/
docs
/playground
3 changes: 0 additions & 3 deletions CRAN-SUBMISSION

This file was deleted.

42 changes: 37 additions & 5 deletions playground/playground.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,45 @@
# setup;
rm(list = ls()); gc(); devtools::load_all()

DOGE <- cryptoQuotes::get_quote(
ticker = 'DOGEUSDTM',
interval = '1m',
source = 'kucoin',
futures = TRUE
BTC <- cryptoQuotes::get_quote(
ticker = 'BTCUSD',
interval = '1d',
source = 'kraken',
futures = FALSE,
from = Sys.Date() - 1000,
to = Sys.Date()
)

nrow(BTC)


head(BTC)
head(BTC)



length(
seq(
from = coerce_date(Sys.Date() - 10),
to = coerce_date(Sys.Date() - 1),
by = "+15 mins"
)
)


default_dates(
interval = "15m",
from = coerce_date(Sys.Date() - 10),
to = coerce_date(Sys.Date() - 1)
)

# script end;


origin_date <- '1970-01-01'

as.POSIXct(
trunc(as.double(coerce_date(Sys.Date() - 10))/(15*60))*(15*60),
tz = 'UTC',
origin = origin_date
)

0 comments on commit df5c565

Please sign in to comment.