Documentation ¶
Index ¶
Constants ¶
const AmountTooSmallCode = 20006
const CancelledOrder = "unable to cancel CANCELLED order"
const DoneOrderCode = 20007
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Balance) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Balance) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Balance) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Balances ¶
func (Balances) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Balances) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Balances) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Balances) UnmarshalJSON ¶
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 ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Deal) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Deal) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Deal) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Err ¶
func (Err) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Err) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Err) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Err) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Error ¶
func (Error) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Error) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Error) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Error) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type GetOrder ¶
type GetOrder struct { ID string `json:"id"` Order *AccountingOrder `json:"order"` }
func (GetOrder) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetOrder) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*GetOrder) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetOrder) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type ID ¶
type ID struct {
ID string `json:"id"`
}
func (ID) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (ID) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*ID) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ID) UnmarshalJSON ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Order) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Order) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Order) UnmarshalJSON ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Pair) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Pair) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Pair) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Pairs ¶
func (Pairs) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Pairs) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Pairs) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Pairs) UnmarshalJSON ¶
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