Skip to content

Commit

Permalink
Implemented get portfolio method with product details
Browse files Browse the repository at this point in the history
  • Loading branch information
icastillejogomez committed May 15, 2020
1 parent 47d6713 commit e1e1292
Show file tree
Hide file tree
Showing 60 changed files with 488 additions and 43 deletions.
8 changes: 5 additions & 3 deletions dist/lib/DeGiro.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DeGiroClassInterface } from './interfaces';
import { DeGiroSettupType, AccountConfigType, AccountDataType } from './types';
import { DeGiroSettupType, AccountConfigType, AccountDataType, CashFoundType, GetPorfolioConfigType } from './types';
/**
* @class DeGiro
* @description Main class of DeGiro Unofficial API.
Expand All @@ -16,8 +16,10 @@ export declare class DeGiro implements DeGiroClassInterface {
getAccountConfig(): Promise<AccountConfigType>;
getAccountData(): Promise<AccountDataType>;
hasLogin(): boolean;
getCashFunds(): import('./types/CashFoundType').CashFoundType[];
getPortfolio(): import('./types/PortfolioPositionType').PortfolioPositionType[];
getCashFunds(): CashFoundType[];
getPortfolio(config: GetPorfolioConfigType): Promise<any[]>;
completePortfolioDetails(portfolio: any[], getProductDetails: boolean): Promise<any[]>;
getProductsByIds(ids: string[]): Promise<any[]>;
printConfig(): void;
}
//# sourceMappingURL=DeGiro.d.ts.map
2 changes: 1 addition & 1 deletion dist/lib/DeGiro.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 41 additions & 2 deletions dist/lib/DeGiro.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/DeGiro.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions dist/lib/enums/DeGiroEnums.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ export declare enum DeGiroSort {
ASC = "asc",
DESC = "desc"
}
export declare enum PORTFOLIO_POSITIONS_TYPE_ENUM {
ALL = "all",
ALL_POSITIONS = "allPositions",
OPEN = "open",
CLOSED = "closed"
}
//# sourceMappingURL=DeGiroEnums.d.ts.map
2 changes: 1 addition & 1 deletion dist/lib/enums/DeGiroEnums.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion dist/lib/enums/DeGiroEnums.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/enums/DeGiroEnums.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions dist/lib/interfaces/DeGiroClassInterface.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CashFoundType, AccountConfigType, PortfolioPositionType, AccountDataType } from '../types';
import { CashFoundType, AccountConfigType, GetPorfolioConfigType, AccountDataType } from '../types';
/**
* @interface DeGiroClassInterface
*/
Expand All @@ -8,7 +8,8 @@ export interface DeGiroClassInterface {
getAccountConfig(): Promise<AccountConfigType>;
getAccountData(): Promise<AccountDataType>;
getCashFunds(): CashFoundType[];
getPortfolio(): PortfolioPositionType[];
getPortfolio(config: GetPorfolioConfigType): Promise<any[]>;
getProductsByIds(ids: string[]): Promise<any[]>;
printConfig(): void;
printConfig(): void;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/interfaces/DeGiroClassInterface.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/lib/requests/getPortfolioRequest.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { AccountConfigType, AccountDataType, GetPorfolioConfigType } from '../types';
export declare function getPortfolioRequest(sessionId: string, accountData: AccountDataType, accountConfig: AccountConfigType, config: GetPorfolioConfigType): Promise<any[]>;
//# sourceMappingURL=getPortfolioRequest.d.ts.map
1 change: 1 addition & 0 deletions dist/lib/requests/getPortfolioRequest.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e1e1292

Please sign in to comment.