123456789101112131415161718192021222324 |
- package response
- import (
- "encoding/xml"
- )
- type HistoricMarketDataEvent struct {
- XMLName xml.Name `xml:"historicMarketData"`
- InstructionId string `xml:"instructionId"`
- Urls []string `xml:"urls>url"`
- }
- func (this *HistoricMarketDataEvent) GetId() string {
- return this.InstructionId
- }
- func NewHistoricMarketData(data string) *HistoricMarketDataEvent {
- r := HistoricMarketDataEvent{}
- err := xml.Unmarshal([]byte(data), &r)
- if err != nil {
- return nil
- }
- return &r
- }
|