response

package
v0.0.0-...-abc9c84 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const AmountTooSmallCode = 20006
View Source
const CancelledOrder = "unable to cancel CANCELLED order"
View Source
const DoneOrderCode = 20007
View Source
const OrderNotFoundOrOutdated = 20001

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountingOrder

type AccountingOrder struct {
	ID               int64  `json:"id"`
	TradeTimestamp   string `json:"tradeTimestamp"`
	CreatedTimestamp string `json:"createdTimestamp"`
	State            int    `json:"state"`
	Modifier         int    `json:"modifier"`
	Pair             string `json:"pair"`
	TradeIntent      int    `json:"tradeIntent"`
	OrderedVolume    string `json:"orderedVolume"`
	LimitPrice       string `json:"limitPrice"`
	TotalSellVolume  string `json:"totalSellVolume"`
	TotalBuyVolume   string `json:"totalBuyVolume"`
	TotalFeeQuoted   string `json:"totalFeeQuoted"`
	TotalFeeExt      string `json:"totalFeeExt"`
	Activated        string `json:"activated"`
	TpActivateLevel  string `json:"tpActivateLevel"`
	TrailDistance    string `json:"trailDistance"`
	TpSubmitLevel    string `json:"tp_submit_level"`
	TpLimitPrice     string `json:"tpLimitPrice"`
	SlSubmitLevel    string `json:"slSubmitLevel"`
	SlLimitPrice     string `json:"slLimitPrice"`
	StopTimestamp    string `json:"stopTimestamp"`
	TriggeredSide    string `json:"triggeredSide"`
}

func (AccountingOrder) MarshalEasyJSON

func (v AccountingOrder) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AccountingOrder) MarshalJSON

func (v AccountingOrder) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AccountingOrder) UnmarshalEasyJSON

func (v *AccountingOrder) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AccountingOrder) UnmarshalJSON

func (v *AccountingOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AccountingUpdates

type AccountingUpdates struct {
	ID                string `json:"id"`
	ClientEnvironment struct {
		FavoritePairs    []string `json:"favoritePairs"`
		FavoriteCurrency string   `json:"favoriteCurrency"`
		TariffType       int      `json:"tariffType"`
		AllowSpecialFee  bool     `json:"allowSpecialFee"`
	} `json:"clientEnvironment"`

	Balance []*Balance         `json:"balance"`
	Orders  []*AccountingOrder `json:"orders"`
	Deals   []*Deal            `json:"deals"`
}

func (AccountingUpdates) MarshalEasyJSON

func (v AccountingUpdates) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AccountingUpdates) MarshalJSON

func (v AccountingUpdates) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AccountingUpdates) UnmarshalEasyJSON

func (v *AccountingUpdates) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AccountingUpdates) UnmarshalJSON

func (v *AccountingUpdates) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Balance

type Balance struct {
	CurrencyCode string `json:"currencyCode"`
	CurrencyName string `json:"currencyName"`
	Available    string `json:"available"`
	Reserved     string `json:"reserved"`
	Total        string `json:"total"`
	Account      int    `json:"account"`
}

func (Balance) MarshalEasyJSON

func (v Balance) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Balance) MarshalJSON

func (v Balance) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Balance) UnmarshalEasyJSON

func (v *Balance) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Balance) UnmarshalJSON

func (v *Balance) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Balances

type Balances struct {
	ID      string     `json:"id"`
	Balance []*Balance `json:"balance"`
}

func (Balances) MarshalEasyJSON

func (v Balances) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Balances) MarshalJSON

func (v Balances) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Balances) UnmarshalEasyJSON

func (v *Balances) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Balances) UnmarshalJSON

func (v *Balances) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type BookResponse

type BookResponse struct {
	ID        string   `json:"id"`
	Bids      []*Order `json:"bids"`
	Asks      []*Order `json:"asks"`
	LastPrice struct {
		Price string `json:"price"`
		Type  int    `json:"type"`
	} `json:"lastPrice"`
}

func (BookResponse) MarshalEasyJSON

func (v BookResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (BookResponse) MarshalJSON

func (v BookResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*BookResponse) UnmarshalEasyJSON

func (v *BookResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BookResponse) UnmarshalJSON

func (v *BookResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CreatedOrder

type CreatedOrder struct {
	ID      string `json:"id"`
	OrderID int64  `json:"order_id"`
}

func (CreatedOrder) MarshalEasyJSON

func (v CreatedOrder) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CreatedOrder) MarshalJSON

func (v CreatedOrder) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CreatedOrder) UnmarshalEasyJSON

