Constructor
new MarkitOnDemand(params)
Constructor
Parameters:
Name | Type | Description |
---|---|---|
params |
Object | Params to be set into this instance |
Methods
getQuote(symbol) → {Promise}
Get stock quote for a Symbol
Parameters:
Name | Type | Description |
---|---|---|
symbol |
String | Stock symbol |
Returns:
Promise
- Type
- Promise
lookup(query) → {Promise}
Lookup a stock symbol via a query string
Parameters:
Name | Type | Description |
---|---|---|
query |
String | Query which to search for symbols on |
Returns:
Promise
- Type
- Promise
lookupUrl(query) → {String}
Generate the URL for Symbol Lookups
Parameters:
Name | Type | Description |
---|---|---|
query |
String | Search query to lookup symbols by |
Returns:
URL to call to find symbol data
- Type
- String
quoteUrl(symbol) → {String}
Generate the URL for Quote Lookup
Parameters:
Name | Type | Description |
---|---|---|
symbol |
String | Stock symbol |
Returns:
URL to get quote data
- Type
- String