book

package
v3.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookSummary

type BookSummary struct {

	// The current best ask price, `null` if there aren't any asks
	// Required: true
	AskPrice float64

	// Base currency
	// Required: true
	BaseCurrency string

	// The current best bid price, `null` if there aren't any bids
	// Required: true
	BidPrice float64

	// creation timestamp
	// Required: true
	CreationTimestamp models.Timestamp
	CreationTime      string

	// Current funding (perpetual only)
	CurrentFunding float64

	// Estimated delivery price, in USD. For more details, see Documentation > General > Expiration Price
	EstimatedDeliveryPrice float64

	// Funding 8h (perpetual only)
	Funding8h float64

	// Price of the 24h highest trade
	// Required: true
	High float64

	// instrument name
	// Required: true
	InstrumentName models.InstrumentName

	// Interest rate used in implied volatility calculations (options only)
	InterestRate float64

	// The price of the latest trade, `null` if there weren't any trades
	// Required: true
	Last float64

	// Price of the 24h lowest trade, `null` if there weren't any trades
	// Required: true
	Low float64

	// The current instrument market price
	// Required: true
	MarkPrice float64

	// The average of the best bid and ask, `null` if there aren't any asks or bids
	// Required: true
	MidPrice float64

	// The total amount of outstanding contracts in the corresponding amount units. For perpetual and futures the amount is in USD units, for options it is amount of corresponding cryptocurrency contracts, e.g., BTC or ETH.
	// Required: true
	OpenInterest float64

	// Quote currency
	// Required: true
	QuoteCurrency string

	// Name of the underlying future, or `'index_price'` (options only)
	UnderlyingIndex string

	// underlying price for implied volatility calculations (options only)
	UnderlyingPrice float64

	// The total 24h traded volume (in base currency)
	// Required: true
	Volume float64

	// Volume in usd (futures only)
	VolumeUsd float64
}

BookSummary TODO

func (BookSummary) Sprintf

func (pBook BookSummary) Sprintf() string

Sprintf is a printout of the BookSummary datastructure

Jump to

Keyboard shortcuts

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