Skip to content

Commit f5848a1

Browse files
author
Jon Eyrick
authored
Deposit+Withdraw functionality
1 parent d95b296 commit f5848a1

File tree

1 file changed

+59
-1
lines changed

1 file changed

+59
-1
lines changed

README.md

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,65 @@ bids { '0.00025203': 0.201624,
13271327
```
13281328
</details>
13291329

1330-
#### Troubleshooting
1330+
### Deposit & Withdraw
1331+
1332+
#### Get Deposit Address
1333+
```js
1334+
binance.depositAddress("XMR", function(response) {
1335+
console.log(response);
1336+
});
1337+
```
1338+
1339+
#### Get All Deposit History
1340+
```js
1341+
binance.depositHistory(function(response) {
1342+
console.log(response);
1343+
});
1344+
```
1345+
1346+
#### Get Deposit History for a specific symbol
1347+
```js
1348+
binance.depositHistory(function(response) {
1349+
console.log(response);
1350+
}, "VEN");
1351+
```
1352+
1353+
#### Get All Withdraw History
1354+
```js
1355+
binance.withdrawHistory(function(response) {
1356+
console.log(response);
1357+
});
1358+
```
1359+
1360+
#### Get Withdraw History for a specific symbol
1361+
```js
1362+
binance.withdrawHistory(function(response) {
1363+
console.log(response);
1364+
}, "BTC");
1365+
```
1366+
1367+
#### Withdraw with AddressTag
1368+
```js
1369+
// Required for coins like XMR, XRP, etc.
1370+
let address = "44tLjmXrQNrWJ5NBsEj2R77ZBEgDa3fEe9GLpSf2FRmhexPvfYDUAB7EXX1Hdb3aMQ9FLqdJ56yaAhiXoRsceGJCRS3Jxkn";
1371+
let addressTag = "0e5e38a01058dbf64e53a4333a5acf98e0d5feb8e523d32e3186c664a9c762c1";
1372+
let amount = 0.1;
1373+
binance.withdraw("XMR", address, amount, addressTag);
1374+
```
1375+
1376+
#### Withdraw with Callback
1377+
```js
1378+
binance.withdraw("ETH", "0x1d2034348c851ea29c7d03731c7968a5bcc91564", 1, false, function(response) {
1379+
console.log(response);
1380+
});
1381+
```
1382+
1383+
#### Withdraw
1384+
```js
1385+
binance.withdraw("BTC", "1C5gqLRs96Xq4V2ZZAR1347yUCpHie7sa", 0.2);
1386+
```
1387+
1388+
### Troubleshooting
13311389
Verify that your system time is correct. If you have any suggestions don't hestitate to file an issue.
13321390

13331391
Having problems? Try adding `recvWindow` to your options:

0 commit comments

Comments
 (0)