parentorders

package
v0.0.0-...-81d47fe Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 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 ParentOrder

type ParentOrder struct {
	ID                      int               `json:"id"`
	ParentOrderID           string            `json:"parent_order_id"`
	ProductCode             types.ProductCode `json:"product_code"`
	Side                    types.Side        `json:"side"`
	ParentOrderType         string            `json:"parent_order_type"`
	Price                   int               `json:"price"`
	AveragePrice            int               `json:"average_price"`
	Size                    float64           `json:"size"`
	ParentOrderState        string            `json:"parent_order_state"`
	ExpireDate              time.BitFlyerTime `json:"expire_date"`
	ParentOrderDate         time.BitFlyerTime `json:"parent_order_date"`
	ParentOrderAcceptanceID string            `json:"parent_order_acceptance_id"`
	OutstandingSize         int               `json:"outstanding_size"`
	CancelSize              int               `json:"cancel_size"`
	ExecutedSize            float64           `json:"executed_size"`
	TotalCommission         int               `json:"total_commission"`
}

type ParentOrderState

type ParentOrderState string
const (
	ACTIVE    ParentOrderState = "ACTIVE"
	COMPLETED ParentOrderState = "COMPLETED"
	CANCELED  ParentOrderState = "CANCELED"
	EXPIRED   ParentOrderState = "EXPIRED"
	REJECTED  ParentOrderState = "REJECTED"
)

type Request

type Request struct {
	ProductCode      types.ProductCode `url:"product_code"`
	ParentOrderState string            `url:"parent_order_state,omitempty"`
	Count            int               `url:"count,omitempty"`
	Before           int               `url:"before,omitempty"`
	After            int               `url:"after,omitempty"`
}

func (*Request) Endpoint

func (req *Request) Endpoint() string

func (*Request) Method

func (req *Request) Method() string

func (*Request) Payload

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

func (*Request) Query

func (req *Request) Query() string

type Response

type Response []ParentOrder

Jump to

Keyboard shortcuts

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