Initializes a new instance of the Client class with the provided parameters.
Optional
params: IClientParamsOptional parameters for initializing the client.
Protected
accessThe access token for authenticated requests.
Protected
apiThe API key for authentication.
The API version to use.
Protected
axiosCustom Axios configuration.
Protected
backgroundBackground processes configuration.
The base URL for the API.
Protected
refreshThe refresh token for obtaining new access tokens.
Protected
requestThe request timeout in milliseconds.
Protected
secretThe secret key for authentication.
Protected
sessionThe Axios instance for making HTTP requests.
Protected
tldThe top-level domain for the API base URL.
Authenticates the client using the provided API key and secret key.
Optional
params: IAuthenticationParamsOptional authentication parameters.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to the authentication response.
Cancels multiple orders in bulk.
An array of parameters for canceling the orders.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to the bulk cancel order response.
Creates multiple orders in bulk.
An array of parameters for creating the orders.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to the bulk create order response.
Cancels an order with the specified order ID.
Parameters containing the order ID to cancel.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to the order status response.
Protected
createCreates a new order.
Parameters for creating the order.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to the order status response.
Protected
deleteProtected
Makes a DELETE request to the specified API endpoint.
The endpoint path.
Optional
signed: boolean = falseIndicates if the request requires authentication.
Optional
version: string = ...The API version to use.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to the response data.
Protected
getProtected
Makes a GET request to the specified API endpoint.
The endpoint path.
Optional
signed: boolean = falseIndicates if the request requires authentication.
Optional
version: string = ...The API version to use.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to the response data.
Protected
getRetrieves the list of available currencies.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to an array of currency information.
Retrieves the list of available markets.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to an array of market information.
Retrieves the order book for the specified symbol.
Parameters containing the symbol for which to retrieve the order book.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to the order book response.
Retrieves the status of an order with the specified order ID(s).
Parameters containing the order ID(s) to retrieve the status for.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to the order status response.
Retrieves the list of price tickers.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to an array of ticker information.
Retrieves the recent trades for the specified symbol.
Parameters containing the symbol for which to retrieve recent trades.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to an array of trade information.
Protected
getProtected
Configures and returns the Axios request configuration with the necessary headers and parameters.
The HTTP request method (e.g., 'get', 'post').
Indicates if the request requires authentication.
Optional
kwargs: IRequestOptions = {}Additional request options.
The configured Axios request configuration.
Retrieves the list of open orders.
Optional
params: IGetOpenOrdersParamsOptional parameters for retrieving open orders.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to an array of order status responses.
Retrieves the user's trade history.
Optional
params: IGetFillsParamsOptional parameters for retrieving the trade history.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to an array of trade information.
Retrieves the wallet information.
Optional
params: IGetWalletsParamsOptional parameters for retrieving wallet information.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to an array of wallet responses.
Protected
postProtected
Makes a POST request to the specified API endpoint.
The endpoint path.
Optional
signed: boolean = falseIndicates if the request requires authentication.
Optional
version: string = ...The API version to use.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to the response data.
Refreshes the access token using the provided refresh token or the stored refresh token.
Optional
params: IRefreshTokenParamsOptional parameters containing the refresh token.
Optional
kwargs: IRequestOptionsAdditional request options.
A promise that resolves to the refresh token response.
Static
CreateCreates a new instance of the Client class and authenticates if API key and secret key are provided.
Optional
params: IClientParamsOptional parameters for creating the client instance.
A promise that resolves to a new Client instance.
Represents a client for interacting with the Bitpin API.