mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-08-23 00:20:52 +00:00
* remove yarn.lock * reinstall with npm * fix package.json * update xrplf eslint * fix all other instances of yarn
26 lines
650 B
Plaintext
26 lines
650 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/getOrders.json') %>
|