You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1301,9 +1376,9 @@ Accepted values: wallet, spot. Must not be the same as source
1301
1376
* @param {TRANSACTION_STATUS[]} [params.statuses] Optional. List of statuses to query. valid subtypes are: 'CREATED', 'PENDING', 'FAILED', 'SUCCESS' and 'ROLLED_BACK'
1302
1377
* @param {string[]} [params.currencies] Optional. List of currencies of the transactions
1303
1378
* @param {string[]} [params.networks] Optional. List of network codes
1304
-
* @param {SORT_BY} [params.orderBy] Optional. Defines the sorting type.'createdAt' or 'id'. Default is 'createdAt'
1305
-
* @param {string} [params.from] Optional. Interval initial value when ordering by 'createdAt'. As Datetime
1306
-
* @param {string} [params.till] Optional. Interval end value when ordering by 'createdAt'. As Datetime
1379
+
* @param {ORDER_BY} [params.orderBy] Optional. Defines the sorting type.'CREATED_AT', 'UPDATED_AT', 'LAST_ACTIVITY_AT' or 'ID'. Default is 'CREATED_AT'
1380
+
* @param {string} [params.from] Optional. Interval initial value (inclusive). The value type depends on orderBy.
1381
+
* @param {string} [params.till] Optional. Interval end value (inclusive). The value type depends on orderBy.
1307
1382
* @param {string} [params.idFrom] Optional. Interval initial value when ordering by id. Min is 0
1308
1383
* @param {string} [params.idTill] Optional. Interval end value when ordering by id. Min is 0
1309
1384
* @param {string} [params.sort] Optional. Sort direction. 'ASC' or 'DESC'. Default is 'DESC'.
@@ -1320,7 +1395,7 @@ Accepted values: wallet, spot. Must not be the same as source
Copy file name to clipboardExpand all lines: lib/websocket/walletClient.ts
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@ import { AuthClient } from "./authClient";
2
2
import{Balance,Transaction}from"../models";
3
3
import{
4
4
NOTIFICATION_TYPE,
5
+
ORDER_BY,
5
6
SORT,
6
7
SORT_BY,
7
8
TRANSACTION_STATUS,
@@ -94,11 +95,11 @@ export class WalletClient extends AuthClient {
94
95
* @param {TRANSACTION_TYPE[]} [params.transactionTypes] Optional. List of types to query. valid types are: 'DEPOSIT', 'WITHDRAW', 'TRANSFER' and 'SWAP'
95
96
* @param {TRANSACTION_SUBTYPE[]} [params.transactionSubtyes] Optional. List of subtypes to query. valid subtypes are: 'UNCLASSIFIED', 'BLOCKCHAIN', 'AIRDROP', 'AFFILIATE', 'STAKING', 'BUY_CRYPTO', 'OFFCHAIN', 'FIAT', 'SUB_ACCOUNT', 'WALLET_TO_SPOT', 'SPOT_TO_WALLET', 'WALLET_TO_DERIVATIVES', 'DERIVATIVES_TO_WALLET', 'CHAIN_SWITCH_FROM', 'CHAIN_SWITCH_TO' and 'INSTANT_EXCHANGE'
96
97
* @param {TRANSACTION_STATUS[]} [params.transactionStatuses] Optional. List of statuses to query. valid subtypes are: 'CREATED', 'PENDING', 'FAILED', 'SUCCESS' and 'ROLLED_BACK'
97
-
* @param {string} [params.from] Optional. Interval initial value when ordering by 'createdAt'. As Datetime
98
-
* @param {string} [params.till] Optional. Interval end value when ordering by 'createdAt'. As Datetime
98
+
* @param {string} [params.from] Optional. Interval initial value (inclusive). The value type depends on order_by.
99
+
* @param {string} [params.till] Optional. Interval end value (inclusive). The value type depends on order_by.
99
100
* @param {string} [params.idFrom] Optional. Interval initial value when ordering by id. Min is 0
100
101
* @param {string} [params.idTill] Optional. Interval end value when ordering by id. Min is 0
101
-
* @param {SORT_BY} [params.orderBy] Optional. sorting parameter.'createdAt' or 'id'. Default is 'createdAt'
102
+
* @param {ORDER_BY} [params.orderBy] Optional. Defines the sorting type.'CREATED_AT', 'updatedAt', 'last or 'id'. Default is 'createdAt'
102
103
* @param {SORT} [params.sort] Optional. Sort direction. 'ASC' or 'DESC'. Default is 'DESC'
103
104
* @param {number} [params.limit] Optional. Transactions per query. Defaul is 100. Max is 1000
104
105
* @param {number} [params.offset] Optional. Default is 0. Max is 100000
@@ -115,7 +116,7 @@ export class WalletClient extends AuthClient {
0 commit comments