Documentation ¶
Index ¶
- func Benchmark(c *fiber.Ctx) (resp error)
- func CreatePortfolio(c *fiber.Ctx) error
- func DeletePortfolio(c *fiber.Ctx) error
- func GetAPIKey(c *fiber.Ctx) error
- func GetActivity(c *fiber.Ctx, sqlQuery string, args ...any) error
- func GetAllActivity(c *fiber.Ctx) error
- func GetAnnouncements(c *fiber.Ctx) error
- func GetPortfolio(c *fiber.Ctx) error
- func GetPortfolioActivity(c *fiber.Ctx) error
- func GetPortfolioHoldings(c *fiber.Ctx) error
- func GetPortfolioMeasurements(c *fiber.Ctx) error
- func GetPortfolioPerformance(c *fiber.Ctx) error
- func GetPortfolioTransactions(c *fiber.Ctx) error
- func GetStrategy(c *fiber.Ctx) error
- func ListPortfolios(c *fiber.Ctx) error
- func ListStrategies(c *fiber.Ctx) error
- func LookupSecurity(c *fiber.Ctx) error
- func Ping(c *fiber.Ctx) error
- func RunStrategy(c *fiber.Ctx) (resp error)
- func UpdatePortfolio(c *fiber.Ctx) error
- type APIKeyResponse
- type Activity
- type Announcement
- type PingResponse
- type PortfolioResponse
- type SecurityDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePortfolio ¶
func CreatePortfolio(c *fiber.Ctx) error
func GetActivity ¶
func GetAllActivity ¶
func GetAllActivity(c *fiber.Ctx) error
func GetAnnouncements ¶
func GetAnnouncements(c *fiber.Ctx) error
func GetPortfolio ¶
func GetPortfolio(c *fiber.Ctx) error
GetPortfolio get a portfolio @Description Retrieve a portfolio saved on the server @Id GetPortfolio @Produce json @Param id path string true "id of porfolio to retrieve"
func GetPortfolioActivity ¶
func GetPortfolioActivity(c *fiber.Ctx) error
func GetPortfolioHoldings ¶
func GetPortfolioHoldings(c *fiber.Ctx) error
func GetPortfolioMeasurements ¶
func GetPortfolioMeasurements(c *fiber.Ctx) error
func GetPortfolioPerformance ¶
func GetPortfolioPerformance(c *fiber.Ctx) error
func GetPortfolioTransactions ¶
func GetPortfolioTransactions(c *fiber.Ctx) error
func GetStrategy ¶
func GetStrategy(c *fiber.Ctx) error
GetStrategy get configuration for a specific strategy
func ListPortfolios ¶
func ListPortfolios(c *fiber.Ctx) error
ListPortfolios list all portfolios for logged in user
func ListStrategies ¶
func ListStrategies(c *fiber.Ctx) error
ListStrategies get a list of all strategies
func LookupSecurity ¶ added in v0.5.0
func LookupSecurity(c *fiber.Ctx) error
func UpdatePortfolio ¶
func UpdatePortfolio(c *fiber.Ctx) error
UpdatePortfolio loads the portfolio from the database and updates it with the values passed via the PATCH command
Types ¶
type APIKeyResponse ¶
type APIKeyResponse struct {
Token string `json:"token"`
}
ApiKey returns a hex-encoded JSON string containing the userID
type Announcement ¶
type PingResponse ¶
type PortfolioResponse ¶
type PortfolioResponse struct { ID uuid.UUID `json:"id"` Name string `json:"name"` AccountType string `json:"accountType"` AccountNumber string `json:"accountNumber"` Brokerage string `json:"brokerage"` IsOpen bool `json:"isOpen"` Strategy string `json:"strategy"` Arguments map[string]interface{} `json:"arguments"` StartDate int64 `json:"startDate"` TaxLotMethod string `json:"taxLotMethod"` BenchmarkTicker string `json:"benchmarkTicker"` Status string `json:"status"` YTDReturn pgtype.Float8 `json:"ytdReturn"` CAGRSinceInception pgtype.Float8 `json:"cagrSinceInception"` Notifications int `json:"notifications"` Cagr3Year pgtype.Float4 `json:"cagr3Year"` Cagr5Year pgtype.Float4 `json:"cagr5Year"` Cagr10Year pgtype.Float4 `json:"cagr10Year"` StdDev pgtype.Float4 `json:"stdDev"` DownsideDeviation pgtype.Float4 `json:"downsideDeviation"` MaxDrawDown pgtype.Float4 `json:"maxDrawDown"` AvgDrawDown pgtype.Float4 `json:"avgDrawDown"` SharpeRatio pgtype.Float4 `json:"sharpeRatio"` SortinoRatio pgtype.Float4 `json:"sortinoRatio"` UlcerIndex pgtype.Float4 `json:"ulcerIndex"` NextTradeDate pgtype.Int4 `json:"nextTradeDate"` LastViewed int64 `json:"lastViewed"` Created int64 `json:"created"` LastChanged int64 `json:"lastChanged"` }
func NewPortfolioResponse ¶
func NewPortfolioResponse() PortfolioResponse
func (*PortfolioResponse) Sanitize ¶
func (pr *PortfolioResponse) Sanitize()
Click to show internal directories.
Click to hide internal directories.