func (v *CreatedOrder) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CreatedOrder) UnmarshalJSON

func (v *CreatedOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Deal

type Deal struct {
	Timestamp  string `json:"timestamp"`
	OrderID    int64  `json:"orderId"`
	Pair       string `json:"pair"`
	Price      string `json:"price"`
	SellVolume string `json:"sellVolume"`
	BuyVolume  string `json:"buyVolume"`
	FeeQuoted  string `json:"feeQuoted"`
	FeeExt     string `json:"feeExt"`
}

func (Deal) MarshalEasyJSON

func (v Deal) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Deal) MarshalJSON

func (v Deal) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Deal) UnmarshalEasyJSON

func (v *Deal) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Deal) UnmarshalJSON

func (v *Deal) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Err

type Err struct {
	Code   int    `json:"code"`
	Reason string `json:"reason"`
}

func (Err) MarshalEasyJSON

func (v Err) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Err) MarshalJSON

func (v Err) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Err) UnmarshalEasyJSON

func (v *Err) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Err) UnmarshalJSON

func (v *Err) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Error

type Error struct {
	ID    string `json:"id"`
	Error *Err   `json:"error"`
}

func (Error) MarshalEasyJSON

func (v Error) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Error) MarshalJSON

func (v Error) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Error) UnmarshalEasyJSON

func (v *Error) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Error) UnmarshalJSON

func (v *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetOrder

type GetOrder struct {
	ID    string           `json:"id"`
	Order *AccountingOrder `json:"order"`
}

func (GetOrder) MarshalEasyJSON

func (v GetOrder) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetOrder) MarshalJSON

func (v GetOrder) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetOrder) UnmarshalEasyJSON

func (v *GetOrder) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetOrder) UnmarshalJSON

func (v *GetOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ID

type ID struct {
	ID string `json:"id"`
}

func (ID) MarshalEasyJSON

func (v ID) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ID) MarshalJSON

func (v ID) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ID) UnmarshalEasyJSON

func (v *ID) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ID) UnmarshalJSON

func (v *ID) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Order

type Order struct {
	Price  string `json:"price"`
	Amount string `json:"amount"`
	Total  string `json:"total"`
}

func (Order) MarshalEasyJSON

func (v Order) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Order) MarshalJSON

func (v Order) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Order) UnmarshalEasyJSON

func (v *Order) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Order) UnmarshalJSON

func (v *Order) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Pair

type Pair struct {
	BaseCurrency    string `json:"baseCurrency"`
	QuoteCurrency   string `json:"quoteCurrency"`
	Price           string `json:"price"`
	Price24hChange  string `json:"price24hChange"`
	Volume24hChange string `json:"volume24hChange"`
	Amount24hChange string `json:"amount_24_h_change"`
	LowPrice24h     string `json:"lowPrice24h"`
	HighPrice24h    string `json:"highPrice24h"`
	PriceScale      int    `json:"priceScale"`
	QuantityScale   int    `json:"quantityScale"`
	VolumeScale     int    `json:"volumeScale"`
	MinQuantity     string `json:"minQuantity"`
	MinVolume       string `json:"minVolume"`
	State           int    `json:"state"`
}

func (Pair) MarshalEasyJSON

func (v Pair) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Pair) MarshalJSON

func (v Pair) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Pair) UnmarshalEasyJSON

func (v *Pair) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Pair) UnmarshalJSON

func (v *Pair) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Pairs

type Pairs struct {
	ID    string  `json:"id"`
	Pairs []*Pair `json:"pairs"`
}

func (Pairs) MarshalEasyJSON

func (v Pairs) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Pairs) MarshalJSON

func (v Pairs) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Pairs) UnmarshalEasyJSON

func (v *Pairs) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Pairs) UnmarshalJSON

func (v *Pairs) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UserOrdersResponse

type UserOrdersResponse struct {
	ID         string             `json:"id"`
	OpenOrders []*AccountingOrder `json:"openOrders"`
}

func (UserOrdersResponse) MarshalEasyJSON

func (v UserOrdersResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UserOrdersResponse) MarshalJSON

func (v UserOrdersResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UserOrdersResponse) UnmarshalEasyJSON

func (v *UserOrdersResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UserOrdersResponse) UnmarshalJSON

func (v *UserOrdersResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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