Versions in this module Expand all Collapse all v0 v0.0.1 Aug 14, 2021 Changes in this version + var ContextAPIKey = contextKey("apikey") + func CacheExpires(r *http.Response) time.Time + func NewAPIKeyContext(key, secret string) context.Context + type APIClient struct + APIKeyApi *APIKeyApiService + AnnouncementApi *AnnouncementApiService + ChatApi *ChatApiService + ExecutionApi *ExecutionApiService + FundingApi *FundingApiService + InstrumentApi *InstrumentApiService + InsuranceApi *InsuranceApiService + LeaderboardApi *LeaderboardApiService + LiquidationApi *LiquidationApiService + NotificationApi *NotificationApiService + OrderApi *OrderApiService + OrderBookApi *OrderBookApiService + PositionApi *PositionApiService + QuoteApi *QuoteApiService + SchemaApi *SchemaApiService + SettlementApi *SettlementApiService + StatsApi *StatsApiService + TradeApi *TradeApiService + UserApi *UserApiService + func NewAPIClient(cfg *Configuration) *APIClient + func (c *APIClient) ChangeBasePath(path string) + type APIKey struct + Key string + Secret string + type APIKeyApiService service + func (a *APIKeyApiService) APIKeyDisable(ctx context.Context, apiKeyID string) (ApiKey, *http.Response, error) + func (a *APIKeyApiService) APIKeyEnable(ctx context.Context, apiKeyID string) (ApiKey, *http.Response, error) + func (a *APIKeyApiService) APIKeyGet(ctx context.Context, localVarOptionals *APIKeyGetOpts) ([]ApiKey, *http.Response, error) + func (a *APIKeyApiService) APIKeyNew(ctx context.Context, localVarOptionals *APIKeyNewOpts) (ApiKey, *http.Response, error) + func (a *APIKeyApiService) APIKeyRemove(ctx context.Context, apiKeyID string) (InlineResponse200, *http.Response, error) + type APIKeyGetOpts struct + Reverse optional.Bool + type APIKeyNewOpts struct + Cidr optional.String + Enabled optional.Bool + Name optional.String + Permissions optional.String + Token optional.String + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type AccessToken struct + Created time.Time + Id string + Ttl float64 + UserId float64 + type Affiliate struct + Account int + Currency string + ExecComm int + ExecTurnover int + PayoutPcnt float64 + PendingPayout int + PrevComm int + PrevPayout int + PrevTimestamp time.Time + PrevTurnover int + ReferrerAccount int + Timestamp time.Time + TotalComm int + TotalReferrals int + TotalTurnover int + type Announcement struct + Content string + Date time.Time + Id int + Link string + Title string + type AnnouncementApiService service + func (a *AnnouncementApiService) AnnouncementGet(ctx context.Context, localVarOptionals *AnnouncementGetOpts) ([]Announcement, *http.Response, error) + func (a *AnnouncementApiService) AnnouncementGetUrgent(ctx context.Context) ([]Announcement, *http.Response, error) + type AnnouncementGetOpts struct + Columns optional.String + type ApiKey struct + Cidr string + Created time.Time + Enabled bool + Id string + Name string + Nonce int + Permissions []string + Secret string + UserId int + type Chat struct + ChannelID int + Date time.Time + FromBot bool + Html string + Id int + Message string + User string + type ChatApiService service + func (a *ChatApiService) ChatGet(ctx context.Context, localVarOptionals *ChatGetOpts) ([]Chat, *http.Response, error) + func (a *ChatApiService) ChatGetChannels(ctx context.Context) ([]ChatChannel, *http.Response, error) + func (a *ChatApiService) ChatGetConnected(ctx context.Context) (ConnectedUsers, *http.Response, error) + func (a *ChatApiService) ChatNew(ctx context.Context, message string, localVarOptionals *ChatNewOpts) (Chat, *http.Response, error) + type ChatChannel struct + Id int + Name string + type ChatGetOpts struct + ChannelID optional.Float64 + Count optional.Int + Reverse optional.Bool + Start optional.Int + type ChatNewOpts struct + ChannelID optional.Float64 + type Configuration struct + BasePath string + DefaultHeader map[string]string + HTTPClient *http.Client + UserAgent string + func NewConfiguration() *Configuration + func NewTestnetConfiguration() *Configuration + type ConnectedUsers struct + Bots int + Users int + type ErrorError struct + Message string + Name string + type Execution struct + Account int + AvgPx float64 + ClOrdID string + ClOrdLinkID string + Commission float64 + ContingencyType string + CumQty int + Currency string + DisplayQty int + ExDestination string + ExecComm int + ExecCost int + ExecID string + ExecInst string + ExecType string + ForeignNotional float64 + HomeNotional float64 + LastLiquidityInd string + LastMkt string + LastPx float64 + LastQty int + LeavesQty int + MultiLegReportingType string + OrdRejReason string + OrdStatus string + OrdType string + OrderID string + OrderQty int + 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 time.Time + TrdMatchID string + Triggered string + UnderlyingLastPx float64 + WorkingIndicator bool + type ExecutionApiService service + func (a *ExecutionApiService) ExecutionGet(ctx context.Context, localVarOptionals *ExecutionGetOpts) ([]Execution, *http.Response, error) + func (a *ExecutionApiService) ExecutionGetTradeHistory(ctx context.Context, localVarOptionals *ExecutionGetTradeHistoryOpts) ([]Execution, *http.Response, error) + type ExecutionGetOpts struct + Columns optional.String + Count optional.Int + EndTime optional.Time + Filter optional.String + Reverse optional.Bool + Start optional.Int + StartTime optional.Time + Symbol optional.String + type ExecutionGetTradeHistoryOpts struct + Columns optional.String + Count optional.Int + EndTime optional.Time + Filter optional.String + Reverse optional.Bool + Start optional.Int + StartTime optional.Time + Symbol optional.String + type Funding struct + FundingInterval time.Time + FundingRate float64 + FundingRateDaily float64 + Symbol string + Timestamp time.Time + type FundingApiService service + func (a *FundingApiService) FundingGet(ctx context.Context, localVarOptionals *FundingGetOpts) ([]Funding, *http.Response, error) + type FundingGetOpts struct + Columns optional.String + Count optional.Int + EndTime optional.Time + Filter optional.String + Reverse optional.Bool + Start optional.Int + StartTime optional.Time + Symbol optional.String + type GenericSwaggerError struct + func (e GenericSwaggerError) Body() []byte + func (e GenericSwaggerError) Error() string + func (e GenericSwaggerError) Model() interface{} + type IndexComposite struct + IndexSymbol string + LastPrice float64 + Logged time.Time + Reference string + Symbol string + Timestamp time.Time + Weight float64 + type InlineResponse200 struct + Success bool + type InlineResponse2001 struct + Name string + type Instrument struct + AskPrice float64 + BankruptLimitDownPrice float64 + BankruptLimitUpPrice float64 + BidPrice float64 + BuyLeg string + CalcInterval time.Time + Capped bool + ClosingTimestamp time.Time + Deleverage bool + Expiry time.Time + FairBasis float64 + FairBasisRate float64 + FairMethod string + FairPrice float64 + Front time.Time + FundingBaseSymbol string + FundingInterval time.Time + 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 time.Time + LotSize int + LowPrice float64 + MaintMargin float64 + MakerFee float64 + MarkMethod string + MarkPrice float64 + MaxOrderQty int + MaxPrice float64 + MidPrice float64 + Multiplier int + OpenInterest int + OpenValue int + OpeningTimestamp time.Time + OptionMultiplier float64 + OptionStrikePcnt float64 + OptionStrikePrice float64 + OptionStrikeRound float64 + OptionUnderlyingPrice float64 + PositionCurrency string + PrevClosePrice float64 + PrevPrice24h float64 + PrevTotalTurnover int + PrevTotalVolume int + PublishInterval time.Time + PublishTime time.Time + QuoteCurrency string + QuoteToSettleMultiplier int + RebalanceInterval time.Time + RebalanceTimestamp time.Time + Reference string + ReferenceSymbol string + RelistInterval time.Time + RiskLimit int + RiskStep int + RootSymbol string + SellLeg string + SessionInterval time.Time + SettlCurrency string + Settle time.Time + SettledPrice float64 + SettlementFee float64 + State string + Symbol string + TakerFee float64 + Taxed bool + TickSize float64 + Timestamp time.Time + TotalTurnover int + TotalVolume int + Turnover int + Turnover24h int + Typ string + Underlying string + UnderlyingSymbol string + UnderlyingToPositionMultiplier int + UnderlyingToSettleMultiplier int + Volume int + Volume24h int + Vwap float64 + type InstrumentApiService service + func (a *InstrumentApiService) InstrumentGet(ctx context.Context, localVarOptionals *InstrumentGetOpts) ([]Instrument, *http.Response, error) + func (a *InstrumentApiService) InstrumentGetActive(ctx context.Context) ([]Instrument, *http.Response, error) + func (a *InstrumentApiService) InstrumentGetActiveAndIndices(ctx context.Context) ([]Instrument, *http.Response, error) + func (a *InstrumentApiService) InstrumentGetActiveIntervals(ctx context.Context) (InstrumentInterval, *http.Response, error) + func (a *InstrumentApiService) InstrumentGetCompositeIndex(ctx context.Context, localVarOptionals *InstrumentGetCompositeIndexOpts) ([]IndexComposite, *http.Response, error) + func (a *InstrumentApiService) InstrumentGetIndices(ctx context.Context) ([]Instrument, *http.Response, error) + type InstrumentGetCompositeIndexOpts struct + Account optional.Float64 + Columns optional.String + Count optional.Int + EndTime optional.Time + Filter optional.String + Reverse optional.Bool + Start optional.Int + StartTime optional.Time + Symbol optional.String + type InstrumentGetOpts struct + Columns optional.String + Count optional.Int + EndTime optional.Time + Filter optional.String + Reverse optional.Bool + Start optional.Int + StartTime optional.Time + Symbol optional.String + type InstrumentInterval struct + Intervals []string + Symbols []string + type Insurance struct + Currency string + Timestamp time.Time + WalletBalance int + type InsuranceApiService service + func (a *InsuranceApiService) InsuranceGet(ctx context.Context, localVarOptionals *InsuranceGetOpts) ([]Insurance, *http.Response, error) + type InsuranceGetOpts struct + Columns optional.String + Count optional.Int + EndTime optional.Time + Filter optional.String + Reverse optional.Bool + Start optional.Int + StartTime optional.Time + Symbol optional.String + type Leaderboard struct + IsRealName bool + Name string + Profit float64 + type LeaderboardApiService service + func (a *LeaderboardApiService) LeaderboardGet(ctx context.Context, localVarOptionals *LeaderboardGetOpts) ([]Leaderboard, *http.Response, error) + func (a *LeaderboardApiService) LeaderboardGetName(ctx context.Context) (InlineResponse2001, *http.Response, error) + type LeaderboardGetOpts struct + Method optional.String + type Liquidation struct + LeavesQty int + OrderID string + Price float64 + Side string + Symbol string + type LiquidationApiService service + func (a *LiquidationApiService) LiquidationGet(ctx context.Context, localVarOptionals *LiquidationGetOpts) ([]Liquidation, *http.Response, error) + type LiquidationGetOpts struct + Columns optional.String + Count optional.Int + EndTime optional.Time + Filter optional.String + Reverse optional.Bool + Start optional.Int + StartTime optional.Time + Symbol optional.String + type Margin struct + Account int + Action string + Amount int + AvailableMargin int + Commission float64 + ConfirmedDebit int + Currency string + ExcessMargin int + ExcessMarginPcnt float64 + GrossComm int + GrossExecCost int + GrossLastValue int + GrossMarkValue int + GrossOpenCost int + GrossOpenPremium int + IndicativeTax int + InitMargin int + MaintMargin int + MarginBalance int + MarginBalancePcnt float64 + MarginLeverage float64 + MarginUsedPcnt float64 + PendingCredit int + PendingDebit int + PrevRealisedPnl int + PrevState string + PrevUnrealisedPnl int + RealisedPnl int + RiskLimit int + RiskValue int + SessionMargin int + State string + SyntheticMargin int + TargetExcessMargin int + TaxableMargin int + Timestamp time.Time + UnrealisedPnl int + UnrealisedProfit int + VarMargin int + WalletBalance int + WithdrawableMargin int + type ModelError struct + Error_ *ErrorError + type Notification struct + Body string + Closable bool + Date time.Time + Id int + Persist bool + Sound string + Title string + Ttl int + Type_ string + WaitForVisibility bool + type NotificationApiService service + func (a *NotificationApiService) NotificationGet(ctx context.Context) ([]Notification, *http.Response, error) + type Order struct + Account int + AvgPx float64 + ClOrdID string + ClOrdLinkID string + ContingencyType string + CumQty int + Currency string + DisplayQty int + ExDestination string + ExecInst string + LeavesQty int + MultiLegReportingType string + OrdRejReason string + OrdStatus string + OrdType string + OrderID string + OrderQty int + 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 + TransactTime time.Time + Triggered string + WorkingIndicator bool + type OrderAmendBulkOpts struct + Orders optional.String + type OrderAmendOpts struct + ClOrdID optional.String + LeavesQty optional.Int + OrderID optional.String + OrderQty optional.Int + OrigClOrdID optional.String + PegOffsetValue optional.Float64 + Price optional.Float64 + SimpleLeavesQty optional.Float64 + SimpleOrderQty optional.Float64 + StopPx optional.Float64 + Text optional.String + type OrderApiService service + func (a *OrderApiService) OrderAmend(ctx context.Context, localVarOptionals *OrderAmendOpts) (Order, *http.Response, error) + func (a *OrderApiService) OrderAmendBulk(ctx context.Context, localVarOptionals *OrderAmendBulkOpts) ([]Order, *http.Response, error) + func (a *OrderApiService) OrderCancel(ctx context.Context, localVarOptionals *OrderCancelOpts) ([]Order, *http.Response, error) + func (a *OrderApiService) OrderCancelAll(ctx context.Context, localVarOptionals *OrderCancelAllOpts) ([]Order, *http.Response, error) + func (a *OrderApiService) OrderCancelAllAfter(ctx context.Context, timeout float64) (interface{}, *http.Response, error) + func (a *OrderApiService) OrderClosePosition(ctx context.Context, symbol string, localVarOptionals *OrderClosePositionOpts) (Order, *http.Response, error) + func (a *OrderApiService) OrderGetOrders(ctx context.Context, localVarOptionals *OrderGetOrdersOpts) ([]Order, *http.Response, error) + func (a *OrderApiService) OrderNew(ctx context.Context, symbol string, localVarOptionals *OrderNewOpts) (Order, *http.Response, error) + func (a *OrderApiService) OrderNewBulk(ctx context.Context, localVarOptionals *OrderNewBulkOpts) ([]Order, *http.Response, error) + type OrderBookApiService service + func (a *OrderBookApiService) OrderBookGetL2(ctx context.Context, symbol string, localVarOptionals *OrderBookGetL2Opts) ([]OrderBookL2, *http.Response, error) + type OrderBookGetL2Opts struct + Depth optional.Int + type OrderBookL2 struct + Id int + Price float64 + Side string + Size int + Symbol string + type OrderCancelAllOpts struct + Filter optional.String + Symbol optional.String + Text optional.String + type OrderCancelOpts struct + ClOrdID optional.String + OrderID optional.String + Text optional.String + type OrderClosePositionOpts struct + Price optional.Float64 + type OrderGetOrdersOpts struct + Columns optional.String + Count optional.Int + EndTime optional.Time + Filter optional.String + Reverse optional.Bool + Start optional.Int + StartTime optional.Time + Symbol optional.String + type OrderNewBulkOpts struct + Orders optional.String + type OrderNewOpts struct + ClOrdID optional.String + ClOrdLinkID optional.String + ContingencyType optional.String + DisplayQty optional.Int + ExecInst optional.String + OrdType optional.String + OrderQty optional.Int + PegOffsetValue optional.Float64 + PegPriceType optional.String + Price optional.Float64 + Side optional.String + SimpleOrderQty optional.Float64 + StopPx optional.Float64 + Text optional.String + TimeInForce optional.String + type Position struct + Account int + AvgCostPrice float64 + AvgEntryPrice float64 + BankruptPrice float64 + BreakEvenPrice float64 + Commission float64 + CrossMargin bool + Currency string + CurrentComm int + CurrentCost int + CurrentQty int + CurrentTimestamp time.Time + DeleveragePercentile float64 + ExecBuyCost int + ExecBuyQty int + ExecComm int + ExecCost int + ExecQty int + ExecSellCost int + ExecSellQty int + ForeignNotional float64 + GrossExecCost int + GrossOpenCost int + GrossOpenPremium int + HomeNotional float64 + IndicativeTax int + IndicativeTaxRate float64 + InitMargin int + InitMarginReq float64 + IsOpen bool + LastPrice float64 + LastValue int + Leverage float64 + LiquidationPrice float64 + LongBankrupt int + MaintMargin int + MaintMarginReq float64 + MarginCallPrice float64 + MarkPrice float64 + MarkValue int + OpenOrderBuyCost int + OpenOrderBuyPremium int + OpenOrderBuyQty int + OpenOrderSellCost int + OpenOrderSellPremium int + OpenOrderSellQty int + OpeningComm int + OpeningCost int + OpeningQty int + OpeningTimestamp time.Time + PosAllowance int + PosComm int + PosCost int + PosCost2 int + PosCross int + PosInit int + PosLoss int + PosMaint int + PosMargin int + PosState string + PrevClosePrice float64 + PrevRealisedPnl int + PrevUnrealisedPnl int + QuoteCurrency string + RealisedCost int + RealisedGrossPnl int + RealisedPnl int + RealisedTax int + RebalancedPnl int + RiskLimit int + RiskValue int + SessionMargin int + ShortBankrupt int + SimpleCost float64 + SimplePnl float64 + SimplePnlPcnt float64 + SimpleQty float64 + SimpleValue float64 + Symbol string + TargetExcessMargin int + TaxBase int + TaxableMargin int + Timestamp time.Time + Underlying string + UnrealisedCost int + UnrealisedGrossPnl int + UnrealisedPnl int + UnrealisedPnlPcnt float64 + UnrealisedRoePcnt float64 + UnrealisedTax int + VarMargin int + type PositionApiService service + func (a *PositionApiService) PositionGet(ctx context.Context, localVarOptionals *PositionGetOpts) ([]Position, *http.Response, error) + func (a *PositionApiService) PositionIsolateMargin(ctx context.Context, symbol string, ...) (Position, *http.Response, error) + func (a *PositionApiService) PositionTransferIsolatedMargin(ctx context.Context, symbol string, amount int) (Position, *http.Response, error) + func (a *PositionApiService) PositionUpdateLeverage(ctx context.Context, symbol string, leverage float64) (Position, *http.Response, error) + func (a *PositionApiService) PositionUpdateRiskLimit(ctx context.Context, symbol string, riskLimit int) (Position, *http.Response, error) + type PositionGetOpts struct + Columns optional.String + Count optional.Int + Filter optional.String + type PositionIsolateMarginOpts struct + Enabled optional.Bool + type Quote struct + AskPrice float64 + AskSize int + BidPrice float64 + BidSize int + Symbol string + Timestamp time.Time + type QuoteApiService service + func (a *QuoteApiService) QuoteGet(ctx context.Context, localVarOptionals *QuoteGetOpts) ([]Quote, *http.Response, error) + func (a *QuoteApiService) QuoteGetBucketed(ctx context.Context, localVarOptionals *QuoteGetBucketedOpts) ([]Quote, *http.Response, error) + type QuoteGetBucketedOpts struct + BinSize optional.String + Columns optional.String + Count optional.Int + EndTime optional.Time + Filter optional.String + Partial optional.Bool + Reverse optional.Bool + Start optional.Int + StartTime optional.Time + Symbol optional.String + type QuoteGetOpts struct + Columns optional.String + Count optional.Int + EndTime optional.Time + Filter optional.String + Reverse optional.Bool + Start optional.Int + StartTime optional.Time + Symbol optional.String + type SchemaApiService service + func (a *SchemaApiService) SchemaGet(ctx context.Context, localVarOptionals *SchemaGetOpts) (interface{}, *http.Response, error) + func (a *SchemaApiService) SchemaWebsocketHelp(ctx context.Context) (interface{}, *http.Response, error) + type SchemaGetOpts struct + Model optional.String + type Settlement struct + Bankrupt int + OptionStrikePrice float64 + OptionUnderlyingPrice float64 + SettledPrice float64 + SettlementType string + Symbol string + TaxBase int + TaxRate float64 + Timestamp time.Time + type SettlementApiService service + func (a *SettlementApiService) SettlementGet(ctx context.Context, localVarOptionals *SettlementGetOpts) ([]Settlement, *http.Response, error) + type SettlementGetOpts struct + Columns optional.String + Count optional.Int + EndTime optional.Time + Filter optional.String + Reverse optional.Bool + Start optional.Int + StartTime optional.Time + Symbol optional.String + type Stats struct + Currency string + OpenInterest int + OpenValue int + RootSymbol string + Turnover24h int + Volume24h int + type StatsApiService service + func (a *StatsApiService) StatsGet(ctx context.Context) ([]Stats, *http.Response, error) + func (a *StatsApiService) StatsHistory(ctx context.Context) ([]StatsHistory, *http.Response, error) + func (a *StatsApiService) StatsHistoryUSD(ctx context.Context) ([]StatsUsd, *http.Response, error) + type StatsHistory struct + Currency string + Date time.Time + RootSymbol string + Turnover int + Volume int + type StatsUsd struct + Currency string + RootSymbol string + Turnover int + Turnover24h int + Turnover30d int + Turnover365d int + type Trade struct + ForeignNotional float64 + GrossValue int + HomeNotional float64 + Price float64 + Side string + Size int + Symbol string + TickDirection string + Timestamp time.Time + TrdMatchID string + type TradeApiService service + func (a *TradeApiService) TradeGet(ctx context.Context, localVarOptionals *TradeGetOpts) ([]Trade, *http.Response, error) + func (a *TradeApiService) TradeGetBucketed(ctx context.Context, localVarOptionals *TradeGetBucketedOpts) ([]TradeBin, *http.Response, error) + type TradeBin struct + Close float64 + ForeignNotional float64 + High float64 + HomeNotional float64 + LastSize int + Low float64 + Open float64 + Symbol string + Timestamp time.Time + Trades int + Turnover int + Volume int + Vwap float64 + type TradeGetBucketedOpts struct + BinSize optional.String + Columns optional.String + Count optional.Int + EndTime optional.Time + Filter optional.String + Partial optional.Bool + Reverse optional.Bool + Start optional.Int + StartTime optional.Time + Symbol optional.String + type TradeGetOpts struct + Columns optional.String + Count optional.Int + EndTime optional.Time + Filter optional.String + Reverse optional.Bool + Start optional.Int + StartTime optional.Time + Symbol optional.String + type Transaction struct + Account int + Address string + Amount int + Currency string + Fee int + MarginBalance int + Text string + Timestamp time.Time + TransactID string + TransactStatus string + TransactTime time.Time + TransactType string + Tx string + WalletBalance int + type User struct + AffiliateID string + Country string + Created time.Time + Email string + Firstname string + GeoipCountry string + GeoipRegion string + Id int + LastUpdated time.Time + Lastname string + OwnerId int + PgpPubKey string + Phone string + Preferences *UserPreferences + TFAEnabled string + Typ string + Username string + type UserApiService service + func (a *UserApiService) UserCancelWithdrawal(ctx context.Context, token string) (Transaction, *http.Response, error) + func (a *UserApiService) UserCheckReferralCode(ctx context.Context, localVarOptionals *UserCheckReferralCodeOpts) (float64, *http.Response, error) + func (a *UserApiService) UserConfirm(ctx context.Context, token string) (AccessToken, *http.Response, error) + func (a *UserApiService) UserConfirmEnableTFA(ctx context.Context, token string, localVarOptionals *UserConfirmEnableTFAOpts) (bool, *http.Response, error) + func (a *UserApiService) UserConfirmWithdrawal(ctx context.Context, token string) (Transaction, *http.Response, error) + func (a *UserApiService) UserDisableTFA(ctx context.Context, token string, localVarOptionals *UserDisableTFAOpts) (bool, *http.Response, error) + func (a *UserApiService) UserGet(ctx context.Context) (User, *http.Response, error) + func (a *UserApiService) UserGetAffiliateStatus(ctx context.Context) (Affiliate, *http.Response, error) + func (a *UserApiService) UserGetCommission(ctx context.Context) ([]UserCommission, *http.Response, error) + func (a *UserApiService) UserGetDepositAddress(ctx context.Context, localVarOptionals *UserGetDepositAddressOpts) (string, *http.Response, error) + func (a *UserApiService) UserGetMargin(ctx context.Context, localVarOptionals *UserGetMarginOpts) (Margin, *http.Response, error) + func (a *UserApiService) UserGetWallet(ctx context.Context, localVarOptionals *UserGetWalletOpts) (Wallet, *http.Response, error) + func (a *UserApiService) UserGetWalletHistory(ctx context.Context, localVarOptionals *UserGetWalletHistoryOpts) ([]Transaction, *http.Response, error) + func (a *UserApiService) UserGetWalletSummary(ctx context.Context, localVarOptionals *UserGetWalletSummaryOpts) ([]Transaction, *http.Response, error) + func (a *UserApiService) UserLogout(ctx context.Context) (*http.Response, error) + func (a *UserApiService) UserLogoutAll(ctx context.Context) (float64, *http.Response, error) + func (a *UserApiService) UserMinWithdrawalFee(ctx context.Context, localVarOptionals *UserMinWithdrawalFeeOpts) (UserWithdrawalFees, *http.Response, error) + func (a *UserApiService) UserRequestEnableTFA(ctx context.Context, localVarOptionals *UserRequestEnableTFAOpts) (bool, *http.Response, error) + func (a *UserApiService) UserRequestWithdrawal(ctx context.Context, currency string, amount int, address string, ...) (Transaction, *http.Response, error) + func (a *UserApiService) UserSavePreferences(ctx context.Context, prefs string, localVarOptionals *UserSavePreferencesOpts) (User, *http.Response, error) + func (a *UserApiService) UserUpdate(ctx context.Context, localVarOptionals *UserUpdateOpts) (User, *http.Response, error) + type UserCheckReferralCodeOpts struct + ReferralCode optional.String + type UserCommission struct + MakerFee float64 + MaxFee float64 + SettlementFee float64 + TakerFee float64 + type UserConfirmEnableTFAOpts struct + Type_ optional.String + type UserDisableTFAOpts struct + Type_ optional.String + type UserGetDepositAddressOpts struct + Currency optional.String + type UserGetMarginOpts struct + Currency optional.String + type UserGetWalletHistoryOpts struct + Count optional.String + Currency optional.String + Start optional.String + type UserGetWalletOpts struct + Currency optional.String + type UserGetWalletSummaryOpts struct + Currency optional.String + type UserMinWithdrawalFeeOpts struct + Currency optional.String + type UserPreferences struct + AlertOnLiquidations bool + AnimationsEnabled bool + AnnouncementsLastSeen time.Time + 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 UserRequestEnableTFAOpts struct + Type_ optional.String + type UserRequestWithdrawalOpts struct + Fee optional.Float64 + OtpToken optional.String + type UserSavePreferencesOpts struct + Overwrite optional.Bool + type UserUpdateOpts struct + Country optional.String + Firstname optional.String + Lastname optional.String + NewPassword optional.String + NewPasswordConfirm optional.String + OldPassword optional.String + PgpPubKey optional.String + Username optional.String + type UserWithdrawalFees struct + Currency string + Fee int + MaxFee int + MinFee int + type Wallet struct + Account int + Addr string + Amount int + ConfirmedDebit int + Currency string + DeltaAmount int + DeltaDeposited int + DeltaTransferIn int + DeltaTransferOut int + DeltaWithdrawn int + Deposited int + PendingCredit int + PendingDebit int + PrevAmount int + PrevDeposited int + PrevTimestamp time.Time + PrevTransferIn int + PrevTransferOut int + PrevWithdrawn int + Script string + Timestamp time.Time + TransferIn int + TransferOut int + WithdrawalLock []string + Withdrawn int