UNPKG

@sharplygroup/xtb-api-js

Version:

A module for interacting with the XTB API

13 lines (12 loc) 523 B
import { WebSocketManager } from "../utils/WebSocketManager"; export declare class NewsOperations { private readonly wsManager; constructor(wsManager: WebSocketManager); /** * Returns news from trading server which were sent within specified period of time. * @param {number} end - Time, 0 means current time for simplicity * @param {number} start - Time * @returns {Promise<any>} // TODO: Create INewsTopicResponse interface */ getNews(end: number, start: number): Promise<any>; }