staticscrapers

package
v1.4.67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2022 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func LoadHistoricRate(rateType string) error

LoadHistoricRate downloads xml files for historic rate data

func WriteHistoricESTER

func WriteHistoricESTER(ds models.Datastore) (err error)

WriteHistoricESTER makes a GET request to fetch the historic data of the SOFR index and writes it into the redis database.

func WriteHistoricPreESTER

func WriteHistoricPreESTER(ds models.Datastore) (err error)

WriteHistoricPreESTER makes a GET request to fetch the historic data of the SOFR index and writes it into the redis database.

func WriteHistoricRate

func WriteHistoricRate(ds models.Datastore, rateType string) error

WriteHistoricRate writes the historic rate data into the redis database.

func WriteHistoricSAFR

func WriteHistoricSAFR(ds models.Datastore) error

WriteHistoricSAFR makes a GET request to fetch the historic data of the SOFR average index and writes it into the redis database.

func WriteHistoricSAFRAvgs

func WriteHistoricSAFRAvgs(ds models.Datastore) error

WriteHistoricSAFRAvgs makes a GET request to fetch the historic data of the SOFR average index and writes it into the redis database.

func WriteHistoricSOFR

func WriteHistoricSOFR(ds models.Datastore) error

WriteHistoricSOFR makes a GET request to fetch the historic data of the SOFR index and writes it into the redis database.

Types

type CDataSet

type CDataSet struct {
	XMLName    xml.Name   `xml:"DataSet,omitempty" json:"DataSet,omitempty"`
	Attraction string     `xml:"action,attr"  json:",omitempty"`
	CSeries    []*CSeries `xml:"http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message Series,omitempty" json:"Series,omitempty"`
}

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 CMessageGroup struct {
	XMLName  xml.Name  `xml:"MessageGroup,omitempty" json:"MessageGroup,omitempty"`
	CDataSet *CDataSet `xml:"http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message DataSet,omitempty" json:"DataSet,omitempty"`
}

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 CObs

type CObs struct {
	XMLName         xml.Name `xml:"Obs,omitempty" json:"Obs,omitempty"`
	AttrOBS_VALUE   string   `xml:"OBS_VALUE,attr"  json:",omitempty"`
	AttrTIME_PERIOD string   `xml:"TIME_PERIOD,attr"  json:",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 CSeries

type CSeries struct {
	XMLName xml.Name `xml:"Series,omitempty" json:"Series,omitempty"`
	CObs    []*CObs  `xml:"http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message Obs,omitempty" json:"Obs,omitempty"`
}

type CSeriesPre

type CSeriesPre struct {
	XMLName xml.Name   `xml:"Series,omitempty" json:"Series,omitempty"`
	CTitle  string     `xml:"TITLE,attr"  json:",omitempty"`
	CObsPre []*CObsPre `xml:"http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message Obs,omitempty" json:"Obs,omitempty"`
}

type CTenor1Avg

type CTenor1Avg struct {
	XMLName    xml.Name `xml:"tenor1,omitempty" json:"tenor1,omitempty"`
	CValue1Avg string   `xml:",chardata" json:",omitempty"`
}

type CTenor2Avg

type CTenor2Avg struct {
	XMLName    xml.Name `xml:"tenor2,omitempty" json:"tenor1,omitempty"`
	CValue2Avg string   `xml:",chardata" json:",omitempty"`
}

type CTenor3Avg

type CTenor3Avg struct {
	XMLName    xml.Name `xml:"tenor3,omitempty" json:"tenor1,omitempty"`
	CValue3Avg string   `xml:",chardata" json:",omitempty"`
}

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 CeffectiveDate struct {
	XMLName  xml.Name `xml:"effectiveDate,omitempty" json:"effectiveDate,omitempty"`
	CEffDate string   `xml:",chardata" json:",omitempty"`
}

type CeffectiveDateAvg

type CeffectiveDateAvg struct {
	XMLName     xml.Name `xml:"effectiveDate,omitempty" json:"effectiveDate,omitempty"`
	CEffDateAvg string   `xml:",chardata" json:",omitempty"`
}

type CeffectiveDateInd

type CeffectiveDateInd struct {
	XMLName     xml.Name `xml:"effectiveDate,omitempty" json:"effectiveDate,omitempty"`
	CEffDateInd string   `xml:",chardata" json:",omitempty"`
}

type CeventDate

type CeventDate struct {
	XMLName xml.Name `xml:"eventDate,omitempty" json:"eventDate,omitempty"`
	CEvDate string   `xml:",chardata" json:",omitempty"`
}

type CinsertTimestamp

type CinsertTimestamp struct {
	XMLName    xml.Name `xml:"insertTimestamp,omitempty" json:"insertTimestamp,omitempty"`
	CTimestamp string   `xml:",chardata" json:",omitempty"`
}

type CinsertTimestampAvg

type CinsertTimestampAvg struct {
	XMLName       xml.Name `xml:"insertTimestamp,omitempty" json:"insertTimestamp,omitempty"`
	CTimestampAvg string   `xml:",chardata" json:",omitempty"`
}

type CinsertTimestampInd

type CinsertTimestampInd struct {
	XMLName       xml.Name `xml:"insertTimestamp,omitempty" json:"insertTimestamp,omitempty"`
	CTimestampInd string   `xml:",chardata" json:",omitempty"`
}

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 Crate

type Crate struct {
	XMLName xml.Name `xml:"rate,omitempty" json:"rate,omitempty"`
	CValue  string   `xml:",chardata" json:",omitempty"`
}

type CrateIndexInd

type CrateIndexInd struct {
	XMLName   xml.Name `xml:"rateIndex,omitempty" json:"rateIndex,omitempty"`
	CValueInd string   `xml:",chardata" json:",omitempty"`
}

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 CrateType

type CrateType struct {
	XMLName xml.Name `xml:"rateType,omitempty" json:"rateType,omitempty"`
	CType   string   `xml:",chardata" json:",omitempty"`
}

type CrateTypeInd

type CrateTypeInd struct {
	XMLName  xml.Name `xml:"rateType,omitempty" json:"rateType,omitempty"`
	CTypeInd string   `xml:",chardata" json:",omitempty"`
}

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"`
}

type CtradingVolume

type CtradingVolume struct {
	XMLName xml.Name `xml:"tradingVolume,omitempty" json:"tradingVolume,omitempty"`
	CVolume string   `xml:",chardata" json:",omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL