leveraged

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creation

type Creation struct {
	ID    int    `json:"id"`
	Token string `json:"token"`

	Price         float64   `json:"price"`
	RequestedSize float64   `json:"requestedSize"`
	CreatedSize   float64   `json:"createdSize"`
	Cost          float64   `json:"cost"`
	Fee           float64   `json:"fee"`
	RequestedAt   time.Time `json:"requestedAt"`
	FulfilledAt   time.Time `json:"fulfilledAt"`

	Pending bool `json:"pending"`
}

type LvToken

type LvToken struct {
	Name            string `json:"name"`
	Description     string `json:"description"`
	Underlying      string `json:"underlying"`
	ContractAddress string `json:"contractAddress"`

	Leverage         float64 `json:"leverage"`
	Outstanding      float64 `json:"outstanding"`
	PricePerShare    float64 `json:"pricePerShare"`
	PositionPerShare float64 `json:"positionPerShare"`
	UnderlyingMark   float64 `json:"underlyingMark"`
	Change1H         float64 `json:"change1h"`
	Change24H        float64 `json:"change24h"`
}

type Redemption

type Redemption struct {
	ID          int       `json:"id"`
	Token       string    `json:"token"`
	Size        float64   `json:"size"`
	Price       float64   `json:"price"`
	Proceeds    float64   `json:"proceeds"`
	Fee         float64   `json:"fee"`
	RequestedAt time.Time `json:"requestedAt"`
	FulfilledAt time.Time `json:"fulfilledAt"`

	Pending bool `json:"pending"`
}

type RequestForCreatedLvToken

type RequestForCreatedLvToken struct {
	ProductCode string `json:"-"`
	// to body
	Size string `json:"size"`
}

func (*RequestForCreatedLvToken) Method

func (req *RequestForCreatedLvToken) Method() string

func (*RequestForCreatedLvToken) Path

func (req *RequestForCreatedLvToken) Path() string

func (*RequestForCreatedLvToken) Payload

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

func (*RequestForCreatedLvToken) Query

func (req *RequestForCreatedLvToken) Query() string

type RequestForCreatedLvTokens

type RequestForCreatedLvTokens struct {
}

func (*RequestForCreatedLvTokens) Method

func (req *RequestForCreatedLvTokens) Method() string

func (*RequestForCreatedLvTokens) Path

func (req *RequestForCreatedLvTokens) Path() string

func (*RequestForCreatedLvTokens) Payload

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

func (*RequestForCreatedLvTokens) Query

func (req *RequestForCreatedLvTokens) Query() string

type RequestForLvBalances

type RequestForLvBalances struct {
}

func (*RequestForLvBalances) Method

func (req *RequestForLvBalances) Method() string

func (*RequestForLvBalances) Path

func (req *RequestForLvBalances) Path() string

func (*RequestForLvBalances) Payload

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

func (*RequestForLvBalances) Query

func (req *RequestForLvBalances) Query() string

type RequestForLvToken

type RequestForLvToken struct {
	ProductCode string
}

func (*RequestForLvToken) Method

func (req *RequestForLvToken) Method() string

func (*RequestForLvToken) Path

func (req *RequestForLvToken) Path() string

func (*RequestForLvToken) Payload

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

func (*RequestForLvToken) Query

func (req *RequestForLvToken) Query() string

type RequestForLvTokens

type RequestForLvTokens struct {
}

func (*RequestForLvTokens) Method

func (req *RequestForLvTokens) Method() string

func (*RequestForLvTokens) Path

func (req *RequestForLvTokens) Path() string

func (*RequestForLvTokens) Payload

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

func (*RequestForLvTokens) Query

func (req *RequestForLvTokens) Query() string

type RequestForRedemptionLvToken

type RequestForRedemptionLvToken struct {
	ProductCode string `json:"-"`
	// to body
	Size string `json:"size"`
}

func (*RequestForRedemptionLvToken) Method

func (req *RequestForRedemptionLvToken) Method() string

func (*RequestForRedemptionLvToken) Path

func (req *RequestForRedemptionLvToken) Path() string

func (*RequestForRedemptionLvToken) Payload

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

func (*RequestForRedemptionLvToken) Query

func (req *RequestForRedemptionLvToken) Query() string

type RequestForRedemptionLvTokens

type RequestForRedemptionLvTokens struct {
}

func (*RequestForRedemptionLvTokens) Method

func (req *RequestForRedemptionLvTokens) Method() string

func (*RequestForRedemptionLvTokens) Path

func (*RequestForRedemptionLvTokens) Payload

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

func (*RequestForRedemptionLvTokens) Query

func (req *RequestForRedemptionLvTokens) Query() string

type ResponseForCreatedLvToken

type ResponseForCreatedLvToken struct {
	Token         string    `json:"token"`
	RequestedSize float64   `json:"requestedSize"`
	Cost          float64   `json:"cost"`
	RequestedAt   time.Time `json:"requestedAt"`

	Pending bool `json:"pending"`
	ID      int  `json:"id"`
}

type ResponseForCreatedLvTokens

type ResponseForCreatedLvTokens []Creation

type ResponseForLvBalances

type ResponseForLvBalances []TokenBalance

type ResponseForLvToken

type ResponseForLvToken LvToken

type ResponseForLvTokens

type ResponseForLvTokens []LvToken

func (ResponseForLvTokens) Products

func (tokens ResponseForLvTokens) Products() []string

type ResponseForRedemptionLvToken

type ResponseForRedemptionLvToken struct {
	Token             string    `json:"token"`
	Size              float64   `json:"size"`
	ProjectedProceeds float64   `json:"projectedProceeds"`
	Pending           bool      `json:"pending"`
	RequestedAt       time.Time `json:"requestedAt"`

	ID int `json:"id"`
}

type ResponseForRedemptionLvTokens

type ResponseForRedemptionLvTokens []Redemption

type TokenBalance

type TokenBalance struct {
	Token   string  `json:"token"`
	Balance float64 `json:"balance"`
}

Jump to

Keyboard shortcuts

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