1234567891011121314151617181920 |
- package response
- import (
- "encoding/xml"
- )
- type OrderBookStatusEvent struct {
- XMLName xml.Name `xml:"orderBookStatus"`
- InstrumentId int64 `xml:"id"`
- OrderBookStatus string `xml:"status"`
- }
- func NewOrderBookStatusEvent(eventData string) *OrderBookStatusEvent {
- r := OrderBookStatusEvent{}
- err := xml.Unmarshal([]byte(eventData), &r)
- if err != nil {
- return nil
- }
- return &r
- }
|