@sharplygroup/xtb-api-js
Version:
A module for interacting with the XTB API
17 lines (16 loc) • 613 B
TypeScript
import { WebSocketManager } from "../utils/WebSocketManager";
import { IAccountDataResponse, IMarginLevelResponse } from "../interfaces";
export declare class AccountOperations {
private readonly wsManager;
constructor(wsManager: WebSocketManager);
/**
* Returns information about account currency, and account leverage.
* @returns {Promise<IAccountDataResponse>}
*/
getCurrentUserData(): Promise<IAccountDataResponse>;
/**
* Returns various account indicators.
* @returns {Promise<IMarginLevelResponse>}
*/
getMarginLevel(): Promise<IMarginLevelResponse>;
}