Documentation
¶
Index ¶
Constants ¶
View Source
const ( DetailsBucket = `DetailsByCusip` IsinBucket = `CUSIPByISIN` SedolBucket = `CUSIPBySEDOL` )
View Source
const DescriptionDateFormat = `2006/01/02`
View Source
const FactSetDateFormat = `2006-01-02`
Variables ¶
View Source
var ( BadQuoteEscape = []byte(`\"`) GoodQuoteEscape = []byte(`""`) )
View Source
var (
ERR_COUNT_TOO_LOW = errors.New("Provided count was less than actual number of records")
)
Functions ¶
func NewDecoder ¶
NewDecoder returns a decoder to handle character conversion and non-standard escaping of double quotation marks in CSV
Types ¶
type Description ¶
ffjson: skip
func NewDescription ¶
func NewDescription(code, ticker, coupon, maturity string) (d *Description, err error)
func (Description) MarshalJSON ¶
func (d Description) MarshalJSON() ([]byte, error)
type QuoteEscaper ¶
type QuoteEscaper struct {
transform.NopResetter
}
QuoteEscaper implements transform.Transformer, replacing \" with "" This fixes non-standard escaping in some delimited text inputs
type Request ¶
type Request struct {
Keys []string
}
ffjson: noencoder
func (*Request) UnmarshalJSON ¶
func (*Request) UnmarshalJSONFFLexer ¶
type Response ¶
ffjson: nodecoder
func NewResponse ¶
func NewResponse() *Response
func (*Response) MarshalJSON ¶
func (*Response) MarshalJSONBuf ¶
func (mj *Response) MarshalJSONBuf(buf fflib.EncodingBuffer) error
type Security ¶
type Security struct { LegalEntityID string `json:"LegalEntityId,omitempty"` CUSIP string `json:"Cusip,omitempty"` ISIN string `json:",omitempty"` SEDOL string `json:"Sedol,omitempty"` Ticker string `json:",omitempty"` Description Description `json:",omitempty"` }
ffjson: nodecoder
func (*Security) MarshalJSON ¶
func (*Security) MarshalJSONBuf ¶
func (mj *Security) MarshalJSONBuf(buf fflib.EncodingBuffer) error
type SecurityMaster ¶
type SecurityMaster struct { Index *mafsa.MinTree Securities []*Security ISINIndex map[string]int SEDOLIndex map[string]int }
func NewSecurityMaster ¶
func NewSecurityMaster(securities chan *Security) (m *SecurityMaster, err error)
NewSecurityMaster returns an in-memory security master from a channel of securities which MUST be sorted in ascending order by CUSIP
type Server ¶
type Server struct {
Getter
}
func (Server) QueryHandler ¶
func (s Server) QueryHandler(w http.ResponseWriter, r *http.Request)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.