Skip to content

Commit 2437a7f

Browse files
author
Jon Eyrick
authored
Easier market orders
Visit binance.com
1 parent 17dd6b9 commit 2437a7f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,8 +1039,17 @@ binance.sell("ETHBTC", quantity, price);
10391039
```javascript
10401040
// These orders will be executed at current market price.
10411041
var quantity = 1;
1042-
binance.buy("BNBBTC", quantity, 0, {type:"MARKET"})
1043-
binance.sell("ETHBTC", quantity, 0, {type:"MARKET"});
1042+
binance.marketBuy("BNBBTC", quantity);
1043+
binance.marketSell("ETHBTC", quantity);
1044+
```
1045+
1046+
#### Chaining orders together
1047+
```javascript
1048+
var quantity = 1;
1049+
binance.marketBuy("BNBBTC", quantity, function(response) {
1050+
console.log("Market Buy response", response);
1051+
// Now you can limit sell with a stop loss, etc.
1052+
});
10441053
```
10451054

10461055
#### Placing a STOP LOSS order

0 commit comments

Comments
 (0)