Learn R Programming

iqfeed (version 0.2)

iqQuote: Quick and dirty real time quote

Description

Retrieve a single real time quote from an IQFeed stream using a new ephemeral IQFeed Level1 data session.

Usage

iqQuote(symbol, type="P", limit=10)

Arguments

symbol
An underlying equity symbol.
type
A character indicating the quote type (the first field in the IQFeed quote format, usually "P" for price quote or "F" for fundamentals quote).
limit
Limit feed session to the number of lines specified.

Value

A character vector containing the requested IQFeed quote data, or NULL if no quote matching the input parameters was returned.

Examples

Run this code
require('iqfeed')
iqConf()
iqQuote("MSFT")

Run the code above in your browser using DataLab