% Generated by roxygen2: do not edit by hand % Please edit documentation in R/indicators.R \name{binance_next} \alias{binance_next} \title{Poll a Binance feed for the next kline event} \usage{ binance_next(feed, timeout_ms = 1000) } \arguments{ \item{feed}{A \code{wickra_binance_feed} created by \code{\link[=BinanceFeed]{BinanceFeed()}}.} \item{timeout_ms}{Poll timeout in milliseconds.} } \value{ A named list (\code{symbol}, \code{open}, \code{high}, \code{low}, \code{close}, \code{volume}, \code{open_time}, \code{is_closed}) for an event, or \code{NULL} on timeout. } \description{ Waits up to \code{timeout_ms} milliseconds. Returns a named list (\code{symbol}, \code{open}, \code{high}, \code{low}, \code{close}, \code{volume}, \code{open_time}, \code{is_closed}) when an event arrives, or \code{NULL} on timeout. Errors once the stream is closed. } \keyword{internal}