Keywords (keywords v0.1.0) View Source

Documentation for KeywordParser.

Link to this section Summary

Functions

Recompiles keyword pattern.

Parses tickers from string

Link to this section Functions

Link to this function

recompile(pid, keyword_list)

View Source

Recompiles keyword pattern.

Link to this function

scan(string, pattern, opts)

View Source

Parses tickers from string

Examples

KeywordParser.scan(" XOM AAPL $TSLA buy now, ++ PLTR and $AMZN", :stock_tickers)
[XOM, AAPL, TSLA, PLTR, AMZN]