Trading Assistant API Documentation - v0.1.0
Preparing search index...
types/portfolio
PortfolioState
Interface PortfolioState
interface
PortfolioState
{
portfolios
:
Portfolio
[]
;
currentPortfolio
:
Portfolio
|
null
;
positions
:
Position
[]
;
trades
:
Trade
[]
;
performance
:
PerformanceMetrics
|
null
;
performanceHistory
:
PerformanceMetrics
[]
;
allocation
:
AllocationResponse
|
null
;
recommendations
:
Recommendation
[]
;
loading
:
boolean
;
error
:
string
|
null
;
lastUpdated
:
Date
|
null
;
selectedPeriod
:
"week"
|
"month"
|
"quarter"
|
"year"
|
"all"
|
"day"
;
showClosedPositions
:
boolean
;
sortBy
:
"symbol"
|
"pnl"
|
"value"
|
"pnl_pct"
|
"sector"
;
sortDirection
:
"asc"
|
"desc"
;
}
Index
Properties
portfolios
current
Portfolio
positions
trades
performance
performance
History
allocation
recommendations
loading
error
last
Updated
selected
Period
show
Closed
Positions
sort
By
sort
Direction
Properties
portfolios
portfolios
:
Portfolio
[]
current
Portfolio
currentPortfolio
:
Portfolio
|
null
positions
positions
:
Position
[]
trades
trades
:
Trade
[]
performance
performance
:
PerformanceMetrics
|
null
performance
History
performanceHistory
:
PerformanceMetrics
[]
allocation
allocation
:
AllocationResponse
|
null
recommendations
recommendations
:
Recommendation
[]
loading
loading
:
boolean
error
error
:
string
|
null
last
Updated
lastUpdated
:
Date
|
null
selected
Period
selectedPeriod
:
"week"
|
"month"
|
"quarter"
|
"year"
|
"all"
|
"day"
show
Closed
Positions
showClosedPositions
:
boolean
sort
By
sortBy
:
"symbol"
|
"pnl"
|
"value"
|
"pnl_pct"
|
"sector"
sort
Direction
sortDirection
:
"asc"
|
"desc"
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
portfolios
current
Portfolio
positions
trades
performance
performance
History
allocation
recommendations
loading
error
last
Updated
selected
Period
show
Closed
Positions
sort
By
sort
Direction
Trading Assistant API Documentation - v0.1.0
Loading...