Documentation ¶ Index ¶ func Expiry(s string) string type Provider func (Provider) Name() string func (p Provider) Options() ([]rainbow.Option, error) type Quote func (q Quote) Split() (asset, optionType, expiry string, ...) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Expiry ¶ func Expiry(s string) string Expiry parse the date Also expiry hour is the same as deribit (like everyon except delta) string in format 27JAN23 Note 1: Because I couldn't see a way to do that directly, here is my date parsor Note 2: failure is silent here because I'm lazy. Types ¶ type Provider ¶ type Provider struct{} func (Provider) Name ¶ func (Provider) Name() string func (Provider) Options ¶ func (p Provider) Options() ([]rainbow.Option, error) type Quote ¶ type Quote struct { ID string `json:"symbol"` Bid float64 `json:"bid"` Ask float64 `json:"ask"` } func (Quote) Split ¶ func (q Quote) Split() (asset, optionType, expiry string, strike, bidPrice, bidSize, askPrice, askSize float64) Source Files ¶ View all Source files synquote.go Click to show internal directories. Click to hide internal directories.