-
Notifications
You must be signed in to change notification settings - Fork 24
Usecase
Serkan Korkmaz edited this page Mar 25, 2024
·
25 revisions
The main usecase of the cryptoQuotes
-package is the available
get_
-functions. Below is a basic example of retrieving the daily price
of Bitcoin.
All the returned objects are xts
-objects, with the following format,
index | open | high | low | close | volume |
---|---|---|---|---|---|
2024-03-20 01:00:00 | 61937.41 | 68100.00 | 60775.00 | 67840.51 | 90420.59 |
2024-03-21 01:00:00 | 67840.51 | 68240.47 | 64529.01 | 65501.27 | 53357.48 |
2024-03-22 01:00:00 | 65501.28 | 66649.62 | 62260.00 | 63796.64 | 51482.38 |
2024-03-23 01:00:00 | 63796.64 | 65999.00 | 63000.00 | 63990.01 | 26410.11 |
2024-03-24 01:00:00 | 63990.02 | 67628.69 | 63772.29 | 67209.99 | 31395.78 |
2024-03-25 01:00:00 | 67210.00 | 67740.00 | 66385.06 | 67134.01 | 15841.21 |
The returned market data can be charted and examined as follows,
Last updated 2024-07-05