Versions in this module Expand all Collapse all v0 v0.1.4 Sep 22, 2020 v0.1.3 Sep 22, 2020 v0.1.2 Sep 21, 2020 v0.1.1 Sep 21, 2020 v0.1.0 Sep 21, 2020 v0.0.9 Sep 21, 2020 v0.0.8 Sep 21, 2020 v0.0.7 Sep 21, 2020 v0.0.6 Sep 21, 2020 v0.0.5 Sep 21, 2020 Changes in this version + const ContractDownsideProfit + const ContractFutures + const ContractPerpetual + const ContractUpsideProfit + func StructValsToURLVals(v interface{}) (url.Values, error) + type APIKey struct + Cidr string + Created string + Enabled bool + ID string + Name string + Nonce int64 + Permissions []interface{} + Secret string + UserID int32 + type APIKeyParams struct + APIKeyID string + func (p *APIKeyParams) IsNil() bool + func (p *APIKeyParams) ToURLVals(path string) (string, error) + func (p *APIKeyParams) VerifyData() error + type AffiliateStatus struct + Account int64 + Currency string + ExecComm int64 + ExecTurnover int64 + PayoutPcnt float64 + PendingPayout int64 + PrevComm int64 + PrevPayout int64 + PrevTimestamp time.Time + PrevTurnover int64 + ReferrerAccount float64 + Timestamp time.Time + TotalComm int64 + TotalReferrals int64 + TotalTurnover int64 + type Alias struct + Name string + type Announcement struct + Content string + Date string + ID int32 + Link string + Title string + type AnnouncementData struct + Action string + Data []Announcement + type Bitmex struct + func (b *Bitmex) AmendBulkOrders(params OrderAmendBulkParams) ([]Order, error) + func (b *Bitmex) AmendOrder(params *OrderAmendParams) (Order, error) + func (b *Bitmex) AuthenticateWebsocket() error + func (b *Bitmex) CancelAllExistingOrders(params OrderCancelAllParams) ([]Order, error) + func (b *Bitmex) CancelAllOrders(_ *order.Cancel) (order.CancelAllResponse, error) + func (b *Bitmex) CancelAllOrdersAfterTime(params OrderCancelAllAfterParams) ([]Order, error) + func (b *Bitmex) CancelOrder(order *order.Cancel) error + func (b *Bitmex) CancelOrders(params *OrderCancelParams) ([]Order, error) + func (b *Bitmex) CancelWithdraw(token string) (TransactionInfo, error) + func (b *Bitmex) CaptureError(resp, reType interface{}) error + func (b *Bitmex) CheckReferalCode(referralCode string) (float64, error) + func (b *Bitmex) ClosePosition(params OrderClosePositionParams) ([]Order, error) + func (b *Bitmex) ConfirmEmail(token string) (ConfirmEmail, error) + func (b *Bitmex) ConfirmTwoFactorAuth(token, typ string) (bool, error) + func (b *Bitmex) ConfirmWithdrawal(token string) (TransactionInfo, error) + func (b *Bitmex) CreateBulkOrders(params OrderNewBulkParams) ([]Order, error) + func (b *Bitmex) CreateOrder(params *OrderNewParams) (Order, error) + func (b *Bitmex) DisableAPIKey(params APIKeyParams) (APIKey, error) + func (b *Bitmex) DisableTFA(token, typ string) (bool, error) + func (b *Bitmex) EnableAPIKey(params APIKeyParams) (APIKey, error) + func (b *Bitmex) EnableTFA(typ string) (bool, error) + func (b *Bitmex) FetchAccountInfo() (account.Holdings, error) + func (b *Bitmex) FetchOrderbook(p currency.Pair, assetType asset.Item) (*orderbook.Base, error) + func (b *Bitmex) FetchTicker(p currency.Pair, assetType asset.Item) (*ticker.Price, error) + func (b *Bitmex) FetchTradablePairs(asset asset.Item) ([]string, error) + func (b *Bitmex) GenerateAuthenticatedSubscriptions() ([]stream.ChannelSubscription, error) + func (b *Bitmex) GenerateDefaultSubscriptions() ([]stream.ChannelSubscription, error) + func (b *Bitmex) GetAPIKeys() ([]APIKey, error) + func (b *Bitmex) GetAccountExecutionTradeHistory(params *GenericRequestParams) ([]Execution, error) + func (b *Bitmex) GetAccountExecutions(params *GenericRequestParams) ([]Execution, error) + func (b *Bitmex) GetActiveAndIndexInstruments() ([]Instrument, error) + func (b *Bitmex) GetActiveInstruments(params *GenericRequestParams) ([]Instrument, error) + func (b *Bitmex) GetActiveIntervals() (InstrumentInterval, error) + func (b *Bitmex) GetActiveOrders(req *order.GetOrdersRequest) ([]order.Detail, error) + func (b *Bitmex) GetAffiliateStatus() (AffiliateStatus, error) + func (b *Bitmex) GetAliasOnLeaderboard() (Alias, error) + func (b *Bitmex) GetAllUserMargin() ([]UserMargin, error) + func (b *Bitmex) GetAnnouncement() ([]Announcement, error) + func (b *Bitmex) GetCompositeIndex(params *GenericRequestParams) ([]IndexComposite, error) + func (b *Bitmex) GetCryptoDepositAddress(cryptoCurrency string) (string, error) + func (b *Bitmex) GetCurrentNotifications() ([]Notification, error) + func (b *Bitmex) GetDefaultConfig() (*config.ExchangeConfig, error) + func (b *Bitmex) GetDepositAddress(cryptocurrency currency.Code, _ string) (string, error) + func (b *Bitmex) GetExchangeHistory(p currency.Pair, assetType asset.Item, timestampStart, timestampEnd time.Time) ([]exchange.TradeHistory, error) + func (b *Bitmex) GetFee(feeBuilder *exchange.FeeBuilder) (float64, error) + func (b *Bitmex) GetFeeByType(feeBuilder *exchange.FeeBuilder) (float64, error) + func (b *Bitmex) GetFullFundingHistory() ([]Funding, error) + func (b *Bitmex) GetFundingHistory() ([]exchange.FundHistory, error) + func (b *Bitmex) GetHistoricCandles(pair currency.Pair, a asset.Item, start, end time.Time, ...) (kline.Item, error) + func (b *Bitmex) GetHistoricCandlesExtended(pair currency.Pair, a asset.Item, start, end time.Time, ...) (kline.Item, error) + func (b *Bitmex) GetIndices() ([]Instrument, error) + func (b *Bitmex) GetInstruments(params *GenericRequestParams) ([]Instrument, error) + func (b *Bitmex) GetInsuranceFundHistory(params *GenericRequestParams) ([]Insurance, error) + func (b *Bitmex) GetLeaderboard(params LeaderboardGetParams) ([]Leaderboard, error) + func (b *Bitmex) GetLiquidationOrders(params *GenericRequestParams) ([]Liquidation, error) + func (b *Bitmex) GetMinimumWithdrawalFee(currency string) (MinWithdrawalFee, error) + func (b *Bitmex) GetOrderHistory(req *order.GetOrdersRequest) ([]order.Detail, error) + func (b *Bitmex) GetOrderHistoryById(getOrdersRequest string) ([]order.Detail, error) + func (b *Bitmex) GetOrderInfo(orderID string) (order.Detail, error) + func (b *Bitmex) GetOrderbook(params OrderBookGetL2Params) ([]OrderBookL2, error) + func (b *Bitmex) GetOrders(params *OrdersRequest) ([]Order, error) + func (b *Bitmex) GetPositions(params PositionGetParams) ([]Position, error) + func (b *Bitmex) GetPreviousTrades(params *TradeGetBucketedParams) ([]Trade, error) + func (b *Bitmex) GetQuotes(params *GenericRequestParams) ([]Quote, error) + func (b *Bitmex) GetQuotesByBuckets(params *QuoteGetBucketedParams) ([]Quote, error) + func (b *Bitmex) GetSettlementHistory(params *GenericRequestParams) ([]Settlement, error) + func (b *Bitmex) GetStatSummary() ([]StatsUSD, error) + func (b *Bitmex) GetStats() ([]Stats, error) + func (b *Bitmex) GetStatsHistorical() ([]StatsHistory, error) + func (b *Bitmex) GetTrade(params *GenericRequestParams) ([]Trade, error) + func (b *Bitmex) GetTrollboxChannels() ([]ChatChannel, error) + func (b *Bitmex) GetTrollboxConnectedUsers() (ConnectedUsers, error) + func (b *Bitmex) GetTrollboxMessages(params ChatGetParams) ([]Chat, error) + func (b *Bitmex) GetUrgentAnnouncement() ([]Announcement, error) + func (b *Bitmex) GetUserCommision() (UserCommission, error) + func (b *Bitmex) GetUserInfo() (User, error) + func (b *Bitmex) GetUserMargin(currency string) (UserMargin, error) + func (b *Bitmex) GetUserPreferences(params UserPreferencesParams) (User, error) + func (b *Bitmex) GetWalletHistory(currency string) ([]TransactionInfo, error) + func (b *Bitmex) GetWalletInfo(currency string) (WalletInfo, error) + func (b *Bitmex) GetWalletSummary(currency string) ([]TransactionInfo, error) + func (b *Bitmex) IsolatePosition(params PositionIsolateMarginParams) (Position, error) + func (b *Bitmex) LeveragePosition(params PositionUpdateLeverageParams) (Position, error) + func (b *Bitmex) ModifyOrder(action *order.Modify) (string, error) + func (b *Bitmex) RemoveAPIKey(params APIKeyParams) (bool, error) + func (b *Bitmex) Run() + func (b *Bitmex) SendAuthenticatedHTTPRequest(verb, path string, params Parameter, result interface{}) error + func (b *Bitmex) SendHTTPRequest(path string, params Parameter, result interface{}) error + func (b *Bitmex) SendTrollboxMessage(params ChatSendParams) ([]Chat, error) + func (b *Bitmex) SetDefaults() + func (b *Bitmex) Setup(exch *config.ExchangeConfig) error + func (b *Bitmex) Start(wg *sync.WaitGroup) + func (b *Bitmex) SubmitOrder(s *order.Submit) (order.SubmitResponse, error) + func (b *Bitmex) Subscribe(channelsToSubscribe []stream.ChannelSubscription) error + func (b *Bitmex) TransferMargin(params PositionTransferIsolatedMarginParams) (Position, error) + func (b *Bitmex) Unsubscribe(channelsToUnsubscribe []stream.ChannelSubscription) error + func (b *Bitmex) UpdateAccountInfo() (account.Holdings, error) + func (b *Bitmex) UpdateOrderbook(p currency.Pair, assetType asset.Item) (*orderbook.Base, error) + func (b *Bitmex) UpdateRiskLimit(params PositionUpdateRiskLimitParams) (Position, error) + func (b *Bitmex) UpdateTicker(p currency.Pair, assetType asset.Item) (*ticker.Price, error) + func (b *Bitmex) UpdateTradablePairs(forceUpdate bool) error + func (b *Bitmex) UpdateUserInfo(params *UserUpdateParams) (User, error) + func (b *Bitmex) UserLogOut() error + func (b *Bitmex) UserLogOutAll() (int64, error) + func (b *Bitmex) UserRequestWithdrawal(params UserRequestWithdrawalParams) (TransactionInfo, error) + func (b *Bitmex) ValidateCredentials() error + func (b *Bitmex) WithdrawCryptocurrencyFunds(withdrawRequest *withdraw.Request) (*withdraw.ExchangeResponse, error) + func (b *Bitmex) WithdrawFiatFunds(withdrawRequest *withdraw.Request) (*withdraw.ExchangeResponse, error) + func (b *Bitmex) WithdrawFiatFundsToInternationalBank(withdrawRequest *withdraw.Request) (*withdraw.ExchangeResponse, error) + func (b *Bitmex) WsConnect() error + type Chat struct + ChannelID float64 + Date string + FromBot bool + HTML string + ID int32 + Message string + User string + type ChatChannel struct + ID int32 + Name string + type ChatGetParams struct + ChannelID float64 + Count int32 + Reverse bool + Start int32 + func (p *ChatGetParams) IsNil() bool + func (p *ChatGetParams) ToURLVals(path string) (string, error) + func (p *ChatGetParams) VerifyData() error + type ChatSendParams struct + ChannelID float64 + Message string + func (p *ChatSendParams) IsNil() bool + func (p ChatSendParams) ToURLVals(path string) (string, error) + func (p ChatSendParams) VerifyData() error + type ConfirmEmail struct + Created string + ID string + TTL int64 + UserID int64 + type ConnectedUsers struct + Bots int32 + Users int32 + type Execution struct + Account int64 + AvgPx float64 + ClOrdID string + ClOrdLinkID string + Commission float64 + ContingencyType string + CumQty int64 + Currency string + DisplayQuantity int64 + ExDestination string + ExecComm int64 + ExecCost int64 + ExecID string + ExecInst string + ExecType string + ForeignNotional float64 + HomeNotional float64 + LastLiquidityInd string + LastMkt string + LastPx float64 + LastQty int64 + LeavesQty int64 + MultiLegReportingType string + OrdRejReason string + OrdStatus string + OrdType string + OrderID string + OrderQty int64 + PegOffsetValue float64 + PegPriceType string + Price float64 + SettlCurrency string + Side string + SimpleCumQty float64 + SimpleLeavesQty float64 + SimpleOrderQty float64 + StopPx float64 + Symbol string + Text string + TimeInForce string + Timestamp time.Time + TradePublishIndicator string + TransactTime string + TrdMatchID string + Triggered string + UnderlyingLastPx float64 + WorkingIndicator bool + type Funding struct + FundingInterval string + FundingRate float64 + FundingRateDaily float64 + Symbol string + Timestamp time.Time + type GenericRequestParams struct + Columns string + Count int32 + EndTime string + Filter string + Reverse bool + Start int32 + StartTime string + Symbol string + func (p *GenericRequestParams) IsNil() bool + func (p *GenericRequestParams) ToURLVals(path string) (string, error) + func (p *GenericRequestParams) VerifyData() error + type IndexComposite struct + IndexSymbol string + LastPrice float64 + Logged string + Reference string + Symbol string + Timestamp time.Time + Weight float64 + type Instrument struct + AskPrice float64 + BankruptLimitDownPrice float64 + BankruptLimitUpPrice float64 + BidPrice float64 + BuyLeg string + CalcInterval string + Capped bool + ClosingTimestamp time.Time + Deleverage bool + Expiry string + FairBasis float64 + FairBasisRate float64 + FairMethod string + FairPrice float64 + Front string + FundingBaseSymbol string + FundingInterval string + FundingPremiumSymbol string + FundingQuoteSymbol string + FundingRate float64 + FundingTimestamp time.Time + HasLiquidity bool + HighPrice float64 + ImpactAskPrice float64 + ImpactBidPrice float64 + ImpactMidPrice float64 + IndicativeFundingRate float64 + IndicativeSettlePrice float64 + IndicativeTaxRate float64 + InitMargin float64 + InsuranceFee float64 + InverseLeg string + IsInverse bool + IsQuanto bool + LastChangePcnt float64 + LastPrice float64 + LastPriceProtected float64 + LastTickDirection string + Limit float64 + LimitDownPrice float64 + LimitUpPrice float64 + Listing string + LotSize int64 + LowPrice float64 + MaintMargin float64 + MakerFee float64 + MarkMethod string + MarkPrice float64 + MaxOrderQty int64 + MaxPrice float64 + MidPrice float64 + Multiplier int64 + OpenInterest int64 + OpenValue int64 + OpeningTimestamp time.Time + OptionMultiplier float64 + OptionStrikePcnt float64 + OptionStrikePrice float64 + OptionStrikeRound float64 + OptionUnderlyingPrice float64 + PositionCurrency string + PrevClosePrice float64 + PrevPrice24h float64 + PrevTotalTurnover int64 + PrevTotalVolume int64 + PublishInterval string + PublishTime string + QuoteCurrency string + QuoteToSettleMultiplier int64 + RebalanceInterval string + RebalanceTimestamp time.Time + Reference string + ReferenceSymbol string + RelistInterval string + RiskLimit int64 + RiskStep int64 + RootSymbol string + SellLeg string + SessionInterval string + SettlCurrency string + Settle string + SettledPrice float64 + SettlementFee float64 + State string + Symbol currency.Pair + TakerFee float64 + Taxed bool + TickSize float64 + Timestamp time.Time + TotalTurnover int64 + TotalVolume int64 + Turnover int64 + Turnover24h int64 + Typ string + Underlying string + UnderlyingSymbol string + UnderlyingToPositionMultiplier int64 + UnderlyingToSettleMultiplier int64 + Volume float64 + Volume24h float64 + Vwap float64 + type InstrumentInterval struct + Intervals []string + Symbols []string + type Insurance struct + Currency string + Timestamp time.Time + WalletBalance int64 + type Leaderboard struct + IsRealName bool + Name string + Profit float64 + type LeaderboardGetParams struct + Method string + func (p LeaderboardGetParams) IsNil() bool + func (p LeaderboardGetParams) ToURLVals(path string) (string, error) + func (p LeaderboardGetParams) VerifyData() error + type Liquidation struct + LeavesQty int64 + OrderID string + Price float64 + Side string + Symbol string + type MinWithdrawalFee struct + Currency string + Fee int64 + MinFee int64 + type Notification struct + Body string + Closable bool + Date string + ID int32 + Persist bool + Sound string + TTL int32 + Title string + Type string + WaitForVisibility bool + type Order struct + Account int64 + AvgPx float64 + ClOrdID string + ClOrdLinkID string + ContingencyType string + CumQty int64 + Currency string + DisplayQuantity int64 + ExDestination string + ExecInst string + LeavesQty int64 + MultiLegReportingType string + OrdRejReason string + OrdStatus string + OrdType int64 + OrderID string + OrderQty int64 + PegOffsetValue float64 + PegPriceType string + Price float64 + SettlCurrency string + Side int64 + SimpleCumQty float64 + SimpleLeavesQty float64 + SimpleOrderQty float64 + StopPx float64 + Symbol string + Text string + TimeInForce string + Timestamp time.Time + TransactTime string + Triggered string + WorkingIndicator bool + type OrderAmendBulkParams struct + Orders []OrderAmendParams + func (p OrderAmendBulkParams) IsNil() bool + func (p OrderAmendBulkParams) ToURLVals(path string) (string, error) + func (p OrderAmendBulkParams) VerifyData() error + type OrderAmendParams struct + ClientOrderID string + LeavesQuantity int32 + OrderID string + OrderQty int32 + OrigClOrdID string + PegOffsetValue float64 + Price float64 + SimpleLeavesQuantity float64 + SimpleOrderQuantity float64 + StopPx float64 + Text string + func (p *OrderAmendParams) IsNil() bool + func (p *OrderAmendParams) ToURLVals(path string) (string, error) + func (p *OrderAmendParams) VerifyData() error + type OrderBookData struct + Action string + Data []OrderBookL2 + type OrderBookGetL2Params struct + Depth int32 + Symbol string + func (p OrderBookGetL2Params) IsNil() bool + func (p OrderBookGetL2Params) ToURLVals(path string) (string, error) + func (p OrderBookGetL2Params) VerifyData() error + type OrderBookL2 struct + ID int64 + Price float64 + Side string + Size int64 + Symbol string + type OrderCancelAllAfterParams struct + Timeout float64 + func (p OrderCancelAllAfterParams) IsNil() bool + func (p OrderCancelAllAfterParams) ToURLVals(path string) (string, error) + func (p OrderCancelAllAfterParams) VerifyData() error + type OrderCancelAllParams struct + Filter string + Symbol string + Text string + func (p OrderCancelAllParams) IsNil() bool + func (p OrderCancelAllParams) ToURLVals(path string) (string, error) + func (p OrderCancelAllParams) VerifyData() error + type OrderCancelParams struct + ClientOrderID string + OrderID string + Text string + func (p OrderCancelParams) IsNil() bool + func (p OrderCancelParams) ToURLVals(path string) (string, error) + func (p OrderCancelParams) VerifyData() error + type OrderClosePositionParams struct + Price float64 + Symbol string + func (p OrderClosePositionParams) IsNil() bool + func (p OrderClosePositionParams) ToURLVals(path string) (string, error) + func (p OrderClosePositionParams) VerifyData() error + type OrderInsertData struct + Account int64 + AveragePrice float64 + ClientOrderID string + ClientOrderLinkID string + Commission float64 + ContingencyType string + Currency string + DisplayQuantity float64 + ExDestination string + ExecComm float64 + ExecCost float64 + ExecutionID string + ExecutionInstance string + ExecutionType string + FilledQuantity float64 + ForeignNotional float64 + HomeNotional float64 + LastLiquidityInd string + LastMkt string + LastPrice float64 + LastQuantity float64 + LeavesQuantity float64 + MultiLegReportingType string + OrderID string + OrderQuantity float64 + OrderRejectedReason string + OrderStatus string + OrderType string + PegOffsetValue float64 + PegPriceType string + Price float64 + SettleCurrency string + Side string + SimpleFilledQuantity float64 + SimpleLeavesQuantity float64 + SimpleOrderQuantity float64 + StopPrice float64 + Symbol string + Text string + TimeInForce string + Timestamp time.Time + TradePublishIndicator string + TradingMatchID string + TransactTime time.Time + Triggered string + UnderlyingLastPrice float64 + WorkingIndicator bool + type OrderNewBulkParams struct + Orders []OrderNewParams + func (p OrderNewBulkParams) IsNil() bool + func (p OrderNewBulkParams) ToURLVals(path string) (string, error) + func (p OrderNewBulkParams) VerifyData() error + type OrderNewParams struct + ClientOrderID string + ClientOrderLinkID string + ContingencyType string + DisplayQuantity float64 + ExecInst string + OrderQuantity float64 + OrderType string + PegOffsetValue float64 + PegPriceType string + Price float64 + Side string + SimpleOrderQuantity float64 + StopPx float64 + Symbol string + Text string + TimeInForce string + func (p *OrderNewParams) IsNil() bool + func (p *OrderNewParams) ToURLVals(path string) (string, error) + func (p *OrderNewParams) VerifyData() error + type OrdersRequest struct + Columns string + Count float64 + EndTime string + Filter string + Reverse bool + Start float64 + StartTime string + Symbol string + func (p *OrdersRequest) IsNil() bool + func (p *OrdersRequest) ToURLVals(path string) (string, error) + func (p *OrdersRequest) VerifyData() error + type Parameter interface + IsNil func() bool + ToURLVals func(path string) (string, error) + VerifyData func() error + type Position struct + Account int64 + AvgCostPrice float64 + AvgEntryPrice float64 + BankruptPrice float64 + BreakEvenPrice float64 + Commission float64 + CrossMargin bool + Currency string + CurrentComm int64 + CurrentCost int64 + CurrentQty int64 + CurrentTimestamp time.Time + DeleveragePercentile float64 + ExecBuyCost int64 + ExecBuyQty int64 + ExecComm int64 + ExecCost int64 + ExecQty int64 + ExecSellCost int64 + ExecSellQty int64 + ForeignNotional float64 + GrossExecCost int64 + GrossOpenCost int64 + GrossOpenPremium int64 + HomeNotional float64 + IndicativeTax int64 + IndicativeTaxRate float64 + InitMargin int64 + InitMarginReq float64 + IsOpen bool + LastPrice float64 + LastValue int64 + Leverage float64 + LiquidationPrice float64 + LongBankrupt int64 + MaintMargin int64 + MaintMarginReq float64 + MarginCallPrice float64 + MarkPrice float64 + MarkValue int64 + OpenOrderBuyCost int64 + OpenOrderBuyPremium int64 + OpenOrderBuyQty int64 + OpenOrderSellCost int64 + OpenOrderSellPremium int64 + OpenOrderSellQty int64 + OpeningComm int64 + OpeningCost int64 + OpeningQty int64 + OpeningTimestamp time.Time + PosAllowance int64 + PosComm int64 + PosCost int64 + PosCost2 int64 + PosCross int64 + PosInit int64 + PosLoss int64 + PosMaint int64 + PosMargin int64 + PosState string + PrevClosePrice float64 + PrevRealisedPnl int64 + PrevUnrealisedPnl int64 + QuoteCurrency string + RealisedCost int64 + RealisedGrossPnl int64 + RealisedPnl int64 + RealisedTax int64 + RebalancedPnl int64 + RiskLimit int64 + RiskValue int64 + SessionMargin int64 + ShortBankrupt int64 + SimpleCost float64 + SimplePnl float64 + SimplePnlPcnt float64 + SimpleQty float64 + SimpleValue float64 + Symbol string + TargetExcessMargin int64 + TaxBase int64 + TaxableMargin int64 + Timestamp time.Time + Underlying string + UnrealisedCost int64 + UnrealisedGrossPnl int64 + UnrealisedPnl int64 + UnrealisedPnlPcnt float64 + UnrealisedRoePcnt float64 + UnrealisedTax int64 + VarMargin int64 + type PositionGetParams struct + Columns string + Count int32 + Filter string + func (p PositionGetParams) IsNil() bool + func (p PositionGetParams) ToURLVals(path string) (string, error) + func (p PositionGetParams) VerifyData() error + type PositionIsolateMarginParams struct + Enabled bool + Symbol string + func (p PositionIsolateMarginParams) IsNil() bool + func (p PositionIsolateMarginParams) ToURLVals(path string) (string, error) + func (p PositionIsolateMarginParams) VerifyData() error + type PositionTransferIsolatedMarginParams struct + Amount int64 + Symbol string + func (p PositionTransferIsolatedMarginParams) IsNil() bool + func (p PositionTransferIsolatedMarginParams) ToURLVals(path string) (string, error) + func (p PositionTransferIsolatedMarginParams) VerifyData() error + type PositionUpdateLeverageParams struct + Leverage float64 + Symbol string + func (p PositionUpdateLeverageParams) IsNil() bool + func (p PositionUpdateLeverageParams) ToURLVals(path string) (string, error) + func (p PositionUpdateLeverageParams) VerifyData() error + type PositionUpdateRiskLimitParams struct + RiskLimit int64 + Symbol string + func (p PositionUpdateRiskLimitParams) IsNil() bool + func (p PositionUpdateRiskLimitParams) ToURLVals(path string) (string, error) + func (p PositionUpdateRiskLimitParams) VerifyData() error + type Quote struct + AskPrice float64 + AskSize int64 + BidPrice float64 + BidSize int64 + Symbol string + Timestamp time.Time + type QuoteGetBucketedParams struct + BinSize string + Columns string + Count int32 + EndTime string + Filter string + Partial bool + Reverse bool + Start int32 + StartTime string + Symbol string + func (p *QuoteGetBucketedParams) IsNil() bool + func (p *QuoteGetBucketedParams) ToURLVals(path string) (string, error) + func (p *QuoteGetBucketedParams) VerifyData() error + type RateLimit struct + Auth *rate.Limiter + UnAuth *rate.Limiter + func SetRateLimit() *RateLimit + func (r *RateLimit) Limit(f request.EndpointLimit) error + type RequestError struct + Error struct{ ... } + type Settlement struct + Bankrupt int64 + OptionStrikePrice float64 + OptionUnderlyingPrice float64 + SettledPrice float64 + SettlementType string + Symbol string + TaxBase int64 + TaxRate float64 + Timestamp time.Time + type Stats struct + Currency string + OpenInterest int64 + OpenValue int64 + RootSymbol string + Turnover24h int64 + Volume24h int64 + type StatsHistory struct + Currency string + Date string + RootSymbol string + Turnover int64 + Volume int64 + type StatsUSD struct + Currency string + RootSymbol string + Turnover int64 + Turnover24h int64 + Turnover30d int64 + Turnover365d int64 + type Trade struct + ForeignNotional float64 + GrossValue int64 + HomeNotional float64 + Price float64 + Side string + Size int64 + Symbol string + TickDirection string + Timestamp time.Time + TrdMatchID string + type TradeData struct + Action string + Data []Trade + type TradeGetBucketedParams struct + BinSize string + Columns string + Count int32 + EndTime string + Filter string + Partial bool + Reverse bool + Start int32 + StartTime string + Symbol string + func (p *TradeGetBucketedParams) IsNil() bool + func (p *TradeGetBucketedParams) ToURLVals(path string) (string, error) + func (p *TradeGetBucketedParams) VerifyData() error + type TransactionInfo struct + Account int64 + Address string + Amount int64 + Currency string + Fee int64 + Text string + Timestamp time.Time + TransactID string + TransactStatus string + TransactTime string + TransactType string + Tx string + type User struct + AffiliateID string + Country string + Created string + Email string + Firstname string + GeoipCountry string + GeoipRegion string + ID int32 + LastUpdated string + Lastname string + OwnerID int32 + PgpPubKey string + Phone string + Preferences UserPreferences + TFAEnabled string + Typ string + Username string + type UserCheckReferralCodeParams struct + ReferralCode string + func (p UserCheckReferralCodeParams) IsNil() bool + func (p UserCheckReferralCodeParams) ToURLVals(path string) (string, error) + func (p UserCheckReferralCodeParams) VerifyData() error + type UserCommission struct + MakerFee float64 + MaxFee float64 + SettlementFee float64 + TakerFee float64 + type UserConfirmTFAParams struct + Token string + Type string + func (p UserConfirmTFAParams) IsNil() bool + func (p UserConfirmTFAParams) ToURLVals(path string) (string, error) + func (p UserConfirmTFAParams) VerifyData() error + type UserCurrencyParams struct + Currency string + func (p UserCurrencyParams) IsNil() bool + func (p UserCurrencyParams) ToURLVals(path string) (string, error) + func (p UserCurrencyParams) VerifyData() error + type UserMargin struct + Account int64 + Action string + Amount int64 + AvailableMargin int64 + Commission float64 + ConfirmedDebit int64 + Currency string + ExcessMargin int64 + ExcessMarginPcnt float64 + GrossComm int64 + GrossExecCost int64 + GrossLastValue int64 + GrossMarkValue int64 + GrossOpenCost int64 + GrossOpenPremium int64 + IndicativeTax int64 + InitMargin int64 + MaintMargin int64 + MarginBalance int64 + MarginBalancePcnt float64 + MarginLeverage float64 + MarginUsedPcnt float64 + PendingCredit int64 + PendingDebit int64 + PrevRealisedPnl int64 + PrevState string + PrevUnrealisedPnl int64 + RealisedPnl int64 + RiskLimit int64 + RiskValue int64 + SessionMargin int64 + State string + SyntheticMargin int64 + TargetExcessMargin int64 + TaxableMargin int64 + Timestamp time.Time + UnrealisedPnl int64 + UnrealisedProfit int64 + VarMargin int64 + WalletBalance int64 + WithdrawableMargin int64 + type UserPreferences struct + AlertOnLiquidations bool + AnimationsEnabled bool + AnnouncementsLastSeen string + ChatChannelID float64 + ColorTheme string + Currency string + Debug bool + DisableEmails []string + HideConfirmDialogs []string + HideConnectionModal bool + HideFromLeaderboard bool + HideNameFromLeaderboard bool + HideNotifications []string + Locale string + MsgsSeen []string + OrderBookBinning interface{} + OrderBookType string + OrderClearImmediate bool + OrderControlsPlusMinus bool + ShowLocaleNumbers bool + Sounds []string + StrictIPCheck bool + StrictTimeout bool + TickerGroup string + TickerPinned bool + TradeLayout string + type UserPreferencesParams struct + Overwrite bool + Prefs string + func (p UserPreferencesParams) IsNil() bool + func (p UserPreferencesParams) ToURLVals(path string) (string, error) + func (p UserPreferencesParams) VerifyData() error + type UserRequestWithdrawalParams struct + Address string + Amount float64 + Currency string + Fee float64 + OtpToken int64 + func (p UserRequestWithdrawalParams) IsNil() bool + func (p UserRequestWithdrawalParams) ToURLVals(path string) (string, error) + func (p UserRequestWithdrawalParams) VerifyData() error + type UserTokenParams struct + Token string + func (p UserTokenParams) IsNil() bool + func (p UserTokenParams) ToURLVals(path string) (string, error) + func (p UserTokenParams) VerifyData() error + type UserUpdateParams struct + Country string + NewPassword string + NewPasswordConfirm string + OldPassword string + PgpPubKey string + Username string + func (p *UserUpdateParams) IsNil() bool + func (p *UserUpdateParams) ToURLVals(path string) (string, error) + func (p *UserUpdateParams) VerifyData() error + type WalletInfo struct + Account int64 + Addr string + Amount int64 + ConfirmedDebit int64 + Currency string + DeltaAmount int64 + DeltaDeposited int64 + DeltaTransferIn int64 + DeltaTransferOut int64 + DeltaWithdrawn int64 + Deposited int64 + PendingCredit int64 + PendingDebit int64 + PrevAmount int64 + PrevDeposited int64 + PrevTimestamp time.Time + PrevTransferIn int64 + PrevTransferOut int64 + PrevWithdrawn int64 + Script string + Timestamp time.Time + TransferIn int64 + TransferOut int64 + WithdrawalLock []string + Withdrawn int64 + type WebsocketErrorResponse struct + Error string + Meta interface{} + Request WebsocketRequest + Status int64 + type WebsocketMainResponse struct + Action string + Attributes struct{ ... } + ForeignKeys struct{ ... } + Keys []string + Table string + Types struct{ ... } + type WebsocketRequest struct + Arguments []interface{} + Command string + type WebsocketSubscribeResp struct + Request WebsocketRequest + Subscribe string + Success bool + type WebsocketWelcome struct + Docs string + Info string + Limit struct{ ... } + Timestamp string + Version string + type WsAffiliateResponse struct + Attributes WsAffiliateResponseAttributes + Data []interface{} + Filter WsAffiliateResponseFilter + ForeignKeys interface{} + type WsAffiliateResponseAttributes struct + Account string + Currency string + type WsAffiliateResponseFilter struct + Account int64 + type WsDataResponse struct + Action string + Keys []string + Table string + Types map[string]string + type WsExecutionResponse struct + Attributes WsExecutionResponseAttributes + Data []wsExecutionData + Filter WsExecutionResponseFilter + ForeignKeys WsExecutionResponseForeignKeys + type WsExecutionResponseAttributes struct + Account string + ExecID string + ExecType string + TransactTime string + type WsExecutionResponseFilter struct + Account int64 + Symbol string + type WsExecutionResponseForeignKeys struct + OrdStatus string + Side string + Symbol string + type WsMarginResponse struct + Attributes WsMarginResponseAttributes + Data []WsMarginResponseData + Filter WsMarginResponseFilter + ForeignKeys interface{} + type WsMarginResponseAttributes struct + Account string + Currency string + type WsMarginResponseData struct + Account int64 + Action string + Amount float64 + AvailableMargin float64 + Commission interface{} + ConfirmedDebit float64 + Currency string + ExcessMargin float64 + ExcessMarginPcnt float64 + GrossComm float64 + GrossExecCost float64 + GrossLastValue float64 + GrossMarkValue float64 + GrossOpenCost float64 + GrossOpenPremium float64 + IndicativeTax float64 + InitMargin float64 + MaintMargin float64 + MarginBalance float64 + MarginBalancePcnt float64 + MarginLeverage float64 + MarginUsedPcnt float64 + PendingCredit float64 + PendingDebit float64 + PrevRealisedPnl float64 + PrevState string + PrevUnrealisedPnl float64 + RealisedPnl float64 + RiskLimit float64 + RiskValue float64 + SessionMargin float64 + State string + SyntheticMargin interface{} + TargetExcessMargin float64 + TaxableMargin float64 + Timestamp time.Time + UnrealisedPnl float64 + UnrealisedProfit float64 + VarMargin float64 + WalletBalance float64 + WithdrawableMargin float64 + type WsMarginResponseFilter struct + Account int64 + type WsOrderResponse struct + Attributes WsOrderResponseAttributes + Data []OrderInsertData + Filter WsOrderResponseFilter + ForeignKeys WsOrderResponseForeignKeys + type WsOrderResponseAttributes struct + Account string + OrdStatus string + OrderID string + WorkingIndicator string + type WsOrderResponseFilter struct + Account int64 + type WsOrderResponseForeignKeys struct + OrdStatus string + Side string + Symbol string + type WsPositionResponse struct + Attributes WsPositionResponseAttributes + Data []wsPositionData + Filter WsPositionResponseFilter + ForeignKeys WsPositionResponseForeignKeys + type WsPositionResponseAttributes struct + Account string + Currency string + QuoteCurrency string + Symbol string + Underlying string + type WsPositionResponseFilter struct + Account int64 + Symbol string + type WsPositionResponseForeignKeys struct + Symbol string + type WsPrivateNotificationsResponse struct + Action string + Data []interface{} + Table string + type WsTransactResponse struct + Attributes WsTransactResponseAttributes + Data []interface{} + Filter WsTransactResponseFilter + ForeignKeys interface{} + type WsTransactResponseAttributes struct + TransactID string + TransactTime string + type WsTransactResponseFilter struct + Account int64 + type WsWalletResponse struct + Attributes WsWalletResponseAttributes + Data []WsWalletResponseData + Filter WsWalletResponseFilter + ForeignKeys interface{} + type WsWalletResponseAttributes struct + Account string + Currency string + type WsWalletResponseData struct + Account int64 + Addr string + Amount float64 + ConfirmedDebit int64 + Currency string + DeltaAmount float64 + DeltaDeposited float64 + DeltaTransferIn float64 + DeltaTransferOut float64 + DeltaWithdrawn float64 + Deposited float64 + PendingCredit float64 + PendingDebit float64 + PrevAmount float64 + PrevDeposited float64 + PrevTimestamp string + PrevTransferIn float64 + PrevTransferOut float64 + PrevWithdrawn float64 + Script string + Timestamp string + TransferIn float64 + TransferOut float64 + WithdrawalLock []interface{} + Withdrawn float64 + type WsWalletResponseFilter struct + Account int64