OrderKuota API Test: test api module

1 min read
OrderKuotaClient
Provides methods for interacting with the OrderKuota API.
Constructors
constructor()
new OrderKuotaClient(options)
Initializes the OrderKuota API client.
Parameters
Name | Type | Description |
options | OrderKuotaClientOptions | Configuration options for the client. |
Example
const client = new OrderKuotaClient({
apiKey: 'your_api_key',
secretKey: 'your_secret_key'
});
`
Methods
getBalance()
getBalance(): Promise<BalanceResponse>
Retrieves the current balance of your OrderKuota account.
Returns
Promise<BalanceResponse>
A promise that resolves to a BalanceResponse
object.
Throws
OrderKuotaError
if the API call fails.
Example
const balance = await client.getBalance();
console.log('Current balance:', balance.balance);
createTransaction()
createTransaction(data): Promise<TransactionResponse>
Creates a new transaction.
Parameters
Name | Type | Description |
data | CreateTransactionData | The transaction details. |
Returns
Promise<TransactionResponse>
A promise that resolves to a TransactionResponse
object.
0
Subscribe to my newsletter
Read articles from Yoru AKio directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
