zetamarkets

package
v0.0.0-...-07d5b30 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 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

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

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

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

Jump to

Keyboard shortcuts

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