asx-data
Version:
Australian Securities Exchange Data API Wrapper
25 lines (23 loc) • 680 B
TypeScript
// Type definitions for node packge asx-data 0.0.7
// Project: asx-data
// Definitions by: Lionel Hickey
/** defines the context of the call */
interface Options {
/** ASX listed symbol */
code: string;
/** Time series between quote end of day prices.
* "daily"
*/
interval: string;
/** interval span */
count: number;
}
/** api function for interfacing with the asx-data library */
interface Data {
/** gets the historical data for the params passed */
data: (options: Options, result: (statusCode: number, data: any) => void, error: (error: any) => void) => void;
}
declare module "asx-data" {
var data: Data;
export = data;
}