Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,34 @@ api.getMarginAccount()
api.getWithdrawalsList(params)
```

```javascript
/*
Get Withdrawal info By ID
GET /api/v1/withdrawals/<withdrawalId>
params = {
withdrawalId: string
}
response : {
{
"code": "200000",
"data": {
"id": "5bd6e9286d99522a52e458de",
"currency": "BTC",
"address": "1ABCdefGhiJkl...",
"memo": "",
"amount": "0.5",
"fee": "0.0005",
"walletTxId": "b6f7a12d8e4f...",
"status": "SUCCESS",
"createdAt": 1609400000000,
"updatedAt": 1609401000000
}
}
}
*/
api.getWithdrawalByID(params)
```

```javascript
/*
Get Repay Record
Expand Down
15 changes: 15 additions & 0 deletions lib/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,21 @@ User.getWithdrawalsList = async function(params = {}) {
return result.data
}

/*
Get Withdrawal info By ID
GET /api/v1/withdrawals/<withdrawalId>
params = {
withdrawalId: string
}
*/
User.getWithdrawalByID = async function(params = {}) {
let endpoint = '/api/v1/withdrawals/' + params.withdrawalId
delete params.withdrawalId
let url = this.baseURL + endpoint
let result = await axios.get(url, this.sign(endpoint, params, 'GET'))
return result.data
}

/*
Get Withdrawal Quotas
GET /api/v1/withdrawals/quotas
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kucoin-node-api",
"version": "2.1.5",
"version": "2.1.6",
"description": "Node.js KuCoin Cryptocurrency Exchange v2 API Wrapper/SDK",
"main": "kucoin.js",
"scripts": {
Expand Down