getOB {KrakenR} | R Documentation |
This function fetches order book data from the Kraken API for a specified trading pair.
getOB(pair, count = NULL)
pair |
A character string specifying the trading pair (e.g., "ADAEUR"). This is a required parameter. |
count |
An optional integer between 1 and 500 specifying the number of orders to retrieve. Default is NULL. |
A data frame containing the order book data for the requested trading pair, with bid orders appearing first (sorted by price ascending) followed by ask orders (sorted by price ascending).
getOB("ADAEUR")
getOB("ADAEUR", count = 100)