Documentation ¶
Index ¶
- func GetHistoricESTER() error
- func GetHistoricPreESTER() error
- func LoadHistoricRate(rateType string) error
- func WriteHistoricESTER(ds models.Datastore) error
- func WriteHistoricPreESTER(ds models.Datastore) error
- func WriteHistoricRate(ds models.Datastore, rateType string) error
- func WriteHistoricSAFR(ds models.Datastore) error
- func WriteHistoricSAFRAvgs(ds models.Datastore) error
- func WriteHistoricSOFR(ds models.Datastore) error
- type CDataSet
- type CDataSetPre
- type CMessageGroup
- type CMessageGroupPre
- type CObs
- type CObsPre
- type CSeries
- type CSeriesPre
- type CTenor1Avg
- type CTenor2Avg
- type CTenor3Avg
- type CbusinessEventLog
- type CeffectiveDate
- type CeffectiveDateAvg
- type CeffectiveDateInd
- type CeventDate
- type CinsertTimestamp
- type CinsertTimestampAvg
- type CinsertTimestampInd
- type CmktRatesFindItem
- type CmktRatesSecondaryFindByDateResponse
- type Crate
- type CrateIndexInd
- type CrateOperation
- type CrateOperationAvg
- type CrateOperationInd
- type CrateType
- type CrateTypeInd
- type CsafrRatesFindItemAvg
- type CsafrRatesFindItemInd
- type CsafrRatesSecondaryFindByDateResponseAvg
- type CsafrRatesSecondaryFindByDateResponseInd
- type CtradingVolume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHistoricESTER ¶
func GetHistoricESTER() error
GetHistoricESTER downloads historic ESTER data from the ECB Statistical Data Warehouse and stores it in an xml file. Here, historic means up until two days before now.
func GetHistoricPreESTER ¶
func GetHistoricPreESTER() error
GetHistoricPreESTER downloads historic ESTER data from the ECB Statistical Data Warehouse and stores it in an xml file. Here, historic means up until two days before now.
func LoadHistoricRate ¶
LoadHistoricRate downloads xml files for historic rate data
func WriteHistoricESTER ¶
WriteHistoricESTER makes a GET request to fetch the historic data of the SOFR index and writes it into the redis database.
func WriteHistoricPreESTER ¶
WriteHistoricPreESTER makes a GET request to fetch the historic data of the SOFR index and writes it into the redis database.
func WriteHistoricRate ¶
WriteHistoricRate writes the historic rate data into the redis database.
func WriteHistoricSAFR ¶
WriteHistoricSAFR makes a GET request to fetch the historic data of the SOFR average index and writes it into the redis database.
func WriteHistoricSAFRAvgs ¶
WriteHistoricSAFRAvgs makes a GET request to fetch the historic data of the SOFR average index and writes it into the redis database.
func WriteHistoricSOFR ¶
WriteHistoricSOFR makes a GET request to fetch the historic data of the SOFR index and writes it into the redis database.
Types ¶
type CDataSetPre ¶
type CDataSetPre struct { XMLName xml.Name `xml:"DataSet,omitempty" json:"DataSet,omitempty"` Attraction string `xml:"action,attr" json:",omitempty"` CSeriesPre []*CSeriesPre `xml:"http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message Series,omitempty" json:"Series,omitempty"` }
type CMessageGroup ¶
type CMessageGroupPre ¶
type CMessageGroupPre struct { XMLName xml.Name `xml:"MessageGroup,omitempty" json:"MessageGroup,omitempty"` CDataSetPre *CDataSetPre `xml:"http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message DataSet,omitempty" json:"DataSet,omitempty"` }
type CObsPre ¶
type CObsPre struct { XMLName xml.Name `xml:"Obs,omitempty" json:"Obs,omitempty"` AttrCONF_STATUS string `xml:"CONF_STATUS,attr" json:",omitempty"` AttrOBS_STATUS string `xml:"OBS_STATUS,attr" json:",omitempty"` AttrOBS_VALUE string `xml:"OBS_VALUE,attr" json:",omitempty"` AttrTIME_PERIOD string `xml:"TIME_PERIOD,attr" json:",omitempty"` }
type CSeriesPre ¶
type CTenor1Avg ¶
type CTenor2Avg ¶
type CTenor3Avg ¶
type CbusinessEventLog ¶
type CbusinessEventLog struct { XMLName xml.Name `xml:"businessEventLog,omitempty" json:"businessEventLog,omitempty"` CeventDate *CeventDate `xml:"eventDate,omitempty" json:"eventDate,omitempty"` }
type CeffectiveDate ¶
type CeffectiveDateAvg ¶
type CeffectiveDateInd ¶
type CeventDate ¶
type CinsertTimestamp ¶
type CinsertTimestampAvg ¶
type CinsertTimestampInd ¶
type CmktRatesFindItem ¶
type CmktRatesFindItem struct { XMLName xml.Name `xml:"mktRatesFindItem,omitempty" json:"mktRatesFindItem,omitempty"` CrateOperation *CrateOperation `xml:"rateOperation,omitempty" json:"rateOperation,omitempty"` }
type CmktRatesSecondaryFindByDateResponse ¶
type CmktRatesSecondaryFindByDateResponse struct { XMLName xml.Name `xml:"mktRatesSecondaryFindByDateResponse,omitempty" json:"mktRatesSecondaryFindByDateResponse,omitempty"` CmktRatesFindItem []*CmktRatesFindItem `xml:"mktRatesFindItem,omitempty" json:"mktRatesFindItem,omitempty"` }
type CrateIndexInd ¶
type CrateOperation ¶
type CrateOperation struct { XMLName xml.Name `xml:"rateOperation,omitempty" json:"rateOperation,omitempty"` CeffectiveDate *CeffectiveDate `xml:"effectiveDate,omitempty" json:"effectiveDate,omitempty"` CinsertTimestamp *CinsertTimestamp `xml:"insertTimestamp,omitempty" json:"insertTimestamp,omitempty"` Crate *Crate `xml:"rate,omitempty" json:"rate,omitempty"` CrateType *CrateType `xml:"rateType,omitempty" json:"rateType,omitempty"` CtradingVolume *CtradingVolume `xml:"tradingVolume,omitempty" json:"tradingVolume,omitempty"` CbusinessEventLog *CbusinessEventLog `xml:"businessEventLog,omitempty" json:"businessEventLog,omitempty"` }
type CrateOperationAvg ¶
type CrateOperationAvg struct { XMLName xml.Name `xml:"rateOperation,omitempty" json:"rateOperation,omitempty"` CeffectiveDateAvg *CeffectiveDateAvg `xml:"effectiveDate,omitempty" json:"effectiveDate,omitempty"` CinsertTimestampAvg *CinsertTimestampAvg `xml:"insertTimestamp,omitempty" json:"insertTimestamp,omitempty"` CTenor1Avg *CTenor1Avg `xml:"tenor1,omitempty" json:"tenor1,omitempty"` CTenor2Avg *CTenor2Avg `xml:"tenor2,omitempty" json:"tenor2,omitempty"` CTenor3Avg *CTenor3Avg `xml:"tenor3,omitempty" json:"tenor3,omitempty"` }
type CrateOperationInd ¶
type CrateOperationInd struct { XMLName xml.Name `xml:"rateOperation,omitempty" json:"rateOperation,omitempty"` CeffectiveDateInd *CeffectiveDateInd `xml:"effectiveDate,omitempty" json:"effectiveDate,omitempty"` CinsertTimestampInd *CinsertTimestampInd `xml:"insertTimestamp,omitempty" json:"insertTimestamp,omitempty"` CrateIndexInd *CrateIndexInd `xml:"rateIndex,omitempty" json:"rateIndex,omitempty"` CrateTypeInd *CrateTypeInd `xml:"rateType,omitempty" json:"rateType,omitempty"` }
type CrateTypeInd ¶
type CsafrRatesFindItemAvg ¶
type CsafrRatesFindItemAvg struct { XMLName xml.Name `xml:"safrRatesFindItem,omitempty" json:"safrRatesFindItem,omitempty"` CrateOperationAvg *CrateOperationAvg `xml:"rateOperation,omitempty" json:"rateOperation,omitempty"` }
type CsafrRatesFindItemInd ¶
type CsafrRatesFindItemInd struct { XMLName xml.Name `xml:"safrRatesFindItem,omitempty" json:"safrRatesFindItem,omitempty"` CrateOperationInd *CrateOperationInd `xml:"rateOperation,omitempty" json:"rateOperation,omitempty"` }
type CsafrRatesSecondaryFindByDateResponseAvg ¶
type CsafrRatesSecondaryFindByDateResponseAvg struct { XMLName xml.Name `xml:"safrRatesSecondaryFindByDateResponse,omitempty" json:"safrRatesSecondaryFindByDateResponse,omitempty"` CsafrRatesFindItemAvg []*CsafrRatesFindItemAvg `xml:"safrRatesFindItem,omitempty" json:"safrRatesFindItem,omitempty"` }
type CsafrRatesSecondaryFindByDateResponseInd ¶
type CsafrRatesSecondaryFindByDateResponseInd struct { XMLName xml.Name `xml:"safrRatesSecondaryFindByDateResponse,omitempty" json:"safrRatesSecondaryFindByDateResponse,omitempty"` CsafrRatesFindItemInd []*CsafrRatesFindItemInd `xml:"safrRatesFindItem,omitempty" json:"safrRatesFindItem,omitempty"` }