coins

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const COININPATH = "/v1/me/getcoinins"
View Source
const COINOUTPATH = "/v1/me/getcoinouts"

Variables

This section is empty.

Functions

This section is empty.

Types

type Coinin

type Coinin struct {
	OrderID      string             `json:"order_id"`
	CurrencyCode string             `json:"currency_code"`
	Amount       float64            `json:"amount"`
	Address      string             `json:"address"`
	TxHash       string             `json:"tx_hash"`
	Status       string             `json:"status"`
	EventDate    types.ExchangeTime `json:"event_date"`
	ID           int                `json:"id"`
}

type Coinout

type Coinout struct {
	OrderID       string             `json:"order_id"`
	CurrencyCode  string             `json:"currency_code"`
	Amount        float64            `json:"amount"`
	Address       string             `json:"address"`
	TxHash        string             `json:"tx_hash"`
	Fee           float64            `json:"fee"`
	AdditionalFee float64            `json:"additional_fee"`
	Status        string             `json:"status"`
	EventDate     types.ExchangeTime `json:"event_date"`
	ID            int                `json:"id"`
}

type RequestForIn

type RequestForIn struct {
	Pagination types.Pagination `json:",inline"`
}

func NewForIn

func NewForIn() *RequestForIn

func (*RequestForIn) Method

func (p *RequestForIn) Method() string

func (*RequestForIn) Path

func (p *RequestForIn) Path() string

func (*RequestForIn) Payload

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

func (*RequestForIn) Query

func (p *RequestForIn) Query() string

func (*RequestForIn) SetPagination

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

type RequestForOut

type RequestForOut struct {
	Pagination types.Pagination `json:",inline"`
}

func NewForOut

func NewForOut() *RequestForOut

func (*RequestForOut) Method

func (p *RequestForOut) Method() string

func (*RequestForOut) Path

func (p *RequestForOut) Path() string

func (*RequestForOut) Payload

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

func (*RequestForOut) Query

func (p *RequestForOut) Query() string

func (*RequestForOut) SetPagination

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

type ResponseForIn

type ResponseForIn []Coinin

type ResponseForOut

type ResponseForOut []Coinout

Jump to

Keyboard shortcuts

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