Skip to content

Commit 751d4ee

Browse files
authored
Merge pull request #150 from petarzarkov/fix/add-toAddrType
fix: add toAddrType in WithdrawRequest
2 parents 4cdb498 + 45dddcd commit 751d4ee

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "okx-api",
3-
"version": "3.0.7",
3+
"version": "3.0.8",
44
"description": "Complete Node.js SDK for OKX's REST APIs and WebSockets, with TypeScript & end-to-end tests",
55
"scripts": {
66
"test": "jest",

src/types/rest/request/funding.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ export interface WithdrawRequest {
1515
amt: string;
1616
dest: '3' | '4';
1717
toAddr: string;
18+
/**
19+
* Address type:
20+
* - 1: wallet address, email, phone, or login account name
21+
* - 2: UID (only for whitelisted users; applicable only when dest=3)
22+
*/
23+
toAddrType?: '1' | '2';
1824
chain?: string;
1925
areaCode?: string;
2026
clientId?: string;

0 commit comments

Comments
 (0)