0.2.4 • Published 4 years ago

symbols-list v0.2.4

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

symbols-list

Get a list of all stock and crypto symbols supported by IEX, and their associated information.

Usage

Example

const Symbol = require('symbols-list')
const symbol = new Symbol

symbol.on("results", data => console.log(data))

symbol.get("random", 2)

Installation

Server

npm i symbols-list

Browser

<script src="https://draeder.github.io/symbols-list/symbols.min.js"></script>

Initialize symbols-list

Server

const Symbols = require("symbols-list")
const symbols = new Symbols

Browser

const symbols = new Symbols()

Register the event listener to handler results

symbols.on("results", data => {
    console.log(data)
})

Make requests

Return all symbols

symbols.get("all")

Note: This will return 9000+ results so it will take some time

Return one symbol

symbols.get("find", "TSLA")

Return a list of symbols

symbols.get("find", ["TSLA", "MSFT", "AAPL"])

Return only stock market symbols

symbols.get("type", "stock") Note: This will return 9000+ results so it will take some time

Return only crypto market symbols

symbols.get("type", "crypto") Note: IEX supports very few crypto symbols

Return random symbols

symbols.get("random", 3)

Return random symbols of a given type and size

symbols.get("random", {type: "crypto", size: 2})

symbols.get("random", {type: "stock", size: 2})

symbols.get("random", {size: 2}) // defaults to type "all"

0.2.3

4 years ago

0.2.2

4 years ago

0.2.4

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago