Documentation
¶
Index ¶
- func DirectVectors(p map[D]P) (TriArr map[T][3]bool)
- func DsToInstruments(ds []D, duoSym map[D]string) (instruments []string)
- func ExpireTime(bl any, old Bbo) int64deprecated
- func GetEdgesMap(vs map[T][3]bool) map[D]bool
- type Attr
- type Bbo
- type D
- func (d D) Check(v Bbo, BBOs *sync.Map) bool
- func (d D) Clip(s string) string
- func (d D) Contains(currency string) bool
- func (d D) GetRelatedVs(cl any, ok bool) (relatedVs map[T][3]bool, err error)
- func (d D) Onward(side bool) D
- func (d D) QuoteContains(currency string) bool
- func (d D) Reverse() D
- func (d D) String() string
- func (d D) ToInstrument(duoSym map[D]string) string
- func (d D) Valid() bool
- type NetworkWithdraw
- type Order
- type P
- type Place
- type T
- type Trade
- type TradeFee
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpireTime
deprecated
Types ¶
type NetworkWithdraw ¶
type NetworkWithdraw struct { AddressRegex string `json:"addressRegex"` Coin string `json:"coin"` DepositDesc string `json:"depositDesc"` // shown only when "depositEnable" is false. DepositEnable bool `json:"depositEnable"` FeeDollar float64 IsDefault bool `json:"isDefault"` MemoRegex string `json:"memoRegex"` MinConfirm float64 `json:"minConfirm"` // min number for balance confirmation Name string `json:"name"` Network string `json:"network"` ResetAddressStatus bool `json:"resetAddressStatus"` SpecialTips string `json:"specialTips"` UnLockConfirm float64 `json:"unLockConfirm"` // confirmation number for balance unlock WithdrawDesc string `json:"withdrawDesc"` // shown only when "withdrawEnable" is false. WithdrawEnable bool `json:"withdrawEnable"` WithdrawIntegerMultiple float64 `json:"withdrawIntegerMultiple"` ExFee float64 ExMin float64 Fee float64 `json:"withdrawFee"` Max float64 `json:"withdrawMax"` Min float64 `json:"withdrawMin"` SameAddress bool `json:"sameAddress"` // If the coin needs to provide memo to withdraw EstimatedArrivalTime float64 `json:"estimatedArrivalTime"` Busy bool `json:"busy"` }
type Order ¶
type Order struct { Price float64 Amount float64 SAmount string OrderID2 string Symbol string Limit bool Sell bool Real bool Err error OrderID int //deprecated Side cons.TradeSide Type string //limit / market OrderType int //0:default,1:gtc,2:fok,3:ioc OrderTime int // create timestamp FinishedTime int64 //finished timestamp Currency cons.CurrencyPair Cid string //客户端自定义ID I int Status cons.TradeStatus AvgPrice float64 DealAmount float64 Fee float64 }
func (Order) HasErrPrefix ¶
type P ¶
type P struct {
Base, BaseLimit, Quote, Price float64 //step
// BaseN, BaseLimitN, QuoteN, PriceN int
MinBase, MinBaseLimit, MinQuote float64
TakerNett, MakerNett float64
}
func DefaultPrecision ¶
func DefaultPrecision() P
func NoFeePrecision ¶
func NoFeePrecision() P
func (P) GetFixedSize ¶
Click to show internal directories.
Click to hide internal directories.