synquote

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL