fundingcredit

package
v0.0.0-...-9e0b26f Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cancel

type Cancel Credit

func CancelFromRaw

func CancelFromRaw(raw []interface{}) (Cancel, error)

type CancelRequest

type CancelRequest struct {
	ID int64
}

func (*CancelRequest) MarshalJSON

func (cr *CancelRequest) MarshalJSON() ([]byte, error)

MarshalJSON converts the funding credit cancel request into the format required by the bitfinex websocket service.

func (*CancelRequest) ToJSON

func (cr *CancelRequest) ToJSON() ([]byte, error)

type Credit

type Credit struct {
	ID            int64
	Symbol        string
	Side          int
	MTSCreated    int64
	MTSUpdated    int64
	Amount        float64
	Flags         map[string]interface{}
	Status        string
	RateType      string
	Rate          float64
	Period        int64
	MTSOpened     int64
	MTSLastPayout int64
	Notify        bool
	Hidden        bool
	Insure        bool
	Renew         bool
	RateReal      float64
	NoClose       bool
	PositionPair  string
}

func FromRaw

func FromRaw(raw []interface{}) (c *Credit, err error)

type New

type New Credit

func NewFromRaw

func NewFromRaw(raw []interface{}) (New, error)

type Snapshot

type Snapshot struct {
	Snapshot []*Credit
}

func SnapshotFromRaw

func SnapshotFromRaw(raw []interface{}) (snap *Snapshot, err error)

type Update

type Update Credit

func UpdateFromRaw

func UpdateFromRaw(raw []interface{}) (Update, error)

Jump to

Keyboard shortcuts

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