Skip to content

Commit

Permalink
feat: add the getSymbols method
Browse files Browse the repository at this point in the history
  • Loading branch information
vansergen committed Sep 21, 2020
1 parent 5fe8650 commit 26a4921
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,17 @@ export class RestClient {
return instrument;
}

/**
* Get list of instruments available for authorized user
*/
public async getSymbols({
version = DefaultAPIVersion,
}: IVersion = {}): Promise<IIntruments> {
const url = new URL(`/md/${version}/symbols`, this.url);
const groups = (await this.fetch(url)) as IIntruments;
return groups;
}

/**
* Get the last quote
*/
Expand Down

0 comments on commit 26a4921

Please sign in to comment.