Skip to content

Commit

Permalink
Add payload for buy order (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Balthazar Gronon committed Dec 29, 2017
1 parent 9525a63 commit 89a1a46
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ Creates a new order.

```js
console.log(await client.order({
symbol: 'ETHBTC',
symbol: 'XLMETH',
side: 'BUY',
quantity: 1,
price: 1,
quantity: 100,
price: 0.0002,
}))
```

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

```js
{
symbol: 'XLMETH',
orderId: 1740797,
clientOrderId: '1XZTVBTGS4K1e',
transactTime: 1514418413947,
price: '0.00020000',
origQty: '100.00000000',
executedQty: '0.00000000',
status: 'NEW',
timeInForce: 'GTC',
type: 'LIMIT',
side: 'BUY'
}
```

</details>
Expand Down

0 comments on commit 89a1a46

Please sign in to comment.