Title: | R API for Limex DataHub |
---|---|
Description: | Provides an interface to the Limex financial data platform, enabling users to retrieve real-time and historical financial data. Functions within the package allow access to instruments, candlestick charts, fundamentals, news, events, models, and trading signals. Authentication is managed through user-specific API tokens, which are securely handled via environment variables. |
Authors: | Vyacheslav Arbuzov[cph, cre, aut] |
Maintainer: | Vyacheslav Arbuzov <[email protected]> |
License: | GPL-3 |
Version: | 0.1.3 |
Built: | 2025-01-29 05:38:59 UTC |
Source: | https://github.com/limex-com/limexhub-r |
Retrieves alternative candlestick data for a given stock symbol within the specified date range. The API token is retrieved from an environment variable 'LIMEX_API_TOKEN'.
altercandles(symbol = "BRX", from = "2023-11-27", to = "2023-11-28")
altercandles(symbol = "BRX", from = "2023-11-27", to = "2023-11-28")
symbol |
Stock symbol to fetch candlestick data for. |
from |
Starting date for the candlestick data in 'YYYY-MM-DD' format. |
to |
Ending date for the candlestick data in 'YYYY-MM-DD' format. |
A data frame containing the candlestick data if the request was successful, NULL otherwise.
## Not run: candles_data <- altercandles(symbol = "BRX", from = "2023-07-31", to = "2023-08-24") ## End(Not run)
## Not run: candles_data <- altercandles(symbol = "BRX", from = "2023-07-31", to = "2023-08-24") ## End(Not run)
Retrieves historical candlestick data for a given stock symbol within the specified date range. The API token is retrieved from an environment variable 'LIMEX_API_TOKEN'.
candles(symbol = "AAPL", from = "2023-07-31", to = "2023-08-24")
candles(symbol = "AAPL", from = "2023-07-31", to = "2023-08-24")
symbol |
Stock symbol to fetch candlestick data for. |
from |
Starting date for the candlestick data in 'YYYY-MM-DD' format. |
to |
Ending date for the candlestick data in 'YYYY-MM-DD' format. |
A data frame containing the candlestick data if the request was successful, NULL otherwise.
## Not run: candles_data <- candles(symbol = "BRX", from = "2023-07-31", to = "2023-08-24") ## End(Not run)
## Not run: candles_data <- candles(symbol = "BRX", from = "2023-07-31", to = "2023-08-24") ## End(Not run)
Retrieves events data for a specified stock symbol, filtered by event type and date range. Utilizes the API token set as an environment variable 'LIMEX_API_TOKEN'.
events( symbol = "AAPL", from = "2023-07-31", to = "2023-08-24", type = "dividends" )
events( symbol = "AAPL", from = "2023-07-31", to = "2023-08-24", type = "dividends" )
symbol |
The stock symbol for which events data is requested. |
from |
The start date for the data retrieval in 'YYYY-MM-DD' format. |
to |
The end date for the data retrieval in 'YYYY-MM-DD' format. |
type |
Type of the event to filter (e.g., 'dividends'). |
A data frame containing the events data if the request is successful, NULL otherwise.
## Not run: events_data <- events(symbol = "AAPL", from = "2023-01-01", to = "2024-01-01") ## End(Not run)
## Not run: events_data <- events(symbol = "AAPL", from = "2023-01-01", to = "2024-01-01") ## End(Not run)
Fetches fundamental data for a specified stock symbol and range of dates, and for specified accounting quarter(s), using the Limex API. Authentication is done via an API token stored in an environment variable 'LIMEX_API_TOKEN'.
fundamental( symbol = "AAPL", from = "2023-07-31", to = "2023-08-24", quarter = NULL, fields = NULL )
fundamental( symbol = "AAPL", from = "2023-07-31", to = "2023-08-24", quarter = NULL, fields = NULL )
symbol |
The stock symbol for which fundamental data is requested. |
from |
The start date for the data retrieval in 'YYYY-MM-DD' format. |
to |
The end date for the data retrieval in 'YYYY-MM-DD' format. |
quarter |
Optional; specify the quarter(s) 'q1', 'q2', 'q3', 'q4' for quarterly data. |
fields |
Optional; specify particular fields of interest like 'roe'. |
A data frame containing the requested fundamental data if successful, NULL otherwise.
## Not run: fundamental_data <- fundamental(symbol = "AAPL") ## End(Not run)
## Not run: fundamental_data <- fundamental(symbol = "AAPL") ## End(Not run)
Retrieves instruments data filtered by asset type. This function uses an API token stored in an environment variable named 'LIMEX_API_TOKEN'.
instruments(assets = "stocks")
instruments(assets = "stocks")
assets |
Type of assets to query, by default 'stocks'. |
A data frame containing instrument data, or NULL if the request fails.
## Not run: instruments_data <- instruments(assets = 'stocks') ## End(Not run)
## Not run: instruments_data <- instruments(assets = 'stocks') ## End(Not run)
Sets the API token for the Limex service by storing it in an environment variable for the current R session. This token will be used by other functions in the package to authenticate API requests.
limex_token(token)
limex_token(token)
token |
API token for the Limex service. |
Invisible NULL, side-effect function setting an environment variable.
## Not run: limex_token("your_personal_token_here") ## End(Not run)
## Not run: limex_token("your_personal_token_here") ## End(Not run)
Fetches data about models from the Limex API for a specified vendor. It uses an API token that is stored in the 'LIMEX_API_TOKEN' environment variable.
models(vendor = "boosted")
models(vendor = "boosted")
vendor |
The name of the vendor for which models data is requested. |
A data frame containing the models data if the request is successful; NULL otherwise.
## Not run: models_data <- models(vendor = "boosted") ## End(Not run)
## Not run: models_data <- models(vendor = "boosted") ## End(Not run)
Retrieves news data for a specific stock symbol from the Limex API. The API token is retrieved from an environment variable 'LIMEX_API_TOKEN'.
news(symbol = "AAPL", from = "2023-07-31", to = "2023-08-24")
news(symbol = "AAPL", from = "2023-07-31", to = "2023-08-24")
symbol |
The stock symbol for which news data is requested. |
from |
The start date for the data retrieval in 'YYYY-MM-DD' format. |
to |
The end date for the data retrieval in 'YYYY-MM-DD' format. |
A data frame containing the news data if successful, NULL otherwise.
## Not run: news_data <- news(symbol = "BRX", from = "2023-11-27", to = "2023-11-28") ## End(Not run)
## Not run: news_data <- news(symbol = "BRX", from = "2023-11-27", to = "2023-11-28") ## End(Not run)
Retrieves signals data for a specified stock symbol and model from the Limex API. The function uses the API token that is stored in the 'LIMEX_API_TOKEN' environment variable.
signals( vendor = "boosted", model = "50678d2d-fd0f-4841-aaee-7feac83cb3a1", symbol = "AAPL", from = "2010-01-01", to = Sys.Date() )
signals( vendor = "boosted", model = "50678d2d-fd0f-4841-aaee-7feac83cb3a1", symbol = "AAPL", from = "2010-01-01", to = Sys.Date() )
vendor |
The vendor name associated with the signals data. |
model |
The model identifier for which signals data is requested. |
symbol |
The stock symbol for which signals data is requested. |
from |
The start date for the signals data retrieval in 'YYYY-MM-DD' format. |
to |
The end date for the signals data retrieval in 'YYYY-MM-DD' format. |
A data frame containing the signals data if the request is successful; NULL otherwise.
## Not run: signals_data <- signals(vendor = "boosted", symbol = "AAPL") ## End(Not run)
## Not run: signals_data <- signals(vendor = "boosted", symbol = "AAPL") ## End(Not run)