spotmargin

package
v0.0.0-...-2374e48 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BorrowHistory

type BorrowHistory struct {
	Coin string    `json:"coin"`
	Cost float64   `json:"cost"`
	Rate float64   `json:"rate"`
	Size float64   `json:"size"`
	Time time.Time `json:"time"`
}

type BorrowRates

type BorrowRates struct {
	Coin     string  `json:"coin"`
	Estimate float64 `json:"estimate"`
	Previous float64 `json:"previous"`
}

type LendingHistory

type LendingHistory struct {
	Coin string    `json:"coin"`
	Cost float64   `json:"cost"`
	Rate float64   `json:"rate"`
	Size float64   `json:"size"`
	Time time.Time `json:"time"`
}

type LendingInfo

type LendingInfo struct {
	Coin     string  `json:"coin"`
	Lendable float64 `json:"lendable"`
	Locked   float64 `json:"locked"`
	MinRate  float64 `json:"minRate"`
	Offered  float64 `json:"offered"`
}

type LendingRates

type LendingRates struct {
	Coin     string  `json:"coin"`
	Estimate float64 `json:"estimate"`
	Previous float64 `json:"previous"`
}

type RequestForBorrowHistory

type RequestForBorrowHistory struct {
	StartTime int64 `json:"start_time,omitempty"`
	EndTime   int64 `json:"end_time,omitempty"`
}

func (*RequestForBorrowHistory) Method

func (req *RequestForBorrowHistory) Method() string

func (*RequestForBorrowHistory) Path

func (req *RequestForBorrowHistory) Path() string

func (*RequestForBorrowHistory) Payload

func (req *RequestForBorrowHistory) Payload() []byte

func (*RequestForBorrowHistory) Query

func (req *RequestForBorrowHistory) Query() string

type RequestForBorrowRates

type RequestForBorrowRates struct {
}

func (*RequestForBorrowRates) Method

func (req *RequestForBorrowRates) Method() string

func (*RequestForBorrowRates) Path

func (req *RequestForBorrowRates) Path() string

func (*RequestForBorrowRates) Payload

func (req *RequestForBorrowRates) Payload() []byte

func (*RequestForBorrowRates) Query

func (req *RequestForBorrowRates) Query() string

type RequestForLendingHistory

type RequestForLendingHistory struct {
	StartTime int64 `json:"start_time,omitempty"`
	EndTime   int64 `json:"end_time,omitempty"`
}

func (*RequestForLendingHistory) Method

func (req *RequestForLendingHistory) Method() string

func (*RequestForLendingHistory) Path

func (req *RequestForLendingHistory) Path() string

func (*RequestForLendingHistory) Payload

func (req *RequestForLendingHistory) Payload() []byte

func (*RequestForLendingHistory) Query

func (req *RequestForLendingHistory) Query() string

type RequestForLendingInfo

type RequestForLendingInfo struct{}

func (*RequestForLendingInfo) Method

func (req *RequestForLendingInfo) Method() string

func (*RequestForLendingInfo) Path

func (req *RequestForLendingInfo) Path() string

func (*RequestForLendingInfo) Payload

func (req *RequestForLendingInfo) Payload() []byte

func (*RequestForLendingInfo) Query

func (req *RequestForLendingInfo) Query() string

type RequestForLendingOffer

type RequestForLendingOffer struct {
	Coin string  `json:"coin"`
	Size float64 `json:"size"`
	Rate float64 `json:"rate"`
}

func (*RequestForLendingOffer) Method

func (req *RequestForLendingOffer) Method() string

func (*RequestForLendingOffer) Path

func (req *RequestForLendingOffer) Path() string

func (*RequestForLendingOffer) Payload

func (req *RequestForLendingOffer) Payload() []byte

func (*RequestForLendingOffer) Query

func (req *RequestForLendingOffer) Query() string

type RequestForLendingRates

type RequestForLendingRates struct{}

func (*RequestForLendingRates) Method

func (req *RequestForLendingRates) Method() string

func (*RequestForLendingRates) Path

func (req *RequestForLendingRates) Path() string

func (*RequestForLendingRates) Payload

func (req *RequestForLendingRates) Payload() []byte

func (*RequestForLendingRates) Query

func (req *RequestForLendingRates) Query() string

type ResponseForBorrowHistory

type ResponseForBorrowHistory []BorrowHistory

type ResponseForBorrowRates

type ResponseForBorrowRates []BorrowRates

type ResponseForLendingHistory

type ResponseForLendingHistory []LendingHistory

type ResponseForLendingInfo

type ResponseForLendingInfo []LendingInfo

type ResponseForLendingOffer

type ResponseForLendingOffer struct{}

type ResponseForLendingRates

type ResponseForLendingRates []LendingRates

Jump to

Keyboard shortcuts

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