fills

package
v0.0.0-...-8b5824e Latest Latest
Warning

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

Go to latest
Published: Jan 4, 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 Fill

type Fill struct {
	Future    string `json:"future"`
	Market    string `json:"market"`
	Type      string `json:"type"`
	Liquidity string `json:"liquidity"`

	// only rest follow 2factor
	BaseCurrency  string `json:"baseCurrency"`
	QuoteCurrency string `json:"quoteCurrency"`

	Side string `json:"side"`

	Price   float64 `json:"price"`
	Size    float64 `json:"size"`
	Fee     float64 `json:"fee"`
	FeeRate float64 `json:"feeRate"`

	Time time.Time `json:"time"`

	ID      int `json:"id"`
	OrderID int `json:"orderId"`
	TradeID int `json:"tradeId"`
}

type Request

type Request struct {
	ProductCode string `url:"market,omitempty"`
	Limit       int    `url:"limit,omitempty"`
	Start       int64  `url:"start,omitempty"`
	End         int64  `url:"end,omitempty"`
}

func (*Request) Method

func (req *Request) Method() string

func (*Request) Path

func (req *Request) Path() string

func (*Request) Payload

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

func (*Request) Query

func (req *Request) Query() string

type Response

type Response []Fill

Jump to

Keyboard shortcuts

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