execution

package
v0.0.0-...-30c84b1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const PATH = "/v1/getexecutions"

Variables

This section is empty.

Functions

This section is empty.

Types

type Execution

type Execution struct {
	Side                       string             `json:"side"`
	Price                      float64            `json:"price"`
	Size                       float64            `json:"size"`
	BuyChildOrderAcceptanceID  string             `json:"buy_child_order_acceptance_id"`
	SellChildOrderAcceptanceID string             `json:"sell_child_order_acceptance_id"`
	ExecDate                   types.ExchangeTime `json:"exec_date"`

	ID            int  `json:"id"`
	IsLiquidation bool `json:"-"`
}

type Request

type Request struct {
	ProductCode types.ProductCode `json:"product_code" url:"product_code"`

	Pagination types.Pagination `json:",inline" url:",omitempty"`
}

func New

func New(product types.ProductCode) *Request

func (*Request) Method

func (p *Request) Method() string

func (*Request) Path

func (p *Request) Path() string

func (*Request) Payload

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

func (*Request) Query

func (p *Request) Query() string

func (*Request) SetPagination

func (p *Request) SetPagination(count, beforeID, afterID int) *Request

type Response

type Response []Execution

func (Response) Aggregate

func (ex Response) Aggregate() []Execution

Jump to

Keyboard shortcuts

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