mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
26 lines
651 B
Plaintext
26 lines
651 B
Plaintext
## getOrders
|
|
|
|
`getOrders(address: string, options: Object): Promise<Array<Object>>`
|
|
|
|
Returns open orders for the specified account. Open orders are orders that have not yet been fully executed and are still in the order book.
|
|
|
|
### Parameters
|
|
|
|
<%- renderSchema('input/get-orders.json') %>
|
|
|
|
### Return Value
|
|
|
|
This method returns a promise that resolves with an array of objects with the following structure:
|
|
|
|
<%- renderSchema('output/get-orders.json') %>
|
|
|
|
### Example
|
|
|
|
```javascript
|
|
const address = 'r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59';
|
|
return api.getOrders(address).then(orders =>
|
|
{/* ... */});
|
|
```
|
|
|
|
<%- renderFixture('responses/get-orders.json') %>
|