zetamarkets

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: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ZetaAPIUrl = "https://api.zeta.markets/markets/"

Variables

This section is empty.

Functions

func OpenInterest added in v0.7.0

func OpenInterest(o *anchor.Option, zoi ZetaOI) float64

Types

type Provider

type Provider struct{}

func (Provider) Name

func (Provider) Name() string

func (Provider) Options

func (p Provider) Options() ([]rainbow.Option, error)

type ZetaOI added in v0.7.0

type ZetaOI map[string]struct {
	Timestamp         int64   `json:"timestamp"`
	OpenInterest      float64 `json:"open_interest"`
	ImpliedVolatility float64 `json:"implied_volatility"`
	Delta             float64 `json:"delta"`
	Vega              float64 `json:"vega"`
	Theo              float64 `json:"theo"`
}

func OpenInterestMap added in v0.7.0

func OpenInterestMap(m map[string][]uint64) ZetaOI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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