fundingoffer

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 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 Cancel

type Cancel Offer

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 offer cancel object into the format required by the bitfinex websocket service.

func (*CancelRequest) ToJSON

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

type New

type New Offer

func NewFromRaw

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

type Offer

type Offer struct {
	ID         int64
	Symbol     string
	MTSCreated int64
	MTSUpdated int64
	Amount     float64
	AmountOrig float64
	Type       string
	Flags      map[string]interface{}
	Status     string
	Rate       float64
	Period     int64
	Notify     bool
	Hidden     bool
	Insure     bool
	Renew      bool
	RateReal   float64
}

func FromRaw

func FromRaw(raw []interface{}) (o *Offer, err error)

type Snapshot

type Snapshot struct {
	Snapshot []*Offer
}

func SnapshotFromRaw

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

type SubmitRequest

type SubmitRequest struct {
	Type   string
	Symbol string
	Amount float64
	Rate   float64
	Period int64
	Hidden bool
}

func (*SubmitRequest) MarshalJSON

func (sr *SubmitRequest) MarshalJSON() ([]byte, error)

MarshalJSON converts the offer submit object into the format required by the bitfinex websocket service.

func (*SubmitRequest) ToJSON

func (sr *SubmitRequest) ToJSON() ([]byte, error)

type Update

type Update Offer

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