Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVEntry ¶
type CSVEntry struct { ID string Status string Timestamp internal.DateTime Type string AssetType string `csv:"Asset type"` Name string Instrument string Rate float64 Yield float64 `csv:"Realized yield"` Profit float64 `csv:"Realized PnL"` Commission float64 Debit float64 Credit float64 InvestedAmount float64 `csv:"-"` }
type CSVReader ¶
type CSVReader struct {
// contains filtered or unexported fields
}
func NewCSVReader ¶
type CSVWriter ¶
type CSVWriter struct {
// contains filtered or unexported fields
}
func NewCSVWriter ¶
type FactoryInterface ¶
type JSONReader ¶
type JSONReader struct {
// contains filtered or unexported fields
}
func NewJSONReader ¶
func NewJSONReader(baseDir string, logger *log.Logger) JSONReader
func (JSONReader) Read ¶
func (r JSONReader) Read(dataType string, data map[string]any) (portfolio.OutputDataInterface, error)
type JSONWriter ¶
type JSONWriter struct {
// contains filtered or unexported fields
}
func NewJSONWriter ¶
func NewJSONWriter(logger *log.Logger) JSONWriter
type OutputData ¶
type OutputData struct {
// contains filtered or unexported fields
}
func (OutputData) Data ¶
func (d OutputData) Data() []byte
Click to show internal directories.
Click to hide internal directories.