@quantbrasil/cli 0.1.0-beta.2 → 0.1.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -11
- package/dist/cli/index.d.ts +2 -3
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2 -10
- package/dist/commands/portfolios.d.ts +133 -8
- package/dist/commands/portfolios.d.ts.map +1 -1
- package/dist/commands/portfolios.js +434 -55
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/vendor/core/capabilities/index.d.ts +0 -1
- package/dist/vendor/core/capabilities/index.d.ts.map +1 -1
- package/dist/vendor/core/capabilities/index.js +0 -1
- package/dist/vendor/core/capabilities/portfolios.d.ts +401 -56
- package/dist/vendor/core/capabilities/portfolios.d.ts.map +1 -1
- package/dist/vendor/core/capabilities/portfolios.js +383 -115
- package/dist/vendor/core/capabilities/registry.d.ts +586 -266
- package/dist/vendor/core/capabilities/registry.d.ts.map +1 -1
- package/dist/vendor/core/capabilities/registry.js +0 -2
- package/dist/vendor/core/capabilities/types.d.ts +1 -1
- package/dist/vendor/core/capabilities/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/skills/quantbrasil/SKILL.md +13 -5
- package/skills/quantbrasil/references/cli.md +22 -25
- package/skills/quantbrasil/references/costs.md +4 -4
- package/skills/quantbrasil/references/errors.md +16 -5
- package/skills/quantbrasil/references/portfolios.md +92 -0
- package/skills/quantbrasil/references/unsupported.md +2 -2
- package/skills/quantbrasil/references/workflows.md +41 -22
- package/dist/commands/analytics.d.ts +0 -131
- package/dist/commands/analytics.d.ts.map +0 -1
- package/dist/commands/analytics.js +0 -291
- package/dist/vendor/core/capabilities/analytics.d.ts +0 -187
- package/dist/vendor/core/capabilities/analytics.d.ts.map +0 -1
- package/dist/vendor/core/capabilities/analytics.js +0 -214
package/README.md
CHANGED
|
@@ -55,16 +55,19 @@ quantbrasil market price PETR4 --json
|
|
|
55
55
|
quantbrasil assets overview PETR4 --sections price,performance
|
|
56
56
|
quantbrasil assets overview PETR4 --sections price,technicals
|
|
57
57
|
quantbrasil assets overview PETR4 --sections price,fundamentals --json
|
|
58
|
-
quantbrasil
|
|
59
|
-
quantbrasil
|
|
60
|
-
quantbrasil
|
|
61
|
-
quantbrasil
|
|
62
|
-
quantbrasil
|
|
63
|
-
quantbrasil
|
|
64
|
-
quantbrasil
|
|
65
|
-
quantbrasil
|
|
66
|
-
quantbrasil
|
|
67
|
-
quantbrasil
|
|
58
|
+
quantbrasil watchlists list
|
|
59
|
+
quantbrasil watchlists get 93
|
|
60
|
+
quantbrasil watchlists create "Dividendos"
|
|
61
|
+
quantbrasil watchlists add-assets 93 PETR4 VALE3
|
|
62
|
+
quantbrasil holdings list
|
|
63
|
+
quantbrasil holdings get 182
|
|
64
|
+
quantbrasil holdings create "Longo Prazo"
|
|
65
|
+
quantbrasil holdings create "Longo Prazo" --target PETR4:50 --target VALE3:50
|
|
66
|
+
quantbrasil holdings create "Carteira Real" --mode position
|
|
67
|
+
quantbrasil holdings set-targets 182 PETR4:50 VALE3:50
|
|
68
|
+
quantbrasil holdings historical-return 182 --from 2025-01-01 --to 2026-01-01
|
|
69
|
+
quantbrasil holdings beta 182 --years 3
|
|
70
|
+
quantbrasil holdings var 182 --years 1 --confidence 95
|
|
68
71
|
```
|
|
69
72
|
|
|
70
73
|
## Local config
|
|
@@ -183,7 +186,7 @@ For commands that expose `--json`, failures are written to stderr as JSON:
|
|
|
183
186
|
"category": "auth",
|
|
184
187
|
"exit_code": 1,
|
|
185
188
|
"status": 401,
|
|
186
|
-
"path": "/api/desk/tools/
|
|
189
|
+
"path": "/api/desk/tools/watchlist/list",
|
|
187
190
|
"request_id": "req_..."
|
|
188
191
|
}
|
|
189
192
|
}
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Command } from "commander";
|
|
|
2
2
|
import { type CapabilitiesCommandIO, runCapabilitiesCommand } from "../commands/capabilities.js";
|
|
3
3
|
import { runMarketAssetsCommand, runMarketPriceCommand } from "../commands/market.js";
|
|
4
4
|
import { runInitCommand } from "../commands/init.js";
|
|
5
|
-
import {
|
|
5
|
+
import { runHoldingCreateCommand, runHoldingBetaCommand, runHoldingGetCommand, runHoldingHistoricalReturnCommand, runHoldingListCommand, runHoldingRenameCommand, runHoldingSetTargetsCommand, runHoldingVarCommand, runWatchlistAddAssetsCommand, runWatchlistCreateCommand, runWatchlistGetCommand, runWatchlistListCommand, runWatchlistRemoveAssetsCommand, runWatchlistRenameCommand } from "../commands/portfolios.js";
|
|
6
6
|
import { runSkillsInstallCommand } from "../commands/skills.js";
|
|
7
7
|
import { runStatusCommand } from "../commands/status.js";
|
|
8
8
|
import { type TerminalWriter } from "./terminal.js";
|
|
@@ -19,12 +19,11 @@ export interface CliRunOptions extends CliProgramOptions {
|
|
|
19
19
|
}
|
|
20
20
|
export declare function createCliProgram(options?: CliProgramOptions): Command;
|
|
21
21
|
export declare function run(argv?: string[], options?: CliRunOptions): Promise<void>;
|
|
22
|
-
export { runBetaCommand, runHistoricalReturnCommand, runVarCommand, } from "../commands/analytics.js";
|
|
23
22
|
export { runAuthLoginCommand, runAuthLogoutCommand } from "../commands/auth.js";
|
|
24
23
|
export { runAssetOverviewCommand } from "../commands/assets.js";
|
|
25
24
|
export { runCapabilitiesCommand, runStatusCommand };
|
|
26
25
|
export { runInitCommand };
|
|
27
26
|
export { runMarketAssetsCommand, runMarketPriceCommand };
|
|
28
|
-
export {
|
|
27
|
+
export { runHoldingBetaCommand, runHoldingCreateCommand, runHoldingGetCommand, runHoldingHistoricalReturnCommand, runHoldingListCommand, runHoldingRenameCommand, runHoldingSetTargetsCommand, runHoldingVarCommand, runWatchlistAddAssetsCommand, runWatchlistCreateCommand, runWatchlistGetCommand, runWatchlistListCommand, runWatchlistRemoveAssetsCommand, runWatchlistRenameCommand, };
|
|
29
28
|
export { runSkillsInstallCommand };
|
|
30
29
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cli/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,OAAO,EACL,KAAK,qBAAqB,EAE1B,sBAAsB,EACvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAGL,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,cAAc,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,iCAAiC,EACjC,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,4BAA4B,EAC5B,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,EACvB,+BAA+B,EAC/B,yBAAyB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGL,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAO/B,OAAO,EAAqB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAQvE,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,qBAAqB,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB,MAAM,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAClD,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAyDzE;AAED,wBAAsB,GAAG,CACvB,IAAI,WAAe,EACnB,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CA8Bf;AAoCD,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,iCAAiC,EACjC,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,4BAA4B,EAC5B,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,EACvB,+BAA+B,EAC/B,yBAAyB,GAC1B,CAAC;AACF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
package/dist/cli/index.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import { Command } from "commander";
|
|
3
|
-
import { registerAnalyticsCommands, } from "../commands/analytics.js";
|
|
4
3
|
import { registerAssetsCommands, } from "../commands/assets.js";
|
|
5
4
|
import { registerAuthCommands, } from "../commands/auth.js";
|
|
6
5
|
import { registerCapabilitiesCommand, runCapabilitiesCommand, } from "../commands/capabilities.js";
|
|
7
6
|
import { registerMarketCommands, runMarketAssetsCommand, runMarketPriceCommand, } from "../commands/market.js";
|
|
8
7
|
import { registerInitCommand, runInitCommand, } from "../commands/init.js";
|
|
9
|
-
import { registerPortfoliosCommands,
|
|
8
|
+
import { registerPortfoliosCommands, runHoldingCreateCommand, runHoldingBetaCommand, runHoldingGetCommand, runHoldingHistoricalReturnCommand, runHoldingListCommand, runHoldingRenameCommand, runHoldingSetTargetsCommand, runHoldingVarCommand, runWatchlistAddAssetsCommand, runWatchlistCreateCommand, runWatchlistGetCommand, runWatchlistListCommand, runWatchlistRemoveAssetsCommand, runWatchlistRenameCommand, } from "../commands/portfolios.js";
|
|
10
9
|
import { registerSkillsCommands, runSkillsInstallCommand, } from "../commands/skills.js";
|
|
11
10
|
import { registerStatusFlag, runStatusCommand, } from "../commands/status.js";
|
|
12
11
|
import { buildCliErrorPayload, formatCliErrorMessage, normalizeCliError, shouldEmitJsonError, } from "./errors.js";
|
|
@@ -26,11 +25,6 @@ export function createCliProgram(options = {}) {
|
|
|
26
25
|
env: options.env,
|
|
27
26
|
fetch: options.fetch,
|
|
28
27
|
};
|
|
29
|
-
const analyticsContext = {
|
|
30
|
-
io: options.io,
|
|
31
|
-
env: options.env,
|
|
32
|
-
fetch: options.fetch,
|
|
33
|
-
};
|
|
34
28
|
const marketContext = {
|
|
35
29
|
io: options.io,
|
|
36
30
|
env: options.env,
|
|
@@ -66,7 +60,6 @@ export function createCliProgram(options = {}) {
|
|
|
66
60
|
registerCapabilitiesCommand(program, options.io);
|
|
67
61
|
registerAuthCommands(program, authContext);
|
|
68
62
|
registerAssetsCommands(program, assetsContext);
|
|
69
|
-
registerAnalyticsCommands(program, analyticsContext);
|
|
70
63
|
registerInitCommand(program, initContext);
|
|
71
64
|
registerMarketCommands(program, marketContext);
|
|
72
65
|
registerPortfoliosCommands(program, portfoliosContext);
|
|
@@ -122,11 +115,10 @@ function isCommanderDisplayExit(error) {
|
|
|
122
115
|
return (error.code === "commander.helpDisplayed" ||
|
|
123
116
|
error.code === "commander.version");
|
|
124
117
|
}
|
|
125
|
-
export { runBetaCommand, runHistoricalReturnCommand, runVarCommand, } from "../commands/analytics.js";
|
|
126
118
|
export { runAuthLoginCommand, runAuthLogoutCommand } from "../commands/auth.js";
|
|
127
119
|
export { runAssetOverviewCommand } from "../commands/assets.js";
|
|
128
120
|
export { runCapabilitiesCommand, runStatusCommand };
|
|
129
121
|
export { runInitCommand };
|
|
130
122
|
export { runMarketAssetsCommand, runMarketPriceCommand };
|
|
131
|
-
export {
|
|
123
|
+
export { runHoldingBetaCommand, runHoldingCreateCommand, runHoldingGetCommand, runHoldingHistoricalReturnCommand, runHoldingListCommand, runHoldingRenameCommand, runHoldingSetTargetsCommand, runHoldingVarCommand, runWatchlistAddAssetsCommand, runWatchlistCreateCommand, runWatchlistGetCommand, runWatchlistListCommand, runWatchlistRemoveAssetsCommand, runWatchlistRenameCommand, };
|
|
132
124
|
export { runSkillsInstallCommand };
|
|
@@ -14,12 +14,43 @@ export interface PortfolioGetCommandOptions {
|
|
|
14
14
|
export interface PortfolioMutationCommandOptions {
|
|
15
15
|
json?: boolean;
|
|
16
16
|
}
|
|
17
|
+
export interface HoldingCreateCommandOptions {
|
|
18
|
+
mode?: string;
|
|
19
|
+
target?: string[];
|
|
20
|
+
json?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface HoldingSetTargetsCommandOptions {
|
|
23
|
+
json?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface HoldingHistoricalReturnCommandOptions {
|
|
26
|
+
from: string;
|
|
27
|
+
to: string;
|
|
28
|
+
json?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface HoldingBetaCommandOptions {
|
|
31
|
+
years?: string;
|
|
32
|
+
json?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface HoldingVarCommandOptions {
|
|
35
|
+
years?: string;
|
|
36
|
+
confidence?: string;
|
|
37
|
+
json?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface HoldingTargetInput {
|
|
40
|
+
[key: string]: JsonValue;
|
|
41
|
+
ticker: string;
|
|
42
|
+
weight_pct: number;
|
|
43
|
+
}
|
|
17
44
|
export interface PortfolioOut {
|
|
18
45
|
[key: string]: JsonValue;
|
|
19
46
|
id: number;
|
|
20
47
|
name: string;
|
|
48
|
+
kind: "WATCHLIST" | "HOLDING" | "SYSTEM" | null;
|
|
21
49
|
symbols: string[];
|
|
22
50
|
weights: Record<string, number> | null;
|
|
51
|
+
default_allocation_input: "TARGET_WEIGHT" | "POSITION" | null;
|
|
52
|
+
has_target_weights: boolean;
|
|
53
|
+
has_positions: boolean;
|
|
23
54
|
}
|
|
24
55
|
export interface PortfolioListResponse {
|
|
25
56
|
[key: string]: JsonValue;
|
|
@@ -44,17 +75,111 @@ export interface PortfolioMutationResponse {
|
|
|
44
75
|
summary_markdown: string;
|
|
45
76
|
portfolio: PortfolioOut;
|
|
46
77
|
}
|
|
78
|
+
export interface HistoricalReturnHolding {
|
|
79
|
+
[key: string]: JsonValue;
|
|
80
|
+
ticker: string;
|
|
81
|
+
weight_pct: number;
|
|
82
|
+
total_return: number;
|
|
83
|
+
contribution: number;
|
|
84
|
+
}
|
|
85
|
+
export interface HistoricalReturnResponse {
|
|
86
|
+
[key: string]: JsonValue;
|
|
87
|
+
source_type: "saved_holding";
|
|
88
|
+
portfolio_id: number | null;
|
|
89
|
+
portfolio_name: string | null;
|
|
90
|
+
requested_start_date: string;
|
|
91
|
+
requested_end_date: string;
|
|
92
|
+
effective_start_date: string;
|
|
93
|
+
effective_end_date: string;
|
|
94
|
+
total_return: number;
|
|
95
|
+
annualized_return: number;
|
|
96
|
+
max_drawdown: number;
|
|
97
|
+
daily_volatility: number;
|
|
98
|
+
annualized_volatility: number;
|
|
99
|
+
sharpe_ratio: number;
|
|
100
|
+
ibov_return: number;
|
|
101
|
+
cdi_return: number;
|
|
102
|
+
ipca_return: number;
|
|
103
|
+
holdings: HistoricalReturnHolding[];
|
|
104
|
+
summary_markdown: string;
|
|
105
|
+
assumptions: string[];
|
|
106
|
+
warnings: string[];
|
|
107
|
+
}
|
|
108
|
+
export interface BetaHolding {
|
|
109
|
+
[key: string]: JsonValue;
|
|
110
|
+
ticker: string;
|
|
111
|
+
weight_pct: number;
|
|
112
|
+
beta: number | null;
|
|
113
|
+
weighted_beta: number | null;
|
|
114
|
+
correlation: number | null;
|
|
115
|
+
asset_daily_volatility: number | null;
|
|
116
|
+
benchmark_daily_volatility: number | null;
|
|
117
|
+
last_updated: string | null;
|
|
118
|
+
}
|
|
119
|
+
export interface BetaResponse {
|
|
120
|
+
[key: string]: JsonValue;
|
|
121
|
+
source_type: "saved_holding";
|
|
122
|
+
portfolio_id: number | null;
|
|
123
|
+
portfolio_name: string | null;
|
|
124
|
+
benchmark: "IBOV";
|
|
125
|
+
lookback_years: number;
|
|
126
|
+
beta: number;
|
|
127
|
+
correlation: number;
|
|
128
|
+
daily_volatility: number;
|
|
129
|
+
annualized_volatility: number;
|
|
130
|
+
long_exposure_pct: number;
|
|
131
|
+
short_exposure_pct: number;
|
|
132
|
+
total_weight_pct: number;
|
|
133
|
+
holdings: BetaHolding[];
|
|
134
|
+
summary_markdown: string;
|
|
135
|
+
assumptions: string[];
|
|
136
|
+
warnings: string[];
|
|
137
|
+
}
|
|
138
|
+
export interface VarHolding {
|
|
139
|
+
[key: string]: JsonValue;
|
|
140
|
+
ticker: string;
|
|
141
|
+
weight_pct: number;
|
|
142
|
+
}
|
|
143
|
+
export interface VarResponse {
|
|
144
|
+
[key: string]: JsonValue;
|
|
145
|
+
source_type: "saved_holding";
|
|
146
|
+
portfolio_id: number | null;
|
|
147
|
+
portfolio_name: string | null;
|
|
148
|
+
lookback_years: number;
|
|
149
|
+
confidence_pct: number;
|
|
150
|
+
time_horizon: "1d";
|
|
151
|
+
var: number;
|
|
152
|
+
long_exposure_pct: number;
|
|
153
|
+
short_exposure_pct: number;
|
|
154
|
+
total_weight_pct: number;
|
|
155
|
+
holdings: VarHolding[];
|
|
156
|
+
histogram_data: JsonValue[];
|
|
157
|
+
summary_markdown: string;
|
|
158
|
+
assumptions: string[];
|
|
159
|
+
warnings: string[];
|
|
160
|
+
}
|
|
47
161
|
export interface PortfoliosCommandContext extends CliInvokeContext {
|
|
48
162
|
io?: PortfoliosCommandIO;
|
|
49
163
|
}
|
|
50
164
|
export declare function registerPortfoliosCommands(program: Command, context?: PortfoliosCommandContext): void;
|
|
51
|
-
export declare function
|
|
52
|
-
export declare function
|
|
53
|
-
export declare function
|
|
54
|
-
export declare function
|
|
55
|
-
export declare function
|
|
56
|
-
export declare function
|
|
57
|
-
export declare function
|
|
58
|
-
export declare function
|
|
165
|
+
export declare function runWatchlistListCommand(options: PortfolioListCommandOptions, context?: PortfoliosCommandContext): Promise<void>;
|
|
166
|
+
export declare function runHoldingListCommand(options: PortfolioListCommandOptions, context?: PortfoliosCommandContext): Promise<void>;
|
|
167
|
+
export declare function runWatchlistGetCommand(portfolioId: number, options: PortfolioGetCommandOptions, context?: PortfoliosCommandContext): Promise<void>;
|
|
168
|
+
export declare function runHoldingGetCommand(portfolioId: number, options: PortfolioGetCommandOptions, context?: PortfoliosCommandContext): Promise<void>;
|
|
169
|
+
export declare function runWatchlistCreateCommand(name: string, options: PortfolioMutationCommandOptions, context?: PortfoliosCommandContext): Promise<void>;
|
|
170
|
+
export declare function runHoldingCreateCommand(name: string, options: HoldingCreateCommandOptions, context?: PortfoliosCommandContext): Promise<void>;
|
|
171
|
+
export declare function runHoldingSetTargetsCommand(portfolioId: number, targets: string[], options: HoldingSetTargetsCommandOptions, context?: PortfoliosCommandContext): Promise<void>;
|
|
172
|
+
export declare function runWatchlistRenameCommand(portfolioId: number, name: string, options: PortfolioMutationCommandOptions, context?: PortfoliosCommandContext): Promise<void>;
|
|
173
|
+
export declare function runHoldingRenameCommand(portfolioId: number, name: string, options: PortfolioMutationCommandOptions, context?: PortfoliosCommandContext): Promise<void>;
|
|
174
|
+
export declare function runWatchlistAddAssetsCommand(portfolioId: number, symbols: string[], options: PortfolioMutationCommandOptions, context?: PortfoliosCommandContext): Promise<void>;
|
|
175
|
+
export declare function runWatchlistRemoveAssetsCommand(portfolioId: number, symbols: string[], options: PortfolioMutationCommandOptions, context?: PortfoliosCommandContext): Promise<void>;
|
|
176
|
+
export declare function runHoldingHistoricalReturnCommand(portfolioId: number, options: HoldingHistoricalReturnCommandOptions, context?: PortfoliosCommandContext): Promise<void>;
|
|
177
|
+
export declare function runHoldingBetaCommand(portfolioId: number, options: HoldingBetaCommandOptions, context?: PortfoliosCommandContext): Promise<void>;
|
|
178
|
+
export declare function runHoldingVarCommand(portfolioId: number, options: HoldingVarCommandOptions, context?: PortfoliosCommandContext): Promise<void>;
|
|
179
|
+
export declare function formatPortfolioListHuman(data: PortfolioListResponse, theme?: import("../cli/terminal.js").TerminalTheme, title?: string): string;
|
|
180
|
+
export declare function formatPortfolioGetHuman(data: PortfolioGetResponse, theme?: import("../cli/terminal.js").TerminalTheme, title?: string): string;
|
|
59
181
|
export declare function formatPortfolioMutationHuman(data: PortfolioCreateResponse | PortfolioMutationResponse, theme?: import("../cli/terminal.js").TerminalTheme): string;
|
|
182
|
+
export declare function formatHistoricalReturnHuman(data: HistoricalReturnResponse, theme?: import("../cli/terminal.js").TerminalTheme): string;
|
|
183
|
+
export declare function formatBetaHuman(data: BetaResponse, theme?: import("../cli/terminal.js").TerminalTheme): string;
|
|
184
|
+
export declare function formatVarHuman(data: VarResponse, theme?: import("../cli/terminal.js").TerminalTheme): string;
|
|
60
185
|
//# sourceMappingURL=portfolios.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolios.d.ts","sourceRoot":"","sources":["../../src/commands/portfolios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAuB,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAK9E,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAE9E,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,MAAM,WAAW,2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