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

     1  package models
     2  
     3  // GetExchangesParams is the set of parameters for the GetExchanges method.
     4  type GetExchangesParams struct {
     5  	// Filter by asset class.
     6  	AssetClass *AssetClass `query:"asset_class,omitempty"`
     7  
     8  	// Filter by locale.
     9  	Locale *MarketLocale `query:"locale,omitempty"`
    10  }
    11  
    12  func (p GetExchangesParams) WithAssetClass(q AssetClass) *GetExchangesParams {
    13  	p.AssetClass = &q
    14  	return &p
    15  }
    16  
    17  func (p GetExchangesParams) WithLocale(q MarketLocale) *GetExchangesParams {
    18  	p.Locale = &q
    19  	return &p
    20  }
    21  
    22  // GetExchangesResponse is the response returned by the GetExchanges method.
    23  type GetExchangesResponse struct {
    24  	BaseResponse
    25  	Results []Exchange `json:"results,omitempty"`
    26  }
    27  
    28  // Exchange contains detailed information on a specified stock Exchange.
    29  type Exchange struct {
    30  	Acronym       string `json:"acronym,omitempty"`
    31  	AssetClass    string `json:"asset_class,omitempty"`
    32  	ID            int64  `json:"id,omitempty"`
    33  	Locale        string `json:"locale,omitempty"`
    34  	MIC           string `json:"mic,omitempty"`
    35  	Name          string `json:"name,omitempty"`
    36  	OperatingMIC  string `json:"operating_mic,omitempty"`
    37  	ParticipantID string `json:"participant_id,omitempty"`
    38  	Type          string `json:"type,omitempty"`
    39  	URL           string `json:"url,omitempty"`
    40  }