trades

package
v0.0.0-...-dc0a48c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 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 Data

type Data struct {
	Code   uint32  `json:"code"`
	Trades []Trade `json:"trades"`
}

type Request

type Request struct {
	Pair      string    `url:"pair"`
	Count     int64     `url:"count,omitempty"`
	OrderID   int64     `url:"order_id,omitempty"`
	Since     time.Time `url:"-"`
	End       time.Time `url:"-"`
	SinceUnix int64     `url:"since,omitempty"`
	EndUnix   int64     `url:"end,omitempty"`
	Order     string    `url:"order,omitempty"`
}

func (*Request) Endpoint

func (req *Request) Endpoint() string

func (*Request) IsAuth

func (req *Request) IsAuth() bool

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 struct {
	Success int8 `json:"success"`
	Data    Data `json:"data"`
}

type Trade

type Trade struct {
	TradeID        int64      `json:"trade_id"`
	OrderID        int64      `json:"order_id"`
	Pair           string     `json:"pair"`
	Type           string     `json:"type"`
	Side           string     `json:"side"`
	Price          string     `json:"price"`
	Amount         string     `json:"amount"`
	MakerTaker     string     `json:"maker_taker"`
	FeeAmountBase  string     `json:"fee_amount_base"`
	FeeAmountQuote string     `json:"fee_amount_quote"`
	ExecutedAt     types.Time `json:"executed_at"`
}

Jump to

Keyboard shortcuts

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