Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetBondByNameResponse ¶
type GetBondByNameResponse struct {
Bond ScraperBond `json:"bond"`
UpdatedAt string `json:"updated_at"`
}
type ListAllBondsResponse ¶
type ListAllBondsResponse struct {
Bonds []ScraperBond `json:"bonds"`
UpdatedAt string `json:"updated_at"`
}
type SaveBondsRequest ¶
type ScraperBond ¶
type ScraperBond struct {
Name string `json:"name"`
Investable bool `json:"investable"`
AnnualInvestmentRate string `json:"annual_investment_rate"`
UnitaryInvestmentValue float64 `json:"unitary_investment_value"`
MinimumInvestmentAmount float64 `json:"minimum_investment_amount"`
AnnualRedemptionRate string `json:"annual_redemption_rate"`
UnitaryRedemptionValue float64 `json:"unitary_redemption_value"`
Maturity string `json:"maturity"`
}
type ScraperCache ¶
type ScraperCache struct {
BondsMap map[string]ScraperBond
BondsList []ScraperBond
UpdatedAt string
sync.RWMutex
}
func (*ScraperCache) Save ¶
func (sc *ScraperCache) Save(investData []Invest, redeemData []Redeem)
Click to show internal directories.
Click to hide internal directories.