github.com/polygon-io/client-go@v1.16.4/rest/models/markets.go (about)

     1  package models
     2  
     3  // GetMarketHolidaysResponse is the response returned by the GetMarketHolidays method.
     4  type GetMarketHolidaysResponse []MarketHoliday
     5  
     6  // GetMarketStatusResponse is the response returned by the GetMarketStatus method.
     7  type GetMarketStatusResponse struct {
     8  	AfterHours    bool              `json:"afterHours"`
     9  	Currencies    map[string]string `json:"currencies,omitempty"`
    10  	EarlyHours    bool              `json:"earlyHours"`
    11  	Exchanges     map[string]string `json:"exchanges,omitempty"`
    12  	IndicesGroups map[string]string `json:"indicesGroups,omitempty"`
    13  	Market        string            `json:"market,omitempty"`
    14  	ServerTime    Time              `json:"serverTime,omitempty"`
    15  }
    16  
    17  // MarketHoliday represents a market holiday for a specific exchange.
    18  type MarketHoliday struct {
    19  	Exchange string `json:"exchange,omitempty"`
    20  	Name     string `json:"name,omitempty"`
    21  	Date     Date   `json:"date,omitempty"`
    22  	Status   string `json:"status,omitempty"`
    23  	Open     Time   `json:"open,omitempty"`
    24  	Close    Time   `json:"close,omitempty"`
    25  }