Constructs a new Client instance.
The client options.
Private Optional Readonly apiThe API key for authenticating requests to the Wallex.ir API.
Private Readonly baseThe base URL of the Wallex.ir API.
Private Readonly raiseIndicates whether to raise detailed errors or not.
Additional request parameters to be included in API requests.
The timeout duration for HTTP requests in milliseconds.
Private Readonly sessionThe Axios instance used for making HTTP requests.
Private Readonly v1API version 1.
Private Readonly v2API version 2.
Cancels a specific order.
The client order ID of the order to cancel.
Additional request options (optional).
A Promise resolving to the order result.
If an error occurs during the request.
Private createCreates an OTC (Over-The-Counter) order.
The order data.
Additional request options (optional).
A Promise resolving to the order result.
If an error occurs during the request.
Creates a new order on the authenticated user's account.
The order data.
Additional request options (optional).
A Promise resolving to the order result.
If an error occurs during the request.
Initiates a cryptocurrency withdrawal from the authenticated user's account.
The withdrawal data.
Additional request options (optional).
A Promise resolving to the cryptocurrency withdrawal result.
If an error occurs during the request.
Private deleteSends a DELETE request to the specified API endpoint.
The endpoint path.
Indicates whether the request requires authentication (default: false).
The API version (default: v1).
Additional request options (optional).
A Promise resolving to the response data.
If an error occurs during the request.
Fetches the account fee information of the authenticated user.
Additional request options (optional).
A Promise resolving to the fees result.
If an error occurs during the request.
Fetches order books for all symbols.
Additional request options (optional).
A Promise resolving to the all order books result.
If an error occurs during the request.
Fetches the balance of a specific asset in the authenticated user's account.
The asset for which to fetch the balance.
Additional request options (optional).
A Promise resolving to the balance item, or null if the asset does not exist in the account.
If an error occurs during the request.
Fetches the balances of the authenticated user's account.
Additional request options (optional).
A Promise resolving to the balance result.
If an error occurs during the request.
Fetches the card numbers associated with the authenticated user's account.
Additional request options (optional).
A Promise resolving to the card numbers result.
If an error occurs during the request.
Fetches the cryptocurrency deposit history of the authenticated user's account.
Optional page: numberThe page number of results to fetch (optional).
Optional perPage: numberThe number of results per page (optional).
Additional request options (optional).
A Promise resolving to the cryptocurrency deposit history result.
If an error occurs during the request.
Fetches the cryptocurrency withdrawal history of the authenticated user's account.
Optional page: numberThe page number of results to fetch (optional).
Optional perPage: numberThe number of results per page (optional).
Additional request options (optional).
A Promise resolving to the cryptocurrency withdrawal history result.
If an error occurs during the request.
Fetches currency statistics.
Additional request options (optional).
A Promise resolving to the currency statistics result.
If an error occurs during the request.
Fetches the IBANs associated with the authenticated user's account.
Additional request options (optional).
A Promise resolving to the IBANs result.
If an error occurs during the request.
Fetches market statistics.
Additional request options (optional).
A Promise resolving to the market statistics result.
If an error occurs during the request.
Fetches OHLC (Open, High, Low, Close) data for a specific symbol within a time range and resolution.
The OHLC data parameters.
Additional request options (optional).
A Promise resolving to the OHLC data result.
If an error occurs during the request.
Fetches OTC (Over-The-Counter) markets.
Additional request options (optional).
A Promise resolving to the OTC markets result.
If an error occurs during the request.
Fetches the OTC price for a specific symbol and order side.
The trading pair symbol.
The side of the order (BUY or SELL).
Additional request options (optional).
A Promise resolving to the OTC prices result.
If an error occurs during the request.
Fetches the open orders of the authenticated user's account.
Optional symbol: stringThe trading pair symbol (optional).
Additional request options (optional).
A Promise resolving to the open order result.
If an error occurs during the request.
Fetches the order book for a specific symbol.
The symbol for which to fetch the order book.
Additional request options (optional).
A Promise resolving to the order book result.
If an error occurs during the request.
Fetches the status of a specific order.
The client order ID of the order to fetch.
Additional request options (optional).
A Promise resolving to the order result.
If an error occurs during the request.
Fetches the profile information of the authenticated user.
Additional request options (optional).
A Promise resolving to the profile result.
If an error occurs during the request.
Fetches trades for a specific symbol.
The symbol for which to fetch trades.
Additional request options (optional).
A Promise resolving to the trades result.
If an error occurs during the request.
Fetches the user's trade history.
Optional symbol: stringThe trading pair symbol (optional).
Optional side: OrderSideThe side of the order (optional).
Additional request options (optional).
A Promise resolving to the user trades result.
If an error occurs during the request.
Private getSends a GET request to the specified API endpoint.
The endpoint path.
Indicates whether the request requires authentication (default: false).
The API version (default: v1).
Additional request options (optional).
A Promise resolving to the response data.
If an error occurs during the request.
Private getRetrieves request configuration arguments for making HTTP requests.
The HTTP request method (e.g., GET, POST, etc.).
Indicates whether the request requires authentication.
Additional request options (optional).
The request configuration.
Initiates a money withdrawal from the authenticated user's account.
The IBAN to withdraw money to.
The amount of money to withdraw.
Additional request options (optional).
A Promise resolving to the money withdrawal result.
If an error occurs during the request.
Private postSends a POST request to the specified API endpoint.
The endpoint path.
Indicates whether the request requires authentication (default: false).
The API version (default: v1).
Additional request options (optional).
A Promise resolving to the response data.
If an error occurs during the request.
Private requestPerforms an HTTP request to the specified URI using the provided method.
The HTTP request method (e.g., GET, POST, etc.).
The complete URI of the API endpoint.
Indicates whether the request requires authentication (default: false).
Additional request options (optional).
A Promise resolving to the response data.
If an error occurs during the request.
Private requestAPIPerforms an API request to the specified path and version using the provided method.
The HTTP request method (e.g., GET, POST, etc.).
The endpoint path.
Indicates whether the request requires authentication (default: false).
The API version (default: v1).
Additional request options (optional).
A Promise resolving to the response data.
If an error occurs during the request.
Generated using TypeDoc
Represents a client for interacting with the Wallex.ir cryptocurrency exchange API.