Skip to content

Commit 89a1a46

Browse files
author
Balthazar Gronon
committed
Add payload for buy order (#8)
1 parent 9525a63 commit 89a1a46

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,10 @@ Creates a new order.
300300

301301
```js
302302
console.log(await client.order({
303-
symbol: 'ETHBTC',
303+
symbol: 'XLMETH',
304304
side: 'BUY',
305-
quantity: 1,
306-
price: 1,
305+
quantity: 100,
306+
price: 0.0002,
307307
}))
308308
```
309309

@@ -324,6 +324,19 @@ console.log(await client.order({
324324
<summary>Output</summary>
325325

326326
```js
327+
{
328+
symbol: 'XLMETH',
329+
orderId: 1740797,
330+
clientOrderId: '1XZTVBTGS4K1e',
331+
transactTime: 1514418413947,
332+
price: '0.00020000',
333+
origQty: '100.00000000',
334+
executedQty: '0.00000000',
335+
status: 'NEW',
336+
timeInForce: 'GTC',
337+
type: 'LIMIT',
338+
side: 'BUY'
339+
}
327340
```
328341

329342
</details>

0 commit comments

Comments
 (0)