Documentation
¶
Index ¶
Constants ¶
View Source
const ( BuyBase = 0 SellBase = 1 BuyQuoted = 2 SellQuoted = 3 )
View Source
const ( KickUsdt = "KICK/USDT" BtcUsdt = "BTC/USDT" BalUsdt = "BAL/USDT" )
View Source
const ( AuthType = "auth" GetUsersOpenOrders = "getUsersOpenOrders" SubscribeAccounting = "subscribeAccounting" GetOrderBookAndSubscribe = "getOrderBookAndSubscribe" GetPairsAndSubscribe = "getPairsAndSubscribe" CreateTradeOrder = "createTradeOrder" AlterTradeOrder = "alterTradeOrder" CancelOrder = "cancelOrder" GetOrder = "getOrder" GetBalance = "getBalance" )
View Source
const BTC = "BTC"
View Source
const DefaultIntBase = 10
View Source
const DefaultNumberBitSize = 64
View Source
const DefaultPrecision = 2
View Source
const DumpFilePermissions = 0600
View Source
const ETH = "ETH"
View Source
const ExtendedPrecision = 10
View Source
const Kick = "KICK"
View Source
const SecondStep = 2
View Source
const ShutDownDuration = time.Second * 10
View Source
const SignalChLen = 10
View Source
const StateActive = 4
View Source
const StateCancelled = 7
View Source
const StateDone = 5
View Source
const StateHold = 2
View Source
const StatePending = 1
View Source
const StatePlacing = 3
View Source
const StateRejected = 6
View Source
const ThirdStepStep = 2
View Source
const USDT = "USDT"
Variables ¶
View Source
var ErrCancelOrderTimeout = errors.New("cancel order state timeout")
View Source
var ErrCantCancelDoneOrder = errors.New("unable to cancel done order")
View Source
var ErrCantConvertInterfaceToBytes = errors.New("can't convert interface to bytes")
View Source
var ErrChannelOverflowed = errors.New("channel overflowed")
View Source
var ErrEventChannelClosed = errors.New("event channel closed")
View Source
var ErrInsufficientFunds = errors.New("insufficient funds")
View Source
var ErrInterfaceAssertion = errors.New("invalid interface assertion")
View Source
var ErrInvalidPair = errors.New("pair is missing in pairs list")
View Source
var ErrOrderCreationEventNotReceived = errors.New("order creation event not received")
View Source
var ErrOrderNotCompleted = errors.New("order not completed")
View Source
var ErrOrderNotFoundOrOutdated = errors.New("order not found or outdated")
View Source
var ErrParseFloat = errors.New("parse string as float")
View Source
var ErrResponse = errors.New("received response contains error")
View Source
var ErrUpdateOrderStateTimeout = errors.New("update order state timeout")
View Source
var ErrWaitBalanceUpdate = errors.New("wait balance timeout")
View Source
var ErrWsReadChannelClosed = errors.New("ws read channel closed")
View Source
var MaxPercentFloat, _ = big.NewFloat(0).SetString("100") //nolint: gochecknoglobals
View Source
var ZeroBigFloat, _ = big.NewFloat(0).SetString("0") //nolint: gochecknoglobals
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.