Skip to content

Commit

Permalink
feat(auth): add getOrders method
Browse files Browse the repository at this point in the history
  • Loading branch information
vansergen committed Dec 28, 2019
1 parent 56f0d34 commit 4bcec3f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/auth1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,13 @@ export class AuthenticatedClient1 extends PublicClient1 {
return this.post({ body, uri: "/v1/order/status" });
}

/**
* Get your active orders.
*/
getOrders(): Promise<OrderResponse[]> {
return this.post({ uri: "/v1/orders" });
}

set nonce(nonce: () => string) {
this._nonce = nonce;
}
Expand Down

0 comments on commit 4bcec3f

Please sign in to comment.