Documentation ¶
Index ¶
- type Creation
- type LvToken
- type Redemption
- type RequestForCreatedLvToken
- type RequestForCreatedLvTokens
- type RequestForLvBalances
- type RequestForLvToken
- type RequestForLvTokens
- type RequestForRedemptionLvToken
- type RequestForRedemptionLvTokens
- type ResponseForCreatedLvToken
- type ResponseForCreatedLvTokens
- type ResponseForLvBalances
- type ResponseForLvToken
- type ResponseForLvTokens
- type ResponseForRedemptionLvToken
- type ResponseForRedemptionLvTokens
- type TokenBalance
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"` 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 (req *RequestForRedemptionLvTokens) Path() string
func (*RequestForRedemptionLvTokens) Payload ¶
func (req *RequestForRedemptionLvTokens) Payload() []byte
func (*RequestForRedemptionLvTokens) Query ¶
func (req *RequestForRedemptionLvTokens) Query() string
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 ResponseForRedemptionLvTokens ¶
type ResponseForRedemptionLvTokens []Redemption
type TokenBalance ¶
Click to show internal directories.
Click to hide internal directories.