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
Copy file name to clipboardExpand all lines: lib/client.ts
+19-20Lines changed: 19 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -547,7 +547,7 @@ export class Client {
547
547
* @param {string} [params.stopPrice] Required for 'stopLimit' and 'stopMarket' orders. stop price of the order
548
548
* @param {string} [params.expireTime] Required for orders with timeInForce = GDT
549
549
* @param {boolean} [params.strictValidate] Optional. If False, the server rounds half down for tickerSize and quantityIncrement. Example of ETHBTC: tickSize = '0.000001', then price '0.046016' is valid, '0.0460165' is invalid
550
-
* @param {boolean} [params.postOnly] Optional. If True, your post_only order causes a match with a pre-existing order as a taker, then the order will be cancelled
550
+
* @param {boolean} [params.postOnly] Optional. If True, your postOnly order causes a match with a pre-existing order as a taker, then the order will be cancelled
551
551
* @param {string} [params.takeRate] Optional. Liquidity taker fee, a fraction of order volume, such as 0.001 (for 0.1% fee). Can only increase the fee. Used for fee markup.
552
552
* @param {string} [params.makeRate] Optional. Liquidity provider fee, a fraction of order volume, such as 0.001 (for 0.1% fee). Can only increase the fee. Used for fee markup.
* @param {string} params.orderListId Order list identifier. If omitted, it will be generated by the system upon order list creation. Must be equal to client_order_id of the first order in the request.
610
+
* @param {string} params.orderListId Order list identifier. If omitted, it will be generated by the system upon order list creation. Must be equal to clientOrderId of the first order in the request.
611
611
* @param {string} params.contingencyType Order list type.
612
612
* @param {OrderRequest[]} params.orders Orders in the list.
613
613
* @return A promise that resolves with a list of reports of the created orders
* @param {string} clientOrderId client_order_id of the old order
630
+
* @param {string} clientOrderId clientOrderId of the old order
631
631
* @param {object} params Parameters
632
-
* @param {string} params.newClientOrderId client_order_id for the new order.
632
+
* @param {string} params.newClientOrderId clientOrderId for the new order.
633
633
* @param {string} params.quantity Order quantity.
634
634
* @param {string} [params.price] Required if order type is limit, stopLimit, or takeProfitLimit. Order price.
635
-
* @param {boolean} [params.strictValidate] Optional. Price and quantity will be checked for incrementation within the symbol’s tick size and quantity step. See the symbol's tick_size and quantity_increment.
635
+
* @param {boolean} [params.strictValidate] Optional. Price and quantity will be checked for incrementation within the symbol’s tick size and quantity step. See the symbol's tickSize and quantityIncrement.
* a single address is generated per base currency with additional
846
-
* identifiers which differ for each address: payment_id or public_key.
847
+
* identifiers which differ for each address: paymentId or publicKey.
847
848
* As a result, generating a new address for such a token
848
849
* will change the current address for an entire base currency accordingly.
849
850
*
@@ -920,9 +921,9 @@ export class Client {
920
921
* @param {string} [params.paymentId] Optional.
921
922
* @param {boolean} [params.includeFee] Optional. If true then the total spent amount includes fees. Default false
922
923
* @param {boolean} [params.autoCommit] Optional. If false then you should commit or rollback transaction in an hour. Used in two phase commit schema. Default true
923
-
* @param {USE_OFFCHAIN} [params.use_offchain] Whether the withdrawal may be committed offchain. 'never', 'optionally', 'required'
924
+
* @param {USE_OFFCHAIN} [params.useOffchain] Whether the withdrawal may be committed offchain. 'never', 'optionally', 'required'
924
925
Accepted values: never, optionally, required
925
-
* @param {string} [params.public_comment] Optional. Maximum length is 255.
926
+
* @param {string} [params.publicComment] Optional. Maximum length is 255.
926
927
*
927
928
* @return The transaction id, asigned by the exchange
928
929
*/
@@ -1129,9 +1130,9 @@ Accepted values: wallet, spot. Must not be the same as source
1129
1130
* @param {TRANSACTION_STATUS[]} [params.statuses] Optional. List of statuses to query. valid subtypes are: 'CREATED', 'PENDING', 'FAILED', 'SUCCESS' and 'ROLLED_BACK'
1130
1131
* @param {string[]} [params.currencies] Optional. List of currencies of the transactions
1131
1132
* @param {string[]} [params.networks] Optional. List of network codes
1132
-
* @param {SORT_BY} [params.orderBy] Optional. Defines the sorting type.'created_at' or 'id'. Default is 'created_at'
1133
-
* @param {string} [params.from] Optional. Interval initial value when ordering by 'created_at'. As Datetime
1134
-
* @param {string} [params.till] Optional. Interval end value when ordering by 'created_at'. As Datetime
1133
+
* @param {SORT_BY} [params.orderBy] Optional. Defines the sorting type.'createdAt' or 'id'. Default is 'createdAt'
1134
+
* @param {string} [params.from] Optional. Interval initial value when ordering by 'createdAt'. As Datetime
1135
+
* @param {string} [params.till] Optional. Interval end value when ordering by 'createdAt'. As Datetime
1135
1136
* @param {string} [params.idFrom] Optional. Interval initial value when ordering by id. Min is 0
1136
1137
* @param {string} [params.idTill] Optional. Interval end value when ordering by id. Min is 0
1137
1138
* @param {string} [params.sort] Optional. Sort direction. 'ASC' or 'DESC'. Default is 'DESC'.
@@ -1283,9 +1284,7 @@ Accepted values: wallet, spot. Must not be the same as source
* @param {string} [params.expireTime] Optional. Required for orders with timeInForce = GDT
77
77
* @param {boolean} [params.strictValidate] Optional. If False, the server rounds half down for tickerSize and quantityIncrement. Example of ETHBTC: tickSize = '0.000001', then price '0.046016' is valid, '0.0460165' is invalid
78
-
* @param {boolean} [params.postOnly] Optional. If True, your post_only order causes a match with a pre-existing order as a taker, then the order will be cancelled
78
+
* @param {boolean} [params.postOnly] Optional. If True, your postOnly order causes a match with a pre-existing order as a taker, then the order will be cancelled
79
79
* @param {string} [params.takeRate] Optional. Liquidity taker fee, a fraction of order volume, such as 0.001 (for 0.1% fee). Can only increase the fee. Used for fee markup.
80
80
* @param {string} [params.makeRate] Optional. Liquidity provider fee, a fraction of order volume, such as 0.001 (for 0.1% fee). Can only increase the fee. Used for fee markup.
81
81
* @return A promise that resolves with a report of the new order
@@ -134,7 +134,7 @@ export class TradingClient extends AuthClient {
* @param {string} params.orderListId Order list identifier. If omitted, it will be generated by the system upon order list creation. Must be equal to client_order_id of the first order in the request.
137
+
* @param {string} params.orderListId Order list identifier. If omitted, it will be generated by the system upon order list creation. Must be equal to clientOrderId of the first order in the request.
138
138
* @param {string} params.contingencyType Order list type.
139
139
* @param {OrderRequest[]} params.orders Orders in the list.
140
140
* @return A promise that resolves with a list all reports created
@@ -163,7 +163,7 @@ export class TradingClient extends AuthClient {
@@ -177,7 +177,7 @@ export class TradingClient extends AuthClient {
177
177
* @param {string} params.newClientOrderId the new client order id for the modified order. must be unique within the trading day
178
178
* @param {string} params.quantity new order quantity
179
179
* @param {string} params.price new order price
180
-
* @param {boolean} [params.strictValidate] price and quantity will be checked for the incrementation with tick size and quantity step. See symbol's tick_size and quantity_increment
180
+
* @param {boolean} [params.strictValidate] price and quantity will be checked for the incrementation with tick size and quantity step. See symbol's tickSize and quantityIncrement
181
181
* @return A promise that resolves with a report of the modified order
Copy file name to clipboardExpand all lines: lib/websocket/walletClient.ts
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -85,11 +85,11 @@ export class WalletClient extends AuthClient {
85
85
* @param {TRANSACTION_TYPE[]} [params.transactionTypes] Optional. List of types to query. valid types are: 'DEPOSIT', 'WITHDRAW', 'TRANSFER' and 'SWAP'
86
86
* @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'
87
87
* @param {TRANSACTION_STATUS[]} [params.transactionStatuses] Optional. List of statuses to query. valid subtypes are: 'CREATED', 'PENDING', 'FAILED', 'SUCCESS' and 'ROLLED_BACK'
88
-
* @param {string} [params.from] Optional. Interval initial value when ordering by 'created_at'. As Datetime
89
-
* @param {string} [params.till] Optional. Interval end value when ordering by 'created_at'. As Datetime
88
+
* @param {string} [params.from] Optional. Interval initial value when ordering by 'createdAt'. As Datetime
89
+
* @param {string} [params.till] Optional. Interval end value when ordering by 'createdAt'. As Datetime
90
90
* @param {string} [params.idFrom] Optional. Interval initial value when ordering by id. Min is 0
91
91
* @param {string} [params.idTill] Optional. Interval end value when ordering by id. Min is 0
92
-
* @param {SORT_BY} [params.orderBy] Optional. sorting parameter.'created_at' or 'id'. Default is 'created_at'
92
+
* @param {SORT_BY} [params.orderBy] Optional. sorting parameter.'createdAt' or 'id'. Default is 'createdAt'
93
93
* @param {SORT} [params.sort] Optional. Sort direction. 'ASC' or 'DESC'. Default is 'DESC'
94
94
* @param {number} [params.limit] Optional. Transactions per query. Defaul is 100. Max is 1000
95
95
* @param {number} [params.offset] Optional. Default is 0. Max is 100000
@@ -112,11 +112,11 @@ export class WalletClient extends AuthClient {
0 commit comments